com.coinbase.cdp.types
Method Details
getBlockNumber
String - The block number at which the liquidity conditions were examined.
getToAmount
String - The amount of the toToken that will be received in atomic units of the toToken. For example, 1000000000000000000 when receiving ETH equates to 1 ETH, 1000000 when receiving USDC equates to 1 USDC, etc.
getToToken
String - The 0x-prefixed contract address of the token that will be received.
getFees
getIssues
getLiquidityAvailable
boolean - Whether sufficient liquidity is available to settle the swap. All other fields in the response will be empty if this is false.
getMinToAmount
String - The minimum amount of the toToken that must be received for the swap to succeed, in atomic units of the toToken. For example, 1000000000000000000 when receiving ETH equates to 1 ETH, 1000000 when receiving USDC equates to 1 USDC, etc. This value is influenced by the slippageBps parameter.
getFromAmount
String - The amount of the fromToken that will be sent in this swap, in atomic units of the fromToken. For example, 1000000000000000000 when sending ETH equates to 1 ETH, 1000000 when sending USDC equates to 1 USDC, etc.
getFromToken
String - The 0x-prefixed contract address of the token that will be sent.
getGas
String - The estimated gas limit that should be used to send the transaction to guarantee settlement.
getGasPrice
String - The gas price, in Wei, that should be used to send the transaction. For EIP-1559 transactions, this value should be seen as the maxFeePerGas value. The transaction should be sent with this gas price to guarantee settlement.
equals
[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")
Parameters:
other - Object
Returns:
boolean
getAdditionalProperties
Map<String,Object>
hashCode
[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")
Returns:
int
toString
[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang") in class [Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")
Returns:
String
builder
BlockNumberStage