The Basics of Minting APIs
This page describes how you can manage your organization NFTs with Lootex API.
Mint NFTs will cost ETH, please carefully monitor Ethereum balance of your organization before proceeding! Please contact Lootex support for more details.
post
https://api.forge.lootex.dev
/v1/contracts/:contract_address/assets/batch
Batch Mint NFTs
attribute_map varies from different NFT smart contract, please contact Lootex support for your specific format

Example Request (cURL)

curl --location --request POST "{{host}}/v1/contracts/{{contract_address}}/assets/batch" \
--header "Content-Type: application/json" \
--header "Authorization: ApiKey {{api_key}}" \
--data "{
\"meta\": {
\"use_ipfs\": false
},
\"assets\": [
{
\"to_address\": \"0x312ee068322071030A4Ce5fB197d3179d0e24889\",
\"name\": \"Privileged Explorer\",
\"description\": \"非常早期的數位收藏品探險家,您有澄澈的眼和勇敢的心,往往能夠在大眾尚未看透趨勢時,就不畏質疑採取行動。這是一個全世界只有 100 個的限量徽章,此徽章代表您已經準備好開啟一段壯遊,探索一個鏈接真實的虛擬世界,挖掘尚未被發現的奇珍異寶。\\n\\n(#13 out of 100\",
\"image_url\": \"https://storage.googleapis.com/lootex-static/MeetTaipei/privileged-explorer.png\",
\"background_color\": \"eeeeee\",
\"attributes_map\": {
\"ID Number\": \"13\",
\"Rarity\": \"epic\",
\"Issue Date\": \"Nov. 14, 2019\"
}
},
{
\"to_address\": \"0x9478E2C334B4D3d0C8ACa26CE22809816d227236\",
\"name\": \"Privileged Explorer\",
\"description\": \"非常早期的數位收藏品探險家,您有澄澈的眼和勇敢的心,往往能夠在大眾尚未看透趨勢時,就不畏質疑採取行動。這是一個全世界只有 100 個的限量徽章,此徽章代表您已經準備好開啟一段壯遊,探索一個鏈接真實的虛擬世界,挖掘尚未被發現的奇珍異寶。\\n\\n(#17 out of 100\",
\"image_url\": \"https://storage.googleapis.com/lootex-static/MeetTaipei/privileged-explorer.png\",
\"background_color\": \"eeeeee\",
\"attributes_map\": {
\"ID Number\": \"17\",
\"Rarity\": \"epic\",
\"Issue Date\": \"Nov. 14, 2019\"
}
}
]
}"
get
https://api.forge.lootex.dev
/v1/contracts/:contract_address/assets
Retrieve NFT minting info

Example Request (cURL)

curl --location --request GET "{{host}}/v1/contracts/{{contract_address}}/assets?limit=1" \
--header "Authorization: ApiKey {{api_key}}"
put
https://api.forge.lootex.dev
/v1/contracts/:contract_address/:token_id
Update NFT Properties

Example Request (cURL)

curl --location --request PUT "{{endpoint}}/v1/assets/{{contract_address}}/{{token_id}}" \
--header "Content-Type: application/json" \
--header "Authorization: ApiKey {{api_key}}" \
--data "{
\"attributes_map\": {
\"Rarity\": epic,
}
}"