Skip to main content

bn.getWalletHub

getWalletHub(): WalletHub

description The api to get wallet hub

remark supported jssdk >= 4.0.0

example

// get walletHub and open by uri and chainId
const walletHub = bn.getWalletHub()
const response = await walletHub.open({
uri: 'my-uri',
chainId: 1,
})
console.log(response)

Returns

WalletHub

Class: WalletHub

NameTypeDescription
_rpcHooksRPCHooks
open(__namedParameters): Promise<void>
close(): Promise<void>
openWallet(__namedParameters): Promise<void>

open

open(__namedParameters): Promise<void>

Parameters

NameType
__namedParametersWalletHubOpenPayload

Returns

Promise<void>


close

close(): Promise<void>

Returns

Promise<void>


openWallet

openWallet(__namedParameters): Promise<void>

Parameters

NameType
__namedParametersWalletHubOpenWalletPayload

Returns

Promise<void>

WalletHubOpenPayload

Ƭ WalletHubOpenPayload: Object

Type declaration

NameType
uristring
chainIdnumber

WalletHubOpenWalletPayload

Ƭ WalletHubOpenWalletPayload: Object

Type declaration

NameType
idstring