Skip to main content

useEVMAddress

@coinbase/waas-sdk-web-reactAPI


Function: useEVMAddress()

useEVMAddress(wallet): undefined | Address<EVM>

A convenience function to grab the first EVM address (i.e bip32 0/0 soft-derived path).

Parameters

wallet: undefined | Wallet

The EVM wallet, or undefined -- i.e as returned from const {wallet} = useWalletContext()

Returns

undefined | Address<EVM>

An EVM-ready address, when available.

Example

const {wallet} = useWalletContext();
const address = useEVMAddress(wallet);

Was this helpful?