TransactionButton
TransactionButton component is used to render a button that triggers a transaction.
It shows a "Switch Network" button if the connected wallet is on a different chain than the transaction.
Example
Customize the styling by passing the unstyled
prop and your inline styles and/or classes:
Handle errors
Alert when a transaction is sent
Alert when a transaction is completed
The onClick prop, if provided, will be called before the transaction is sent.
Attach custom Pay metadata