CDP Frontend SDK
    Preparing search index...

    Function SendEvmTransactionButton

    • A button that signs and sends a transaction.

      Parameters

      • props: SendEvmTransactionButtonProps

        The props for the SendEvmTransactionButton component.

        The props for the SendEvmTransactionButton component.

        SendEvmTransactionButtonProps

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