Package-level declarations

Types

Link copied to clipboard
class AssetAddress : AbstractValue<String>
Link copied to clipboard
@JsonSerializable
data class FacilitatorRequest(val payload: PaymentPayload, val paymentRequirements: PaymentRequirements)
Link copied to clipboard
class PaymentAmount : AbstractValue<String>
Link copied to clipboard
class PaymentNetwork : AbstractValue<String>
Link copied to clipboard
@JsonSerializable
data class PaymentPayload(val x402Version: Int, val scheme: PaymentScheme, val network: PaymentNetwork, val payload: Map<String, String>, val resource: String, val description: String)
Link copied to clipboard
@JsonSerializable
data class PaymentRequired(val x402Version: Int, val error: String, val accepts: List<PaymentRequirements>, val resource: ResourceInfo? = null)
Link copied to clipboard
@JsonSerializable
data class PaymentRequirements(val scheme: PaymentScheme, val network: PaymentNetwork, val asset: AssetAddress, val amount: PaymentAmount, val payTo: WalletAddress, val maxTimeoutSeconds: Int, val extra: Map<String, String> = emptyMap())
Link copied to clipboard
class PaymentScheme : AbstractValue<String>
Link copied to clipboard
@JsonSerializable
data class ResourceInfo(val url: Uri, val description: String? = null, val mimeType: MimeType? = null)
Link copied to clipboard
@JsonSerializable
data class SettleResponse(val success: Boolean, val errorReason: String? = null, val transaction: TransactionHash? = null, val network: PaymentNetwork? = null, val payer: WalletAddress? = null)
Link copied to clipboard
@JsonSerializable
data class SupportedKind(val scheme: PaymentScheme, val networks: List<PaymentNetwork>)
Link copied to clipboard
@JsonSerializable
data class SupportedResponse(val x402Version: Int, val kinds: List<SupportedKind>)
Link copied to clipboard
class TransactionHash : AbstractValue<String>
Link copied to clipboard
@JsonSerializable
data class VerifyResponse(val isValid: Boolean, val invalidReason: String? = null, val payer: WalletAddress? = null)
Link copied to clipboard
class WalletAddress : AbstractValue<String>