REST API
Query SRC20 tokens deployed through the factory via a REST API
Running the server
cd packages/api
cargo runGET /api/tokens
Request
GET http://localhost:3001/api/tokensResponse
{
"count": 2,
"tokens": [
{
"address": "0xabc123...",
"name": "My Private Token",
"symbol": "MPT",
"decimals": 18,
"owner": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"total_supply": "1000000000000000000000000"
},
{
"address": "0xdef456...",
"name": "Another Token",
"symbol": "AT",
"decimals": 6,
"owner": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"total_supply": "500000000000"
}
]
}GET /api/token/{address}
Request
Response
Error response
What the API can and cannot read
Last updated

