CDP Frontend SDK
    Preparing search index...

    Interface SendEvmTransactionButtonProps

    The props for the SendEvmTransactionButton component.

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

    Hierarchy

    • Omit<ButtonProps, "onError">
      • SendEvmTransactionButtonProps
    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.

    The transaction to send.

    size?: ButtonSize

    The size of the button. Defaults to "md".

    isPending?: boolean

    Whether the button state is pending.

    asChild?: boolean

    Set to true to use a custom element or component in place of the default button element.

    fullWidth?: boolean

    Whether the button should be full width.

    pendingLabel?: ReactNode

    A label to render when the button state is pending.

    variant?: ButtonVariant

    The variant of the button. Defaults to "primary".