Widget for users to send balance when using embedded wallets
useSendBalance
hook.
Send
button will appear for them.
open
. That method accepts the follow options:
Parameter | Type | Description |
---|---|---|
recipientAddress | String | The initial recipient address |
value | ethers.BigNumber | The initial transaction amount |
open
function will return a promise; If successful, the promise will be resolved with the transaction; if not successful, the promise will be rejected accompanied by the error collected from the provider.
Here is an example of a custom Send button