{"info":{"name":"Chalecoin API","description":"Generated collection for the CHLC game-currency API.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"https://chalecoin.chalecity.com"},{"key":"clientId","value":"chalecity-game-api"},{"key":"clientSecret","value":""},{"key":"accessToken","value":""},{"key":"destinationAddress","value":""},{"key":"sourcePublicKey","value":""},{"key":"sourcePrivateKey","value":""}],"item":[{"name":"Authentication","item":[{"name":"Create JWT","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"auth":{"type":"noauth"},"url":"{{baseUrl}}/api/v1/auth/token","body":{"mode":"raw","raw":"{\n  \"clientId\": \"{{clientId}}\",\n  \"clientSecret\": \"{{clientSecret}}\"\n}","options":{"raw":{"language":"json"}}}},"event":[{"listen":"test","script":{"exec":["const body = pm.response.json();","if (body.accessToken) pm.collectionVariables.set('accessToken', body.accessToken);"]}}]}]},{"name":"Wallets","item":[{"name":"Generate wallet","request":{"method":"POST","header":[],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"url":"{{baseUrl}}/api/v1/wallets/generate"}}]},{"name":"Transactions","item":[{"name":"Credit address","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"url":"{{baseUrl}}/api/v1/transactions/credit","body":{"mode":"raw","raw":"{\n  \"destinationAddress\": \"{{destinationAddress}}\",\n  \"amount\": \"10\",\n  \"reference\": \"game-reward-001\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"Transfer","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"url":"{{baseUrl}}/api/v1/transactions/transfer","body":{"mode":"raw","raw":"{\n  \"sourcePrivateKey\": \"{{sourcePrivateKey}}\",\n  \"sourcePublicKey\": \"{{sourcePublicKey}}\",\n  \"destinationAddress\": \"{{destinationAddress}}\",\n  \"amount\": \"1.5\",\n  \"reference\": \"player-transfer-001\"\n}","options":{"raw":{"language":"json"}}}}},{"name":"List audit logs","request":{"method":"GET","header":[],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"url":"{{baseUrl}}/api/v1/transactions/audit-logs?limit=50&offset=0"}}]}]}