Skip to main content
Package: com.coinbase.cdp.types

Method Details

getScheme

Returns: X402V2PaymentRequirementsScheme - The scheme of the payment protocol to use. Supported schemes are exact, upto, and batch-settlement.

getNetwork

Returns: X402V2Network - The network of the blockchain to send payment on in CAIP-2 format.

getAsset

Returns: BlockchainAddress - The asset to pay with. For EVM networks, the asset will be a 0x-prefixed, checksum EVM address. For Solana-based networks, the asset will be a base58-encoded Solana address.

getAmount

Returns: String - The amount to pay for the resource in atomic units of the payment asset.

getPayTo

Returns: BlockchainAddress - The destination to pay value to. For EVM networks, payTo will be a 0x-prefixed, checksum EVM address. For Solana-based networks, payTo will be a base58-encoded Solana address.

getMaxTimeoutSeconds

Returns: int - The maximum time in seconds for the resource server to respond.

getExtra

Returns: Optional<Map<String,Object>> - The optional additional scheme-specific payment info.

equals

Overrides: [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

Returns: Map<String,Object>

hashCode

Overrides: [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

Overrides: [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

Returns: X402V2PaymentRequirements.SchemeStage