Verifies the purchase transaction on-chain and grants the credits immediately (the event sync remains the backstop). Returns the updated balance.
Verifies the purchase transaction on-chain and grants the credits immediately (the event sync remains the backstop). Returns the updated balance.
bearer In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST "https://example.com/builder/credits/purchases" \ -H "Content-Type: application/json" \ -d '{ "txHash": "string" }'{ "balanceCredits": "string", "minBufferCredits": "string", "canPrompt": true, "creditsPerForest": "string", "costMultiplier": 0}Hash of the confirmed purchaseCredits transaction.
^0x[0-9a-fA-F]{64}$