GET /tokens/{address}
One token launched on Market Mayhem.
GET https://marketmayhem.co/api/v1/tokens/{address}Parameters
Section titled “Parameters”| Name | In | Required | Meaning |
|---|---|---|---|
address | path | yes | The token |
Response
Section titled “Response”| Field | Type | Required | Meaning |
|---|---|---|---|
address | string | yes | The token |
symbol | string | yes | |
name | string | yes | |
pool | string | yes | Its PancakeSwap V3 pool |
fee | integer | yes | The pool fee tier (10000 = 1%) |
creator | string | yes | The wallet that launched it |
decimals | integer | yes | |
quote | object | yes | The pair currency |
quote.address | string | yes | The pair currency’s contract (WBNB for BNB) |
quote.decimals | integer | yes | Its decimals |
quote.symbol | string | yes | Its symbol, e.g. BNB |
quoteIsBnb | boolean | yes | True when it trades against BNB |
A real response
Section titled “A real response”Captured from BSC testnet, exactly as the API sent it (long calldata shortened).
{ "address": "0x136bfd5f42250a568ce06ed1b145729b400e391c", "symbol": "BRNT", "name": "Burn Test", "pool": "0x0c779f6d50f5d27df85a84e8fc15e66202076e6d", "fee": 10000, "creator": "0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da", "decimals": 18, "quote": { "address": "0xae13d989dac2f0debff460ac112a837c89baa7cd", "decimals": 18, "symbol": "BNB" }, "quoteIsBnb": true}Errors
Section titled “Errors”Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer:
UNKNOWN_TOKEN: That address is not a token launched on Market Mayhem.INVALID_ADDRESS: A field that must be a 0x address is not one.