Skip to main content
Package: com.coinbase.cdp.resources.evmswaps

Constructor Details

EvmSwapsClient

Parameters: clientOptions - ClientOptions

Method Details

withRawResponse

Get responses with HTTP metadata like headers Returns: WithRawResponseEvmSwapsClient

getEvmSwapPrice

Overload 1
Get a price estimate for a swap between two tokens on an EVM network. Parameters: request - GetEvmSwapPriceRequest Returns: GetSwapPriceResponseWrapper Overload 2
Get a price estimate for a swap between two tokens on an EVM network. Parameters: request - GetEvmSwapPriceRequest requestOptions - RequestOptions Returns: GetSwapPriceResponseWrapper

createEvmSwapQuote

Overload 1
Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap. Parameters: request - CreateEvmSwapQuoteRequest Returns: CreateSwapQuoteResponseWrapper Overload 2
Create a swap quote, which includes the payload to sign as well as the transaction data needed to execute the swap. The developer is responsible for signing the payload and submitting the transaction to the network in order to execute the swap. Parameters: request - CreateEvmSwapQuoteRequest requestOptions - RequestOptions Returns: CreateSwapQuoteResponseWrapper