CDP Frontend SDK
    Preparing search index...

    Interface SendSolanaTransactionButtonProps

    The props for the SendSolanaTransactionButton component.

    SendSolanaTransactionButtonProps

    interface SendSolanaTransactionButtonProps {
        account: string;
        network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
        onError?: (error: Error | APIError) => void;
        onSuccess?: (signature: string) => void;
        pendingLabel?: ReactNode;
        transaction: string;
        variant?: ButtonVariant;
    }

    Hierarchy

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

    Properties

    account: string

    The Solana 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?: (signature: 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.

    transaction: string

    The base64 encoded transaction to send.

    variant?: ButtonVariant

    The variant of the button.