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

Constructor Details

AsyncEvmSwapsClient

Parameters: clientOptions - ClientOptions

Method Details

withRawResponse

Get responses with HTTP metadata like headers Returns: AsyncWithRawResponseEvmSwapsClient

getEvmSwapPrice

Overload 1
Get a price estimate for a swap between two tokens on an EVM network. Parameters: request - GetEvmSwapPriceRequest Returns: CompletableFuture<GetSwapPriceResponseWrapper> Overload 2
Get a price estimate for a swap between two tokens on an EVM network. Parameters: request - GetEvmSwapPriceRequest requestOptions - RequestOptions Returns: CompletableFuture<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: CompletableFuture<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: CompletableFuture<CreateSwapQuoteResponseWrapper>