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

Method Details

getScheme

Returns: X402V1PaymentRequirementsScheme - The scheme of the payment protocol to use. Currently, the only supported scheme is exact.

getNetwork

Returns: X402V1Network - The network of the blockchain to send payment on.

getMaxAmountRequired

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

getResource

Returns: String - The URL of the resource to pay for.

getDescription

Returns: Description - A human-readable description of the resource.

getMimeType

Returns: String - The MIME type of the resource response.

getOutputSchema

Returns: Optional<Map<String,Object>> - The optional JSON schema describing the resource output.

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.

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.

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: X402V1PaymentRequirements.SchemeStage