CDP Frontend SDK
    Preparing search index...

    Interface SendTransactionButtonProps

    The props for the SendTransactionButton component.

    SendTransactionButtonProps

    interface SendTransactionButtonProps {
        account: `0x${string}`;
        network: SendEvmTransactionWithEndUserAccountBodyNetwork;
        onError?: (error: Error | APIError) => void;
        onSuccess?: (hash: string) => void;
        pendingLabel?: ReactNode;
        transaction: AllowedEvmTransactionType;
        variant?: ButtonVariant;
    }

    Hierarchy

    • Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onError">
      • SendTransactionButtonProps
    Index

    Properties

    account: `0x${string}`

    The account to send the transaction from.

    The network to send the transaction on.

    onError?: (error: Error | APIError) => void

    A function to call when the transaction errors.

    onSuccess?: (hash: string) => void

    A function to call when the transaction is successful.

    pendingLabel?: ReactNode

    The label to show to screen readers when the transaction is pending.

    The transaction to send.

    variant?: ButtonVariant

    The variant of the button.