Schema for lists of tokens compatible with the SushiSwap Interface
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | Yes | Unknown status | No | Forbidden | Forbidden | none | tokenlist.schema.json |
object
(SushiSwap Token List)
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
name | string |
Required | cannot be null | SushiSwap Token List |
timestamp | string |
Required | cannot be null | SushiSwap Token List |
version | object |
Required | cannot be null | SushiSwap Token List |
tokens | array |
Required | cannot be null | SushiSwap Token List |
keywords | array |
Optional | cannot be null | SushiSwap Token List |
tags | object |
Optional | cannot be null | SushiSwap Token List |
logoURI | string |
Optional | cannot be null | SushiSwap Token List |
The name of the token list
name
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
maximum length: the maximum number of characters for this string is: 20
minimum length: the minimum number of characters for this string is: 1
pattern: the string must match the following regular expression:
^[\w ]+$
"My Token List"
The timestamp of this list version; i.e. when this immutable version of the list was created
timestamp
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
date time: the string must be a date time string, according to RFC 3339, section 5.6
The version of the list, used in change detection
version
-
is required
-
Type:
object
(Details) -
cannot be null
-
defined in: SushiSwap Token List
object
(Details)
{
"major": 1,
"minor": 0,
"patch": 0
}
The list of tokens included in the list
tokens
-
is required
-
Type:
object[]
(Details) -
cannot be null
-
defined in: SushiSwap Token List
object[]
(Details)
maximum number of items: the maximum number of items for this array is: 10000
minimum number of items: the minimum number of items for this array is: 1
Keywords associated with the contents of the list; may be used in list discoverability
keywords
-
is optional
-
Type:
string[]
-
cannot be null
-
defined in: SushiSwap Token List
string[]
maximum number of items: the maximum number of items for this array is: 20
unique items: all items in this array must be unique. Duplicates are not allowed.
A mapping of tag identifiers to their name and description
tags
-
is optional
-
Type:
object
(Details) -
cannot be null
-
defined in: SushiSwap Token List
object
(Details)
maximum number of properties: the maximum number of properties for this object is: 20
{
"stablecoin": {
"name": "Stablecoin",
"description": "A token with value pegged to another asset"
}
}
A URI for the logo of the token list; prefer SVG or PNG of size 256x256
logoURI
-
is optional
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
URI: the string must be a URI, according to RFC 3986
"ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"
Reference this group by using
{ "$ref": "https://yopen.org/tokenlist.schema.json#/definitions/Version" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
major | integer |
Required | cannot be null | SushiSwap Token List |
minor | integer |
Required | cannot be null | SushiSwap Token List |
patch | integer |
Required | cannot be null | SushiSwap Token List |
The major version of the list. Must be incremented when tokens are removed from the list or token addresses are changed.
major
-
is required
-
Type:
integer
-
cannot be null
-
defined in: SushiSwap Token List
integer
minimum: the value of this number must greater than or equal to: 0
1
2
The minor version of the list. Must be incremented when tokens are added to the list.
minor
-
is required
-
Type:
integer
-
cannot be null
-
defined in: SushiSwap Token List
integer
minimum: the value of this number must greater than or equal to: 0
0
1
The patch version of the list. Must be incremented for any changes to the list.
patch
-
is required
-
Type:
integer
-
cannot be null
-
defined in: SushiSwap Token List
integer
minimum: the value of this number must greater than or equal to: 0
0
1
Reference this group by using
{ "$ref": "https://yopen.org/tokenlist.schema.json#/definitions/TagIdentifier" }
Property | Type | Required | Nullable | Defined by |
---|
Reference this group by using
{ "$ref": "https://yopen.org/tokenlist.schema.json#/definitions/ExtensionIdentifier" }
Property | Type | Required | Nullable | Defined by |
---|
Reference this group by using
{ "$ref": "https://yopen.org/tokenlist.schema.json#/definitions/ExtensionValue" }
Property | Type | Required | Nullable | Defined by |
---|
Reference this group by using
{ "$ref": "https://yopen.org/tokenlist.schema.json#/definitions/TagDefinition" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
name | string |
Required | cannot be null | SushiSwap Token List |
description | string |
Required | cannot be null | SushiSwap Token List |
The name of the tag
name
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
maximum length: the maximum number of characters for this string is: 20
minimum length: the minimum number of characters for this string is: 1
pattern: the string must match the following regular expression:
^[ \w]+$
A user-friendly description of the tag
description
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
maximum length: the maximum number of characters for this string is: 200
minimum length: the minimum number of characters for this string is: 1
pattern: the string must match the following regular expression:
^[ \w\.,]+$
Reference this group by using
{ "$ref": "https://yopen.org/tokenlist.schema.json#/definitions/TokenInfo" }
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
chainId | integer |
Required | cannot be null | SushiSwap Token List |
address | string |
Required | cannot be null | SushiSwap Token List |
decimals | integer |
Required | cannot be null | SushiSwap Token List |
name | string |
Required | cannot be null | SushiSwap Token List |
symbol | string |
Required | cannot be null | SushiSwap Token List |
logoURI | string |
Optional | cannot be null | SushiSwap Token List |
tags | array |
Optional | cannot be null | SushiSwap Token List |
extensions | object |
Optional | cannot be null | SushiSwap Token List |
The chain ID of the Ethereum network where this token is deployed
chainId
-
is required
-
Type:
integer
-
cannot be null
-
defined in: SushiSwap Token List
integer
minimum: the value of this number must greater than or equal to: 1
1
42
The checksummed address of the token on the specified chain ID
address
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
pattern: the string must match the following regular expression:
^0x[a-fA-F0-9]{40}$
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
The number of decimals for the token balance
decimals
-
is required
-
Type:
integer
-
cannot be null
-
defined in: SushiSwap Token List
integer
maximum: the value of this number must smaller than or equal to: 255
minimum: the value of this number must greater than or equal to: 0
18
The name of the token
name
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
maximum length: the maximum number of characters for this string is: 40
minimum length: the minimum number of characters for this string is: 1
pattern: the string must match the following regular expression:
^[ \w.'+\-%/À-ÖØ-öø-ÿ\:]+$
"USD Coin"
The symbol for the token; must be alphanumeric
symbol
-
is required
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
maximum length: the maximum number of characters for this string is: 20
minimum length: the minimum number of characters for this string is: 1
pattern: the string must match the following regular expression:
^[a-zA-Z0-9+\-%/\$]+$
"USDC"
A URI to the token logo asset; if not set, interface will attempt to find a logo based on the token address; suggest SVG or PNG of size 64x64
logoURI
-
is optional
-
Type:
string
-
cannot be null
-
defined in: SushiSwap Token List
string
URI: the string must be a URI, according to RFC 3986
"ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"
An array of tag identifiers associated with the token; tags are defined at the list level
tags
-
is optional
-
Type:
string[]
-
cannot be null
-
defined in: SushiSwap Token List
string[]
maximum length: the maximum number of characters for this string is: 10
"stablecoin"
"compound"
An object containing any arbitrary or vendor-specific token metadata
extensions
-
is optional
-
Type:
object
(Details) -
cannot be null
-
defined in: SushiSwap Token List
object
(Details)
maximum number of properties: the maximum number of properties for this object is: 10
{
"color": "#000000",
"is_verified_by_me": true
}
Registry and Tokenlist Data is under Copyright 2021 The SushiSwap Contributors
Nodejs Components under Apache-2.0
https://yopen.org/tokenlist.schema.json