CDP Frontend SDK
    Preparing search index...

    Interface SendSolanaTransactionButtonProps

    The props for the SendSolanaTransactionButton component.

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

    Hierarchy

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

    transaction: string

    The base64 encoded 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".