Wallet Addresses

Wallet Addresses React & React Native Hooks

Import hooks

In order to use the function below, you need to import the hooks for React or React native.

Import React Hooks

import { hooks } from '@paytweed/frontend-sdk-react'

Get address

Description

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

Parameters

NameTypeRequiredDefaultDescription

blockchainId

String

✔️

Blockchain id

Data type

string

Usage Example

const { data, error, loading } = hooks.useWalletAddress({ blockchainId: 'ethereum' })

Get addresses

Description

Returns the list of wallet addresses for all the supported blockchains

Parameters

NameTypeRequiredDefaultDescription

blockchainIds

String[]

defaultBlockchainIds

Blockchain ids

Data type

{[blockchainId: string]: string}

Usage Example

const { data, error, loading } = hooks.useWalletAddresses()

Last updated