CDP Frontend SDK
    Preparing search index...

    Function SendSolanaTransactionButton

    • A button that signs and sends a Solana transaction.

      Parameters

      • props: SendSolanaTransactionButtonProps

        The props for the SendSolanaTransactionButton component.

        The props for the SendSolanaTransactionButton component.

        SendSolanaTransactionButtonProps

        • account: string

          The Solana account to send the transaction from.

        • network: SendSolanaTransactionWithEndUserAccountBodyNetwork

          The network to send the transaction on.

        • OptionalonError?: (error: Error | APIError) => void

          A function to call when the transaction errors.

        • OptionalonSuccess?: (signature: string) => void

          A function to call when the transaction is successful.

        • OptionalpendingLabel?: ReactNode

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

        • transaction: string

          The base64 encoded transaction to send.

        • Optionalvariant?: ButtonVariant

          The variant of the button.

      Returns Element

      The rendered component.