NFT 컬렉션 생성
개요
NFT 컬렉션을 생성하고 배포합니다.
컬렉션의 여러가지 속성을 정의하여 NFT들을 그룹화하고 관리할 수 있습니다.
ERC721, ERC1155를 지원합니다.
Parameters
Response
value (array of object)
Example
//parameters
val network = "polygon"
val from = "0x..."
val name = "KTHULU"
val symbol = "KTH"
val token_base_uri = "https://kthulu.io/"
val uri_type = "0"
//ERC721
val deployERC721 = deployErc721Async(network,
from,
name,
symbol,
token_base_uri,
uri_type)
//ERC1155
val deployERC1155 = deployErc1155Async(network,
from,
name,
symbol,
token_base_uri,
uri_type)
println(deployERC721)
println(deployERC1155)
// result log
/*
{
"result" : "OK",
"value": [
{
"transaction_hash": "0x...",
"contract_address": "0x..."
}
]
}
*/
Parameters
Response
value (array of object)
Example
// parameters
let network = "polygon"
let from = "0x..."
let name = "KTHULU"
let symbol = "KTH"
let token_base_uri = "https://kthulu.io/"
let uri_type = "0"
//ERC721
let deployERC721 = try await deployErc721Async(network: network,
from: from,
name: name,
symbol: symbol,
token_base_uri: token_base_uri,
uri_type: uri_type)
//ERC1155
let deployERC1155 = try await deployErc1155Async(network: network,
from: from,
name: name,
symbol: symbol,
token_base_uri: token_base_uri,
uri_type: uri_type)
print(deployERC721)
print(deployERC1155)
// result log
/*
{
"result" : "OK",
"value": [
{
"transaction_hash": "0x...",
"contract_address": "0x..."
}
]
}
*/
Last updated