dAppBooster
    Preparing search index...
    interface TransactionButtonProps {
        chainId?: 1 | 10 | 137 | 11155111 | 11155420 | 42161;
        confirmations?: number;
        fallback?: ReactElement<unknown, string | JSXElementConstructor<any>>;
        labelSending?: string;
        onMined?: (receipt: TransactionReceipt) => void;
        switchChainLabel?: string;
        transaction: { methodId?: string; (): Promise<`0x${string}`> };
    }

    Hierarchy

    • ButtonProps
      • TransactionButtonProps
    Index

    Properties

    chainId?: 1 | 10 | 137 | 11155111 | 11155420 | 42161

    Target chain ID for wallet status verification.

    confirmations?: number

    Number of confirmations to wait for. Defaults to 1.

    fallback?: ReactElement<unknown, string | JSXElementConstructor<any>>

    Custom fallback when wallet needs connection. Defaults to ConnectWalletButton.

    labelSending?: string

    Button label during pending transaction. Defaults to 'Sending...'.

    onMined?: (receipt: TransactionReceipt) => void

    Callback function called when transaction is mined.

    switchChainLabel?: string

    Label for the switch chain button. Defaults to 'Switch to'.

    transaction: { methodId?: string; (): Promise<`0x${string}`> }

    Function that initiates the transaction and returns a hash.