TransactionButton
TransactionButton component is used to render a button that sends a given transaction. Refer to preparing transactions guide to learn how to create a transaction object.
It shows a "Switch Network" button if the connected wallet is on a different chain than the transaction.
Example
