{"openapi":"3.1.0","info":{"title":"YourToken API","version":"1.0.0","description":"Public API of the YourToken (YTK) token on TRON: token data, transfers, holders, addresses and transactions, webhooks, and the testnet faucet.\n\nNo key is needed for reading. An API key (X-API-Key header) raises the rate limit and manages webhooks. Every response carries RateLimit-* headers.\n\nYourToken (YTK) is not USDT and cannot be redeemed for money."},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key"},"AdminSession":{"type":"apiKey","in":"cookie","name":"tw_admin"}},"schemas":{}},"paths":{"/v1/health":{"get":{"summary":"Service health","tags":["Explorer"],"description":"ok is true when the indexer worker is alive and, once the token is deployed, the index is no more than the allowed lag behind the chain. Answers 503 only when the database is down.","security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"network":{"type":"string","enum":["nile","mainnet"]},"deployed":{"type":"boolean"},"indexedBlock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"indexedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"lagSeconds":{"type":["number","null"]}},"required":["ok","network","deployed","indexedBlock","indexedAt","lagSeconds"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"503":{"description":"The database does not answer","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"network":{"type":"string","enum":["nile","mainnet"]},"deployed":{"type":"boolean"},"indexedBlock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"indexedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"lagSeconds":{"type":["number","null"]}},"required":["ok","network","deployed","indexedBlock","indexedAt","lagSeconds"],"additionalProperties":false,"description":"The database does not answer"}}}}}}},"/v1/token":{"get":{"summary":"Token overview","tags":["Explorer"],"description":"Name, supply and cap read live from the contract (cached 15 s), plus holder and transfer counts from the index.","security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string","enum":["nile","mainnet"]},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deployed":{"type":"boolean"},"contractAddress":{"type":["string","null"]},"totalSupply":{"anyOf":[{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},{"type":"null"}]},"cap":{"anyOf":[{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},{"type":"null"}],"description":"Maximum supply; null when uncapped"},"owner":{"type":["string","null"]},"holders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"transfers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexedBlock":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"indexedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"tronscanUrl":{"type":["string","null"]}},"required":["network","name","symbol","decimals","deployed","contractAddress","totalSupply","cap","owner","holders","transfers","indexedBlock","indexedAt","tronscanUrl"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"The TRON node did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The TRON node did not answer"}}}}}}},"/v1/transfers":{"get":{"summary":"Latest token transfers","tags":["Explorer"],"parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page"}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"txId":{"type":"string"},"eventIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"status":{"type":"string","enum":["confirmed","final"]}},"required":["txId","eventIndex","blockNumber","timestamp","from","to","amount","status"],"additionalProperties":false}},"nextCursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid query or cursor","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid query or cursor"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/holders":{"get":{"summary":"Token holders by balance","tags":["Explorer"],"description":"Balances from final (irreversible) transfers only.","parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page"}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string"},"balance":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"share":{"type":"number","description":"Share of total supply, 0 to 1"}},"required":["rank","address","balance","share"],"additionalProperties":false}},"nextCursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","nextCursor","total"],"additionalProperties":false}}}},"400":{"description":"Invalid query or cursor","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid query or cursor"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/addresses/{address}":{"get":{"summary":"Address overview","tags":["Explorer"],"description":"TRX and token balance (live, cached a few seconds) and token transfer stats.","parameters":[{"schema":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"},"in":"path","name":"address","required":true,"description":"Base58 TRON address"}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"},"activated":{"type":"boolean","description":"False until the address has received TRX"},"isContract":{"type":"boolean"},"trxBalance":{"type":"string","pattern":"^\\d+$","description":"TRX balance in sun","example":"1500000"},"tokenBalance":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"transfers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Token transfers in or out"},"firstTransferAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"tronscanUrl":{"type":"string"}},"required":["address","activated","isContract","trxBalance","tokenBalance","transfers","firstTransferAt","tronscanUrl"],"additionalProperties":false}}}},"400":{"description":"Not a TRON address","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not a TRON address"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"The TRON node did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The TRON node did not answer"}}}}}}},"/v1/addresses/{address}/transfers":{"get":{"summary":"Token transfers of an address","tags":["Explorer"],"parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page"},{"schema":{"default":"all","type":"string","enum":["all","in","out"]},"in":"query","name":"direction","required":false},{"schema":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"},"in":"path","name":"address","required":true,"description":"Base58 TRON address"}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"txId":{"type":"string"},"eventIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"status":{"type":"string","enum":["confirmed","final"]}},"required":["txId","eventIndex","blockNumber","timestamp","from","to","amount","status"],"additionalProperties":false}},"nextCursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid address, query or cursor","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid address, query or cursor"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/addresses/{address}/trx-transfers":{"get":{"summary":"TRX transfers of an address","tags":["Explorer"],"description":"Read live from TronGrid, newest first.","parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":1000,"pattern":"^[A-Za-z0-9+/=_-]+$"},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page"},{"schema":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"},"in":"path","name":"address","required":true,"description":"Base58 TRON address"}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"txId":{"type":"string"},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","pattern":"^\\d+$","description":"TRX in sun","example":"1500000"},"status":{"type":"string","enum":["confirmed","final","failed"]}},"required":["txId","blockNumber","timestamp","from","to","amount","status"],"additionalProperties":false}},"nextCursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid address, query or cursor","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid address, query or cursor"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"The TRON node did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The TRON node did not answer"}}}}}}},"/v1/tx/{hash}":{"get":{"summary":"Transaction detail","tags":["Explorer"],"description":"Status, fees, failure reason and the token transfers inside a transaction.","parameters":[{"schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"},"in":"path","name":"hash","required":true,"description":"64-character hex transaction id"}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"txId":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed","final","failed"],"description":"pending: broadcast, not in a block yet · confirmed: in a block · final: solidified (irreversible) · failed: executed with an error"},"type":{"type":"string","enum":["token_transfer","trx_transfer","contract_call","other"]},"contractType":{"type":"string","example":"TriggerSmartContract"},"blockNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"timestamp":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"from":{"type":"string"},"to":{"description":"Recipient (TRX) or called contract","type":["string","null"]},"trxAmount":{"anyOf":[{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},{"type":"null"}]},"result":{"example":"SUCCESS","type":["string","null"]},"failureReason":{"type":["string","null"]},"fee":{"anyOf":[{"type":"object","properties":{"totalSun":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"energyUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"energyFeeSun":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bandwidthUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bandwidthFeeSun":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["totalSun","energyUsed","energyFeeSun","bandwidthUsed","bandwidthFeeSun"],"additionalProperties":false},{"type":"null"}]},"tokenTransfers":{"type":"array","items":{"type":"object","properties":{"txId":{"type":"string"},"eventIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"status":{"type":"string","enum":["confirmed","final"]}},"required":["txId","eventIndex","blockNumber","timestamp","from","to","amount","status"],"additionalProperties":false},"description":"Transfers of this token inside the transaction"},"tronscanUrl":{"type":"string"}},"required":["txId","status","type","contractType","blockNumber","timestamp","from","to","trxAmount","result","failureReason","fee","tokenTransfers","tronscanUrl"],"additionalProperties":false}}}},"400":{"description":"Not a transaction id","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not a transaction id"}}}},"404":{"description":"Transaction not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Transaction not found"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"The TRON node did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The TRON node did not answer"}}}}}}},"/v1/search":{"get":{"summary":"Search","tags":["Explorer"],"description":"Finds a transaction id, an address (base58 or 41-hex) or the token by name or symbol.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"q","required":true}],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["transaction","address","token","none"]},"value":{"type":["string","null"]}},"required":["type","value"],"additionalProperties":false}}}},"400":{"description":"Empty or too long query","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Empty or too long query"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"The TRON node did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The TRON node did not answer"}}}}}}},"/v1/faucet":{"get":{"summary":"Faucet status (Nile testnet only)","tags":["Faucet"],"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"cooldownHours":{"type":"number"},"faucetAddress":{"type":["string","null"]},"tokenBalance":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"trxBalance":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"trxFaucetUrl":{"type":["string","null"]}},"required":["enabled","amount","cooldownHours","faucetAddress","tokenBalance","trxBalance","trxFaucetUrl"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"The TRON node did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The TRON node did not answer"}}}}}}},"/v1/faucet/claim":{"post":{"summary":"Claim test tokens (Nile testnet only)","tags":["Faucet"],"description":"Sends the faucet amount to the address. One claim per address per cooldown, a few per network. Testnet tokens have no value.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","description":"Base58 TRON address","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"}},"required":["address"]}}}},"security":[{},{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"txId":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"nextClaimAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["txId","to","amount","nextClaimAt"],"additionalProperties":false}}}},"400":{"description":"Invalid address","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid address"}}}},"409":{"description":"This address claimed within the cooldown","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"},"nextClaimAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["statusCode","error","message","nextClaimAt"],"additionalProperties":false,"description":"This address claimed within the cooldown"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"502":{"description":"Sending failed; nothing was sent","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Sending failed; nothing was sent"}}}},"503":{"description":"The faucet is paused, empty or not set up","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The faucet is paused, empty or not set up"}}}}}}},"/v1/webhooks":{"post":{"summary":"Create a webhook","tags":["Webhooks"],"description":"Get a POST when a watched address receives tokens. The signing secret is returned only here. At most 20 webhooks per API key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":500,"format":"uri"},"addresses":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","description":"Base58 TRON address","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"}},"events":{"default":["transfer.confirmed","transfer.final"],"minItems":1,"type":"array","items":{"type":"string","enum":["transfer.confirmed","transfer.final"]}}},"required":["url","addresses"]}}}},"security":[{"ApiKey":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"addresses":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"string","enum":["transfer.confirmed","transfer.final"]}},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"secret":{"type":"string","description":"Signing secret. Shown only once, when the webhook is created."}},"required":["id","url","addresses","events","active","createdAt","updatedAt","secret"],"additionalProperties":false}}}},"400":{"description":"Invalid body, or the URL is not allowed","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid body, or the URL is not allowed"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or invalid API key"}}}},"409":{"description":"Too many webhooks for this API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Too many webhooks for this API key"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}},"get":{"summary":"List your webhooks","tags":["Webhooks"],"security":[{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"addresses":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"string","enum":["transfer.confirmed","transfer.final"]}},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["id","url","addresses","events","active","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or invalid API key"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/webhooks/{id}":{"get":{"summary":"Get a webhook","tags":["Webhooks"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"security":[{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"addresses":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"string","enum":["transfer.confirmed","transfer.final"]}},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["id","url","addresses","events","active","createdAt","updatedAt"],"additionalProperties":false}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or invalid API key"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Webhook not found"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}},"patch":{"summary":"Change a webhook","tags":["Webhooks"],"description":"Send only the fields to change. active: false pauses deliveries.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":500,"format":"uri"},"addresses":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","description":"Base58 TRON address","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"}},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["transfer.confirmed","transfer.final"]}},"active":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"security":[{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"addresses":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"string","enum":["transfer.confirmed","transfer.final"]}},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["id","url","addresses","events","active","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Invalid body, or the URL is not allowed","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid body, or the URL is not allowed"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or invalid API key"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Webhook not found"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}},"delete":{"summary":"Delete a webhook","tags":["Webhooks"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"security":[{"ApiKey":[]}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or invalid API key"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Webhook not found"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/webhooks/{id}/deliveries":{"get":{"summary":"Delivery log of a webhook","tags":["Webhooks"],"description":"Newest first. Failed deliveries are retried with backoff.","parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page"},{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"security":[{"ApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string","enum":["transfer.confirmed","transfer.final"]},"txId":{"type":"string"},"eventIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","success","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastStatusCode":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastError":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"nextAttemptAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]}},"required":["id","event","txId","eventIndex","status","attempts","lastStatusCode","lastError","createdAt","nextAttemptAt","deliveredAt"],"additionalProperties":false}},"nextCursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid query or cursor","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid query or cursor"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or invalid API key"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Webhook not found"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/auth/nonce":{"post":{"summary":"Start a wallet sign-in","tags":["Admin"],"description":"Returns the message to sign with signMessageV2 (TronLink). Valid for 5 minutes, single use.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","description":"Base58 TRON address","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"}},"required":["address"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["message","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Invalid address","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid address"}}}},"403":{"description":"Not an admin wallet, or a foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not an admin wallet, or a foreign Origin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}},"503":{"description":"The token owner could not be read","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"The token owner could not be read"}}}}}}},"/v1/admin/auth/verify":{"post":{"summary":"Finish a wallet sign-in","tags":["Admin"],"description":"Checks the signature and sets the session cookie (12 hours).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","description":"Base58 TRON address","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"},"message":{"type":"string","minLength":1,"maxLength":2000},"signature":{"type":"string","pattern":"^(0x)?[0-9a-fA-F]{130}$"}},"required":["address","message","signature"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"},"isOwner":{"type":"boolean","description":"True when this address is the contract owner (can mint)"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["address","isOwner","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid body"}}}},"401":{"description":"Unknown, used or expired request, or a wrong signature","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Unknown, used or expired request, or a wrong signature"}}}},"403":{"description":"Not an admin wallet, or a foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not an admin wallet, or a foreign Origin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/auth/logout":{"post":{"summary":"Sign out","tags":["Admin"],"security":[{"AdminSession":[]}],"responses":{"204":{"description":"Signed out (also when there was no session)"},"403":{"description":"Missing or foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Missing or foreign Origin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/me":{"get":{"summary":"Current admin session","tags":["Admin"],"security":[{"AdminSession":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"},"isOwner":{"type":"boolean","description":"True when this address is the contract owner (can mint)"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"}},"required":["address","isOwner","expiresAt"],"additionalProperties":false}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/api-keys":{"get":{"summary":"List API keys","tags":["Admin"],"security":[{"AdminSession":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","description":"First characters of the key, to recognise it"},"rateLimitPerMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]}},"required":["id","name","prefix","rateLimitPerMinute","createdAt","lastUsedAt","revokedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}},"post":{"summary":"Create an API key","tags":["Admin"],"description":"The key is returned only in this response; only its hash is stored.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"rateLimitPerMinute":{"type":"integer","minimum":10,"maximum":10000}},"required":["name"]}}}},"security":[{"AdminSession":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","description":"First characters of the key, to recognise it"},"rateLimitPerMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"key":{"type":"string","description":"The API key. Shown only once."}},"required":["id","name","prefix","rateLimitPerMinute","createdAt","lastUsedAt","revokedAt","key"],"additionalProperties":false}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid body"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin, or a foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin, or a foreign Origin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/api-keys/{id}":{"delete":{"summary":"Revoke an API key","tags":["Admin"],"description":"Takes effect on every server within 30 seconds. Its webhooks stop too.","parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"id","required":true}],"security":[{"AdminSession":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string","description":"First characters of the key, to recognise it"},"rateLimitPerMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},{"type":"null"}]}},"required":["id","name","prefix","rateLimitPerMinute","createdAt","lastUsedAt","revokedAt"],"additionalProperties":false}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin, or a foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin, or a foreign Origin"}}}},"404":{"description":"API key not found","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"API key not found"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/audit":{"get":{"summary":"Audit log","tags":["Admin"],"description":"Admin actions and reported mint/burn transactions, newest first.","parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"cursor","required":false,"description":"nextCursor from the previous page"}],"security":[{"AdminSession":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"actor":{"type":"string"},"action":{"type":"string"},"txId":{"type":["string","null"]},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","createdAt","actor","action","txId","details"],"additionalProperties":false}},"nextCursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid query or cursor","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid query or cursor"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}},"post":{"summary":"Record a mint or burn transaction","tags":["Admin"],"description":"The admin panel calls this after the wallet broadcast a mint or burn, so the audit log links the transaction.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["mint","burn"]},"txId":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","description":"64-character hex transaction id"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"to":{"type":"string","pattern":"^T[1-9A-HJ-NP-Za-km-z]{33}$","description":"Base58 TRON address","example":"TJeJYiMBojB1bMHLXs3LmDcK6jDKcyYsYb"}},"required":["action","txId","amount"]}}}},"security":[{"AdminSession":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","example":"2026-12-06T03:51:12.000Z"},"actor":{"type":"string"},"action":{"type":"string"},"txId":{"type":["string","null"]},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","createdAt","actor","action","txId","details"],"additionalProperties":false}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid body"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin, or a foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin, or a foreign Origin"}}}},"409":{"description":"This transaction is already recorded","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"This transaction is already recorded"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}},"/v1/admin/faucet":{"get":{"summary":"Faucet settings (Nile testnet only)","tags":["Admin"],"security":[{"AdminSession":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"cooldownHours":{"type":"number","minimum":0,"maximum":720}},"required":["enabled","amount","cooldownHours"],"additionalProperties":false}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}},"put":{"summary":"Change the faucet settings (Nile testnet only)","tags":["Admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"cooldownHours":{"type":"number","minimum":0,"maximum":720}},"required":["enabled","amount","cooldownHours"]}}}},"security":[{"AdminSession":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"amount":{"type":"string","pattern":"^\\d+$","description":"Integer amount in base units, as a string (token: 10^decimals per token; TRX: sun)","example":"1500000"},"cooldownHours":{"type":"number","minimum":0,"maximum":720}},"required":["enabled","amount","cooldownHours"],"additionalProperties":false}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Invalid body"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Not signed in"}}}},"403":{"description":"No longer an admin, or a foreign Origin","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"No longer an admin, or a foreign Origin"}}}},"429":{"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"message":{"type":"string"}},"required":["statusCode","error","message"],"additionalProperties":false,"description":"Rate limit exceeded; see the RateLimit-* and Retry-After headers"}}}}}}}},"servers":[{"url":"/"}],"tags":[{"name":"Explorer","description":"Token, transfers, holders, addresses, transactions"},{"name":"Faucet","description":"Free test tokens on the Nile testnet"},{"name":"Webhooks","description":"Notifications for watched addresses (API key)"},{"name":"Admin","description":"Admin panel (wallet sign-in session)"}]}