CDP Frontend SDK
    Preparing search index...

    Function SendTransactionButton

    • A button that signs and sends a transaction.

      Parameters

      • props: SendTransactionButtonProps

        The props for the SendTransactionButton component.

        The props for the SendTransactionButton component.

        SendTransactionButtonProps

        • account: `0x${string}`

          The account to send the transaction from.

        • network: SendEvmTransactionWithEndUserAccountBodyNetwork

          The network to send the transaction on.

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

          A function to call when the transaction errors.

        • OptionalonSuccess?: (hash: 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: AllowedEvmTransactionType

          The transaction to send.

        • Optionalvariant?: ButtonVariant

          The variant of the button.

      Returns Element

      The rendered component.