Orderly SDKs / Modules / @orderly.network/core / OrderlyKeyStore

Interface: OrderlyKeyStore

@orderly.network/core.OrderlyKeyStore

Implemented by

Table of contents

Properties

Properties

cleanAllKey

cleanAllKey: (address: string) => void

Type declaration

▸ (address): void

Parameters
NameType
addressstring
Returns

void

Defined in

packages/core/src/keyStore.ts:11


cleanKey

cleanKey: (address: string, key: string) => void

Type declaration

▸ (address, key): void

Parameters
NameType
addressstring
keystring
Returns

void

Defined in

packages/core/src/keyStore.ts:10


generateKey

generateKey: () => OrderlyKeyPair

Type declaration

▸ (): OrderlyKeyPair

Returns

OrderlyKeyPair

Defined in

packages/core/src/keyStore.ts:9


getAccountId

getAccountId: (address: string) => undefined | null | string

Type declaration

▸ (address): undefined | null | string

Parameters
NameType
addressstring
Returns

undefined | null | string

Defined in

packages/core/src/keyStore.ts:5


getAddress

getAddress: () => undefined | null | string

Type declaration

▸ (): undefined | null | string

Returns

undefined | null | string

Defined in

packages/core/src/keyStore.ts:7


getOrderlyKey

getOrderlyKey: (address?: string) => null | OrderlyKeyPair

Type declaration

▸ (address?): null | OrderlyKeyPair

Parameters
NameType
address?string
Returns

null | OrderlyKeyPair

Defined in

packages/core/src/keyStore.ts:4


setAccountId

setAccountId: (address: string, accountId: string) => void

Type declaration

▸ (address, accountId): void

Parameters
NameType
addressstring
accountIdstring
Returns

void

Defined in

packages/core/src/keyStore.ts:6


setAddress

setAddress: (address: string) => void

Type declaration

▸ (address): void

Parameters
NameType
addressstring
Returns

void

Defined in

packages/core/src/keyStore.ts:8


setKey

setKey: (orderlyKey: string, secretKey: OrderlyKeyPair) => void

Type declaration

▸ (orderlyKey, secretKey): void

Parameters
NameType
orderlyKeystring
secretKeyOrderlyKeyPair
Returns

void

Defined in

packages/core/src/keyStore.ts:12