Docs

TransactionButtonProps

Props for the TransactionButton component.

type TransactionButtonProps = {
children: React.ReactNode;
className?: string;
disabled?: boolean;
gasless?: GaslessOptions;
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>>;
};