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.

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

        • transaction: AllowedEvmTransactionType

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