토큰 정보 조회
개요
해당 토큰의 디테일한 정보를 확인할 수 있습니다
Parameters
Name
Type
Explane
참조
network
String
메인넷
required
token_id
String
토큰 아이디 (컨트랙트 주소)
required (0x0000000...0000000000 : 메인넷 코인)
Response
이름
타입
설명
result
String
호출 결과 성공여부 (성공: OK, 실패: FAIL)
value (array of object)
이름
타입
설명
name
String
토큰 이름
symbol
String
토큰 심볼
decimals
String
소수점 단위
total_supply
String
총 발행량 (wei)
Example
// parameters
val network = "polygon"
val token_id = "0x..."
val tokenInfo = getTokenInfoAsync(network, token_id)
println(tokenInfo)
// tokenInfo result log
/*
{
"result": "OK",
"value": {
"name": "WildCrusH",
"symbol": "WCH",
"decimals": 18,
"total_supply": "2845339607484" // wei
}
}
*/
Last updated