SupportedController_getIfTokenIsSupported
GEThttps://api.socket.tech/v2/supported/token-support
SupportedController_getIfTokenIsSupported
Request​
Query Parameters
chainId stringrequired
Id of chain, e.g Optimism = 10
Example: 10
address stringrequired
Contract address of the token
Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
Header Parameters
API-KEY string
Responses​
- 200
Get if token is supported
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
success booleanrequired
Status of API.
result
object[]
required
chainId numberrequired
Id of chain.
name stringrequired
Name of chain.
icon stringrequired
URL for icon of chain.
isL1 booleanrequired
Flag indicating whether the chain is L1.
sendingEnabled booleanrequired
Flag indicating whether sending of tokens is supported from chain.
receivingEnabled booleanrequired
Flag indicating whether receiving of tokens is supported to chain.
refuel
object
required
sendingEnabled boolean
receivingEnabled boolean
currency
object
required
address stringrequired
Address of gas token.
icon stringrequired
URL for icon of gas token.
name stringrequired
Name of gas token.
symbol stringrequired
Symbol of gas token.
decimals numberrequired
Decimals of gas token.
minNativeCurrencyForGas stringrequired
Minimum amount to be left for gas while using max amount.
rpcs string[]required
explorers string[]required
{
"success": true,
"result": [
{
"chainId": 137,
"name": "Polygon",
"icon": "https://movricons.s3.ap-south-1.amazonaws.com/Matic.svg",
"isL1": false,
"sendingEnabled": true,
"receivingEnabled": true,
"refuel": {
"sendingEnabled": true,
"receivingEnabled": true
},
"currency": {
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"icon": "https://maticnetwork.github.io/polygon-token-assets/assets/matic.svg",
"name": "Matic",
"symbol": "MATIC",
"decimals": 18,
"minNativeCurrencyForGas": "100000000000000000"
},
"rpcs": [
"string"
],
"explorers": [
"string"
]
}
]
}
Loading...