Docs

TransactionButtonProps

Props for the TransactionButton component.

type TransactionButtonProps = {
children: React.ReactNode;
className?: string;
onClick?: (
e: React.MouseEvent<HTMLButtonElement, MouseEvent>,
) => void;
onError?: (error: Error) => void;
onTransactionConfirmed?: (receipt: TransactionReceipt) => void;
onTransactionSent?: (
transactionResult: WaitForReceiptOptions,
) => void;
style?: React.CSSProperties;
transaction: () =>
| Promise<PreparedTransaction<any>>;
};