Comment on page
NFT 홀더인증(확인)
데이터베이스에서 해당 토큰의 정보를 가져온 뒤, 특정 계정이 해당 토큰을 실제로 소유하고 있는지 검증합니다.
Android
iOS
Web
이름 | 타입 | 설명 | 참조 |
---|---|---|---|
network | String | 네트워크 | required |
account | String | 소유자 | required |
collection_id | String | 컬렉션 아이디 | required |
token_id | String | 토큰 아이디 | required |
이름 | 타입 | 설명 |
---|---|---|
result | String | OK or FAIL |
// 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"}
]
}
*/
이름 | 타입 | 설명 | 참조 |
---|---|---|---|
network | String | 네트워크 | required |
account | String | 소유자 | required |
collection_id | String | 컬렉션 아이디 | required |
token_id | String | 토큰 아이디 | required |
이름 | 타입 | 설명 |
---|---|---|
result | String | OK or FAIL |
// 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"}
]
}
*/
이름 | 타입 | 설명 | 참조 |
---|---|---|---|
network | String | 네트워크 | required |
account | String | 계정 | required |
collection_id | String | 컬렉션 아이디 | required |
token_id | Int | 토큰 아이디 | required |
이름 | 타입 | 설명 |
---|---|---|
result | String | 호출 결과 성공여부 (성공: OK, 실패: FAIL) |
value (array of object)
이름 | 타입 | 설명 |
---|---|---|
signature | String | 서명된 시그니처 |
{
"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"}
]
}
*/
Last modified 2mo ago