request(
"GET",
"/v1/custody/mpc/get_supported_nft_collections/",
{
"chain_code": "ETH"
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/get_supported_nft_collections/', {
"chain_code": "ETH"
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/mpc/get_supported_nft_collections/", map[string]string{
"chain_code": "ETH"
})
{
"success": true,
"result": {
"nft_collections": [
{
"nft_code": "NFT_ETH_MOOD",
"chain_code": "ETH",
"contract_address": "0xda4c9ffb9a96ef44865114be4af25004f0ee385d",
"description": "Moodies",
"display_code": "MOOD",
"standard": "ERC721"
},
{
"nft_code": "NFT_ETH_GOBLIN",
"chain_code": "ETH",
"contract_address": "0xbce3781ae7ca1a5e050bd9c4c77369867ebc307e",
"description": "",
"display_code": "GOBLIN",
"standard": "ERC721"
}
]
}
}
Account
Get Supported NFT Collections
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
mpc
/
get_supported_nft_collections
/
request(
"GET",
"/v1/custody/mpc/get_supported_nft_collections/",
{
"chain_code": "ETH"
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/get_supported_nft_collections/', {
"chain_code": "ETH"
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/mpc/get_supported_nft_collections/", map[string]string{
"chain_code": "ETH"
})
{
"success": true,
"result": {
"nft_collections": [
{
"nft_code": "NFT_ETH_MOOD",
"chain_code": "ETH",
"contract_address": "0xda4c9ffb9a96ef44865114be4af25004f0ee385d",
"description": "Moodies",
"display_code": "MOOD",
"standard": "ERC721"
},
{
"nft_code": "NFT_ETH_GOBLIN",
"chain_code": "ETH",
"contract_address": "0xbce3781ae7ca1a5e050bd9c4c77369867ebc307e",
"description": "",
"display_code": "GOBLIN",
"standard": "ERC721"
}
]
}
}
This API is only intended for MPC web3 wallets and does not support MPC send/receive wallets.
Request
String
required
chain code
Response
bool
request successful or failed
object
request(
"GET",
"/v1/custody/mpc/get_supported_nft_collections/",
{
"chain_code": "ETH"
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/get_supported_nft_collections/', {
"chain_code": "ETH"
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/mpc/get_supported_nft_collections/", map[string]string{
"chain_code": "ETH"
})
{
"success": true,
"result": {
"nft_collections": [
{
"nft_code": "NFT_ETH_MOOD",
"chain_code": "ETH",
"contract_address": "0xda4c9ffb9a96ef44865114be4af25004f0ee385d",
"description": "Moodies",
"display_code": "MOOD",
"standard": "ERC721"
},
{
"nft_code": "NFT_ETH_GOBLIN",
"chain_code": "ETH",
"contract_address": "0xbce3781ae7ca1a5e050bd9c4c77369867ebc307e",
"description": "",
"display_code": "GOBLIN",
"standard": "ERC721"
}
]
}
}
⌘I
