TransactionButtonProps

Props for the TransactionButton component.

type TransactionButtonProps = {
children: React.ReactNode;
className?: string;
disabled?: boolean;
gasless?: GaslessOptions;
onClick?: () => void;
onError?: (error: Error) => void;
onTransactionConfirmed?: (receipt: TransactionReceipt) => void;
onTransactionSent?: (
transactionResult: WaitForReceiptOptions,
) => void;
style?: React.CSSProperties;
theme?: "dark" | "light" | Theme;
transaction: () =>
| Promise<PreparedTransaction<any>>;
type?: HTMLButtonElement["type"];
unstyled?: boolean;
};