Wallet Addresses

Wallet Addresses Functions

Get address

Description

Returns the address of the user's wallet for a supported blockchain

Parameters

NameTypeRequiredDefaultDescription

blockchainId

String

✔️

Blockchain id

Return type

Promise<string>

Usage Example

const walletAddress = await sdk.wallet.getAddress({ blockchainId: 'ethereum' })

Get addresses

Description

Returns the list of wallet addresses for all the supported blockchains

Parameters

NameTypeRequiredDefaultDescription

blockchainIds

String[]

defaultBlockchainIds

Blockchain ids

Return type

Promise<{[blockchainId: string]: string}>

Usage Example

const walletAddresses = await sdk.wallet.getAddresses()
// or
const walletAddresses = await sdk.wallet.getAddresses({ blockchainIds: ['ethereum', 'polygon'] })

Show address

Description

Displays a widget with the wallet address encoded in a QR code and a dropdown to choose the blockchain of the address.

Parameters

NameTypeRequiredDefaultDescription

blockchainId

String

✔️

Blockchain id

Return type

Promise<string>

Usage Example

await sdk.wallet.showAddress({ blockchainId: 'ethereum' })

Last updated