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.

        • 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.

        • transaction: string

          The base64 encoded transaction to send.

        • Optionalsize?: ButtonSize

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

        • OptionalisPending?: boolean

          Whether the button state is pending.

        • OptionalasChild?: boolean

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

        • OptionalfullWidth?: boolean

          Whether the button should be full width.

        • OptionalpendingLabel?: ReactNode

          A label to render when the button state is pending.

        • Optionalvariant?: ButtonVariant

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

      Returns Element

      The rendered component.