How it works
The useSendBalance hook depends on the DynamicContextProvider, so it has to be used as a child of the Dynamic context. When you use the hook, you will get a function namedopen. 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