Newer
Older
[@amaurymartiny/txwrapper](../README.md) › [Globals](../globals.md) › ["importPrivateKey"](_importprivatekey_.md)
# External module: "importPrivateKey"
## Index
### Interfaces
* [KeyringPair](../interfaces/_importprivatekey_.keyringpair.md)
### Functions
* [importPrivateKey](_importprivatekey_.md#importprivatekey)
## Functions
### importPrivateKey
▸ **importPrivateKey**(`privateKey`: string | Uint8Array): *[KeyringPair](../interfaces/_importprivatekey_.keyringpair.md)*
Defined in src/importPrivateKey.ts:17
Import a private key and create a KeyringPair
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`privateKey` | string | Uint8Array | The private key of the key pair |
**Returns:** *[KeyringPair](../interfaces/_importprivatekey_.keyringpair.md)*