{"version":"1.0","service":"Clash of Coins","realm":"mpp.clashofcoins.com","network":"tempo:4217","currency":"0x20c000000000000000000000b9537d11c60e8b50","currencySymbol":"USDC","payTo":"0x8b29DABD6fBb5A09DAcbC7978eaed66A8540721d","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":"keys:10","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":"keys:10","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:4217"}},"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":"keys:10","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":"keys:10","quantity":1}]}}}}},"buyPayment":{"protocol":"mpp","method":"tempo/charge","authHeader":"Authorization: Payment","realm":"mpp.clashofcoins.com","network":"tempo:4217","currency":"0x20c000000000000000000000b9537d11c60e8b50","payTo":"0x8b29DABD6fBb5A09DAcbC7978eaed66A8540721d"}},"endpoints":{"offers":"/shop/mpp/offers","quote":"/shop/mpp/quote","buy":"/shop/mpp/buy","purchaseStatus":"/shop/mpp/purchases/{paymentReference}"},"items":[{"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":"10 A-UNITS","price":"0.09"},{"itemId":"a-units-pack:1","title":"130 A-UNITS","price":"0.9"},{"itemId":"a-units-pack:2","title":"700 A-UNITS","price":"4.5"},{"itemId":"a-units-pack:3","title":"1650 A-UNITS","price":"9"},{"itemId":"a-units-pack:4","title":"4250 A-UNITS","price":"22.5"},{"itemId":"a-units-pack:5","title":"8850 A-UNITS","price":"40.5"}]}