useEVMAddress
@coinbase/waas-sdk-web-react • API
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);