Hierarchy
KeyringInstance
Properties
pairs
● pairs: Array<KeyringPair>
Defined in types.ts:58
publicKeys
● publicKeys: Array<Uint8Array>
Defined in types.ts:59
type
● type: KeyringPairType
Defined in types.ts:60
Methods
addFromAddress
▸ addFromAddress(address: string | Uint8Array, meta?: KeyringPair$Meta, encoded?: Uint8Array | null, type?: KeyringPairType): KeyringPair
Defined in types.ts:67
Parameters:
| Name | Type |
|---|---|
| address | string | Uint8Array |
Optional meta | KeyringPair$Meta |
Optional encoded | Uint8Array | null |
Optional type | KeyringPairType |
Returns: KeyringPair
addFromJson
▸ addFromJson(pair: KeyringPair$Json): KeyringPair
Defined in types.ts:70
Parameters:
| Name | Type |
|---|---|
| pair | KeyringPair$Json |
Returns: KeyringPair
addFromMnemonic
▸ addFromMnemonic(mnemonic: string, meta?: KeyringPair$Meta, type?: KeyringPairType): KeyringPair
Defined in types.ts:68
Parameters:
| Name | Type |
|---|---|
| mnemonic | string |
Optional meta | KeyringPair$Meta |
Optional type | KeyringPairType |
Returns: KeyringPair
addFromSeed
▸ addFromSeed(seed: Uint8Array, meta?: KeyringPair$Meta, type?: KeyringPairType): KeyringPair
Defined in types.ts:69
Parameters:
| Name | Type |
|---|---|
| seed | Uint8Array |
Optional meta | KeyringPair$Meta |
Optional type | KeyringPairType |
Returns: KeyringPair
addPair
▸ addPair(pair: KeyringPair): KeyringPair
Defined in types.ts:66
Parameters:
| Name | Type |
|---|---|
| pair | KeyringPair |
Returns: KeyringPair
decodeAddress
▸ decodeAddress(encoded: string | Uint8Array): Uint8Array
Defined in types.ts:62
Parameters:
| Name | Type |
|---|---|
| encoded | string | Uint8Array |
Returns: Uint8Array
encodeAddress
▸ encodeAddress(key: Uint8Array | string): string
Defined in types.ts:63
Parameters:
| Name | Type |
|---|---|
| key | Uint8Array | string |
Returns: string
getPair
▸ getPair(address: string | Uint8Array): KeyringPair
Defined in types.ts:71
Parameters:
| Name | Type |
|---|---|
| address | string | Uint8Array |
Returns: KeyringPair
getPairs
▸ getPairs(): Array<KeyringPair>
Defined in types.ts:72
Returns: Array<KeyringPair>
getPublicKeys
▸ getPublicKeys(): Array<Uint8Array>
Defined in types.ts:73
Returns: Array<Uint8Array>
removePair
▸ removePair(address: string | Uint8Array): void
Defined in types.ts:74
Parameters:
| Name | Type |
|---|---|
| address | string | Uint8Array |
Returns: void
setAddressPrefix
▸ setAddressPrefix(prefix: Prefix): void
Defined in types.ts:64
Parameters:
| Name | Type |
|---|---|
| prefix | Prefix |
Returns: void
toJson
▸ toJson(address: string | Uint8Array, passphrase?: undefined | string): KeyringPair$Json
Defined in types.ts:75
Parameters:
| Name | Type |
|---|---|
| address | string | Uint8Array |
Optional passphrase | undefined | string |
Returns: KeyringPair$Json