24 lines
528 B
Markdown
24 lines
528 B
Markdown
|
|
|
|
# Functions
|
|
|
|
<a id="encode"></a>
|
|
|
|
## encode
|
|
|
|
▸ **encode**(_key: * `Uint8Array` | `string`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `string`
|
|
|
|
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/b1755d2/packages/keyring/src/address/encode.ts#L15)*
|
|
|
|
**Parameters:**
|
|
|
|
| Name | Type | Default value |
|
|
| ------ | ------ | ------ |
|
|
| _key | `Uint8Array` | `string`| - |
|
|
| `Default value` prefix | [Prefix](_address_types_.md#prefix) | defaults.prefix |
|
|
|
|
**Returns:** `string`
|
|
|
|
___
|
|
|