From 8c72e96b2b171c74a3e76ad59a9969aa6e0e97ff Mon Sep 17 00:00:00 2001 From: MantisClone Date: Thu, 22 Jan 2026 15:19:31 -0500 Subject: [PATCH] docs: Fix token list structure documentation - Add missing fields: id, network, type, hash - Remove non-existent logoURI field - Add field descriptions table - Link to SDK source for supported networks and types Co-Authored-By: Claude Opus 4.5 --- docs/general/request-network-token-list.md | 30 +++++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/general/request-network-token-list.md b/docs/general/request-network-token-list.md index 5992f4b..ac78931 100644 --- a/docs/general/request-network-token-list.md +++ b/docs/general/request-network-token-list.md @@ -20,16 +20,32 @@ Each token in the list contains the following information: ```json { - "id": "TKN-mainnet" - "name": "Token Name", - "address": "0x...", - "symbol": "TKN", - "decimals": 18, - "chainId": 1, - "logoURI": "https://..." + "id": "USDC-mainnet", + "name": "USD Coin", + "symbol": "USDC", + "decimals": 6, + "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "network": "mainnet", + "type": "ERC20", + "hash": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "chainId": 1 } ``` +| Field | Description | +|-------|-------------| +| `id` | Unique identifier, typically `SYMBOL-network` (e.g., `USDC-mainnet`) | +| `name` | Human-readable token name | +| `symbol` | Token symbol | +| `decimals` | Number of decimal places | +| `address` | Token contract address | +| `network` | Network name (e.g., `mainnet`, `matic`, `bsc`) | +| `type` | Currency type (e.g., `ERC20`, `ETH`, `ISO4217`) | +| `hash` | For ERC20 tokens, same as `address`. For native tokens, a calculated hash. | +| `chainId` | Chain ID of the network | + +See the [SDK source code](https://github.com/RequestNetwork/requestNetwork/blob/master/packages/types/src/currency-types.ts) for the full list of supported networks and types. + ## Adding a New Token We welcome community contributions! To add a new token to the list: