[@substrate/txwrapper](../README.md) › [Globals](../globals.md) › ["importPrivateKey"](_importprivatekey_.md) # External module: "importPrivateKey" ## Index ### Type aliases * [KeyringPair](_importprivatekey_.md#keyringpair) ### Functions * [importPrivateKey](_importprivatekey_.md#importprivatekey) ## Type aliases ### KeyringPair Ƭ **KeyringPair**: *KeyringPairBase* *Defined in [src/importPrivateKey.ts:10](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/82747d9/src/importPrivateKey.ts#L10)* A keyring pair ## Functions ### importPrivateKey ▸ **importPrivateKey**(`privateKey`: string | Uint8Array, `ss58Format`: number): *KeyringPair* *Defined in [src/importPrivateKey.ts:18](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/82747d9/src/importPrivateKey.ts#L18)* Import a private key and create a KeyringPair. **Parameters:** Name | Type | Default | Description | ------ | ------ | ------ | ------ | `privateKey` | string | Uint8Array | - | The private key of the key pair. | `ss58Format` | number | KUSAMA_SS58_FORMAT | The SS58 encoding of the address. | **Returns:** *KeyringPair*