network
String
네트워크
required
collection_id
컬렉션 아이디
owner
NFT 소유자
token_id
NFT 토큰 아이디
amount
소각 수량
if ERC1155 required
result
소각 성공여부("OK", "FAIL")
value (array of object)
transaction_hash
트랜잭션 해시
// parameters val network = "polygon" val collection_id = "0x..." val owner = "0x..." val token_id = "123" val amount = "1" //ERC721 val burnERC721 = burnErc721Async(network, owner, token_id, collection_id) //ERC1155 val burnERC1155 = burnErc1155Async(network, owner, token_id, collection_id, amount) println(burnERC721) println(burnERC1155) // result log /* { "result" : "OK", "value": [ { "transaction_hash": "0x..." } ] } */
// parameters let network = "polygon" let collection_id = "0x..." let owner = "0x..." let token_id = "123" let amount = "1" //ERC721 let burnERC721 = try await burnErc721Async(network: network, owner: owner, token_id: token_id, collection_id: collection_id) //ERC1155 let burnERC1155 = try await burnErc1155Async(network: network, owner: owner, token_id: token_id, collection_id: collection_id, amount: amount) print(burnERC721) print(burnERC1155) // result log {/* { "result" : "OK", "value": [ { "transaction_hash": "0x..." } ] } */
Last updated 1 year ago