개요
데이터베이스에서 해당 토큰의 정보를 가져온 뒤, 특정 계정이 해당 토큰을 실제로 소유하고 있는지 검증합니다.
Parameters
Response
example
// parameters
val network = "polygon"
val account = "0xD128Db97095C59591621748439e42E6ad3EEDB2d"
val collection_id = "0xe2a5e32ef4b0a5C45aF4c6AF7BC912860641C37B"
val token_id = "1934"
var chkNFTHolder = chkNFTHolder(network,
account,
collection_id,
token_id)
println(chkNFTHolder)
/**
* {
"result" : "OK",
"value" : [
{"success" : "OK"}
]
}
*/
Parameters
Response
example
// parameters
let network = "polygon"
let account = "0xD128Db97095C59591621748439e42E6ad3EEDB2d"
let collection_id = "0xe2a5e32ef4b0a5C45aF4c6AF7BC912860641C37B"
let token_id = "1934"
let chkNFTHolder = try await chkNFTHolder(network:network,
account:account,
collection_id:collection_id,
token_id:token_id)
print(chkNFTHolder)
/**
* {
"result" : "OK",
"value" : [
{"success" : "OK"}
]
}
*/
RequestURL
Parameters
Response
호출 결과 성공여부 (성공: OK, 실패: FAIL)
value (array of object)
example
{
"network": ["ethereum"],
"account": "0x...",
"collection_id": "0x...",
"token_id": 1
}
let nfts = await nft.getNFTsByWallet(network, account, collection_id, token_id);
/**
* {
"result" : "OK",
"value" : [
{"success" : "OK"}
]
}
*/