Skip to main content

Interface: WalletHandlers

Properties

account.receive

account.receive: (params: { account: Account }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.accountAccount
Returns

Promisable<string>

Defined in

server/src/types.ts:61


account.request

account.request: (params: { accounts$: Observable<Account[]> ; currencies$: Observable<({ color: string ; decimals: number ; family: "bitcoin" | "ethereum" | "algorand" | "crypto_org" | "ripple" | "cosmos" | "celo" | "filecoin" | "hedera" | "tezos" | "polkadot" | "stellar" | "tron" ; id: string ; name: string ; ticker: string ; type: "CryptoCurrency" } | { color: string ; contract: string ; decimals: number ; id: string ; name: string ; parent: string ; standard: "ERC20" ; ticker: string ; type: "TokenCurrency" })[]> }) => Promisable<Account>

Type declaration

▸ (params): Promisable<Account>

Parameters
NameType
paramsObject
params.accounts$Observable<Account[]>
params.currencies$Observable<({ color: string ; decimals: number ; family: "bitcoin" | "ethereum" | "algorand" | "crypto_org" | "ripple" | "cosmos" | "celo" | "filecoin" | "hedera" | "tezos" | "polkadot" | "stellar" | "tron" ; id: string ; name: string ; ticker: string ; type: "CryptoCurrency" } | { color: string ; contract: string ; decimals: number ; id: string ; name: string ; parent: string ; standard: "ERC20" ; ticker: string ; type: "TokenCurrency" })[]>
Returns

Promisable<Account>

Defined in

server/src/types.ts:57


bitcoin.getXPub

bitcoin.getXPub: (params: { accountId: string }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.accountIdstring
Returns

Promisable<string>

Defined in

server/src/types.ts:88


device.close

device.close: (params: { transportId: string }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.transportIdstring
Returns

Promisable<string>

Defined in

server/src/types.ts:76


device.exchange

device.exchange: (params: { apduHex: string ; transportId: string }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.apduHexstring
params.transportIdstring
Returns

Promisable<string>

Defined in

server/src/types.ts:77


device.transport

device.transport: (params: { appName?: string ; appVersionRange?: string ; devices?: ["blue" | "nanoS" | "nanoSP" | "nanoX" | "stax", ...("blue" | "nanoS" | "nanoSP" | "nanoX" | "stax")[]] ; firmwareVersionRange?: string ; seeded?: boolean }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.appName?string
params.appVersionRange?string
params.devices?["blue" | "nanoS" | "nanoSP" | "nanoX" | "stax", ...("blue" | "nanoS" | "nanoSP" | "nanoX" | "stax")[]]
params.firmwareVersionRange?string
params.seeded?boolean
Returns

Promisable<string>

Defined in

server/src/types.ts:78


exchange.complete

exchange.complete: (params: ExchangeParams) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsExchangeParams
Returns

Promisable<string>

Defined in

server/src/types.ts:90


exchange.start

exchange.start: (params: { exchangeType: "FUND" | "SELL" | "SWAP" }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.exchangeType"FUND" | "SELL" | "SWAP"
Returns

Promisable<string>

Defined in

server/src/types.ts:89


message.sign

message.sign: (params: { account: Account ; message: Buffer }) => Promisable<Buffer>

Type declaration

▸ (params): Promisable<Buffer>

Parameters
NameType
paramsObject
params.accountAccount
params.messageBuffer
Returns

Promisable<Buffer>

Defined in

server/src/types.ts:62


storage.get

storage.get: (params: { key: string ; storeId: string }) => Promisable<undefined | string>

Type declaration

▸ (params): Promisable<undefined | string>

Parameters
NameType
paramsObject
params.keystring
params.storeIdstring
Returns

Promisable<undefined | string>

Defined in

server/src/types.ts:84


storage.set

storage.set: (params: { key: string ; storeId: string ; value: string }) => Promisable<void>

Type declaration

▸ (params): Promisable<void>

Parameters
NameType
paramsObject
params.keystring
params.storeIdstring
params.valuestring
Returns

Promisable<void>

Defined in

server/src/types.ts:79


transaction.sign

transaction.sign: (params: { account: Account ; options?: { hwAppId?: string } ; transaction: Transaction }) => Promisable<Buffer>

Type declaration

▸ (params): Promisable<Buffer>

Parameters
NameType
paramsObject
params.accountAccount
params.options?Object
params.options.hwAppId?string
params.transactionTransaction
Returns

Promisable<Buffer>

Defined in

server/src/types.ts:66


transaction.signAndBroadcast

transaction.signAndBroadcast: (params: { account: Account ; options?: { hwAppId?: string } ; transaction: Transaction }) => Promisable<string>

Type declaration

▸ (params): Promisable<string>

Parameters
NameType
paramsObject
params.accountAccount
params.options?Object
params.options.hwAppId?string
params.transactionTransaction
Returns

Promisable<string>

Defined in

server/src/types.ts:71