{"version":"1.0","service":"Clash of Coins","realm":"mpp.clashofcoins.app","network":"tempo:42431","currency":"0x20c0000000000000000000000000000000000000","currencySymbol":"pathUSD","payTo":"0x97b7f63Cb9f40a147775aa425589a334F7091E37","protocol":"mpp","method":"tempo/charge","recipientRequired":true,"inputSchema":{"type":"object","properties":{"nickname":{"type":"string","description":"Clash of Coins player nickname that should receive delivery"},"address":{"type":"string","description":"Optional EVM address used to resolve and verify the recipient"},"itemId":{"type":"string","description":"Single-item shorthand for buying one catalog item"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity used together with itemId shorthand"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["itemId","quantity"],"properties":{"itemId":{"type":"string"},"quantity":{"type":"integer","minimum":1,"default":1}}}}},"oneOf":[{"required":["nickname","items"]},{"required":["address","items"]},{"required":["nickname","itemId"]},{"required":["address","itemId"]}]},"inputExample":{"nickname":"PlayerOne","items":[{"itemId":"a-units-pack:1","quantity":1}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nickname":{"type":"string","description":"Clash of Coins player nickname that should receive delivery"},"address":{"type":"string","description":"Optional EVM address used to resolve and verify the recipient"},"itemId":{"type":"string","description":"Single-item shorthand for buying one catalog item"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity used together with itemId shorthand"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["itemId","quantity"],"properties":{"itemId":{"type":"string"},"quantity":{"type":"integer","minimum":1,"default":1}}}}},"oneOf":[{"required":["nickname","items"]},{"required":["address","items"]},{"required":["nickname","itemId"]},{"required":["address","itemId"]}]},"example":{"nickname":"PlayerOne","items":[{"itemId":"a-units-pack:1","quantity":1}]}}}},"agentIntegration":{"recommendedSdk":"mppx","npmInstall":"npm install mppx","canonicalUsage":"import { Mppx, tempo } from 'mppx/client';\nimport { privateKeyToAccount } from 'viem/accounts';\n\nMppx.create({\n  methods: [tempo({ account: privateKeyToAccount(process.env.PRIVATE_KEY) })],\n});\n\nawait fetch(url, {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify(body),\n});","retryRule":"Settle the Tempo transfer first, then retry the exact same JSON request with Authorization: Payment.","manualImplementation":{"warning":"Manual MPP credential building is error-prone. Prefer the mppx SDK.","authHeader":"Authorization: Payment <base64-encoded JSON credential>","payloadLocation":"credential.payload","payloadFormat":{"type":"hash","hash":"<tx-hash-after-onchain-transfer>","network":"tempo:42431"}},"commonMistakes":["Using payment.transactionHash instead of credential.payload.hash","Missing credential.payload.type=\"hash\"","Retrying with a different JSON body than the unpaid challenge request","Sending the credential before the Tempo transfer exists onchain"]},"operations":{"buyPaid":{"method":"POST","path":"/shop/mpp/buy","inputSchema":{"type":"object","properties":{"nickname":{"type":"string","description":"Clash of Coins player nickname that should receive delivery"},"address":{"type":"string","description":"Optional EVM address used to resolve and verify the recipient"},"itemId":{"type":"string","description":"Single-item shorthand for buying one catalog item"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity used together with itemId shorthand"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["itemId","quantity"],"properties":{"itemId":{"type":"string"},"quantity":{"type":"integer","minimum":1,"default":1}}}}},"oneOf":[{"required":["nickname","items"]},{"required":["address","items"]},{"required":["nickname","itemId"]},{"required":["address","itemId"]}]},"inputExample":{"nickname":"PlayerOne","items":[{"itemId":"a-units-pack:1","quantity":1}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nickname":{"type":"string","description":"Clash of Coins player nickname that should receive delivery"},"address":{"type":"string","description":"Optional EVM address used to resolve and verify the recipient"},"itemId":{"type":"string","description":"Single-item shorthand for buying one catalog item"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity used together with itemId shorthand"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["itemId","quantity"],"properties":{"itemId":{"type":"string"},"quantity":{"type":"integer","minimum":1,"default":1}}}}},"oneOf":[{"required":["nickname","items"]},{"required":["address","items"]},{"required":["nickname","itemId"]},{"required":["address","itemId"]}]},"example":{"nickname":"PlayerOne","items":[{"itemId":"a-units-pack:1","quantity":1}]}}}}},"buyPayment":{"protocol":"mpp","method":"tempo/charge","authHeader":"Authorization: Payment","realm":"mpp.clashofcoins.app","network":"tempo:42431","currency":"0x20c0000000000000000000000000000000000000","payTo":"0x97b7f63Cb9f40a147775aa425589a334F7091E37"}},"endpoints":{"offers":"/shop/mpp/offers","quote":"/shop/mpp/quote","buy":"/shop/mpp/buy","purchaseStatus":"/shop/mpp/purchases/{paymentReference}"},"items":[{"itemId":"a-units-pack:1","title":"200 A-UNITS","price":"0.09"},{"itemId":"a-units-pack:2","title":"1100 A-UNITS","price":"0.45"},{"itemId":"a-units-pack:3","title":"2400 A-UNITS","price":"0.9"},{"itemId":"a-units-pack:4","title":"6000 A-UNITS","price":"18"},{"itemId":"a-units-pack:5","title":"11000 A-UNITS","price":"31.5"},{"itemId":"keys:10","title":"10 keys","price":"4.5"},{"itemId":"keys:5","title":"5 keys","price":"2.25"},{"itemId":"keys:50","title":"50 keys","price":"18"},{"itemId":"agent:a-units-pack-1","title":"agent:a-units-pack-1","price":"0.09"}]}