Skip to content

V2 - SettlementResponse contains "requirements" #836

@straumat

Description

@straumat

i'm implement x402 V2 in Mogami

Using my client to call https://www.x402.org/protected, the SettlementResponse i Iget contains a requirements.

{
  "success": true,
  "transaction": "0x367b2be69eca8086e1cae68f6fc0704e7bb6af5fa1ae876d05b450641c455e4f",
  "network": "eip155:84532",
  "payer": "0xf6b42050A71Ca13f842eDa53C7d31B7C1BD94F6E",
  "requirements": {
    "scheme": "exact",
    "network": "eip155:84532",
    "amount": "10000",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
    "maxTimeoutSeconds": 300,
    "extra": {
      "name": "USDC",
      "version": "2"
    }
  }
}

There is nothing about it in the specifications at 5.3 SettlementResponse Schema

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions