The props for the SendTransactionButton component.
The props for the SendTransactionButton component.
SendTransactionButtonProps
The account to send the transaction from.
The network to send the transaction on.
Optional
onError?: (error: Error | APIError) => voidA function to call when the transaction errors.
Optional
onSuccess?: (hash: string) => voidA function to call when the transaction is successful.
Optional
pendingLabel?: ReactNodeThe label to show to screen readers when the transaction is pending.
The transaction to send.
Optional
variant?: ButtonVariantThe variant of the button.
The rendered component.
A button that signs and sends a transaction.