request(
"GET",
"/v1/custody/mpc/get_utxo_assets/",
{
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/get_utxo_assets/', {
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
}, 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_utxo_assets/", map[string]string{
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
})
{
"success": true,
"result": {
"chain_coin": "BTC",
"txid": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0,
"pending": false,
"assets": {
"btc": 12000000000,
"brc_20": {
"ordi": {
"value": 8374897239498,
"decimal": 18,
"cobo_coin_code": null
},
"sats": {
"value": 9830000000000000000000000000,
"decimal": 18,
"cobo_coin_code": null
}
},
"ordinals_inscription": [{
"inscription_id": "5e871f9ef8d17a990f20ce9e7928d09f5f1e838cef08a719936c9c5d3ae3af93i0",
"metadata": {
"Token ID": "227",
"Name": "AILU 227"
},
"parent": "a3fb1b9aa4fd072cdc3616224c46276b064ac84d554dd750c92e53bd920a6969i0",
"address": "bc1pgk78wytsshwl8t9w2jws9whm57vjgex3ld7cesfkhgwst3c6zjjsasawkx",
"content_type": "text/plain;charset=utf-8",
"genesis_height": 834518,
"genesis_transaction": "5e871f9ef8d17a990f20ce9e7928d09f5f1e838cef08a719936c9c5d3ae3af93",
"location": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60:0:0",
"output": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60:0",
"offset": 0,
"ethereum_teleburn_address": "0xdDE9Bb04fA6d062f6f812c06b5f12e8cc8a2b684"
}]
}
}
}
Get UTXO Assets
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
mpc
/
get_utxo_assets
/
request(
"GET",
"/v1/custody/mpc/get_utxo_assets/",
{
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/get_utxo_assets/', {
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
}, 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_utxo_assets/", map[string]string{
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
})
{
"success": true,
"result": {
"chain_coin": "BTC",
"txid": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0,
"pending": false,
"assets": {
"btc": 12000000000,
"brc_20": {
"ordi": {
"value": 8374897239498,
"decimal": 18,
"cobo_coin_code": null
},
"sats": {
"value": 9830000000000000000000000000,
"decimal": 18,
"cobo_coin_code": null
}
},
"ordinals_inscription": [{
"inscription_id": "5e871f9ef8d17a990f20ce9e7928d09f5f1e838cef08a719936c9c5d3ae3af93i0",
"metadata": {
"Token ID": "227",
"Name": "AILU 227"
},
"parent": "a3fb1b9aa4fd072cdc3616224c46276b064ac84d554dd750c92e53bd920a6969i0",
"address": "bc1pgk78wytsshwl8t9w2jws9whm57vjgex3ld7cesfkhgwst3c6zjjsasawkx",
"content_type": "text/plain;charset=utf-8",
"genesis_height": 834518,
"genesis_transaction": "5e871f9ef8d17a990f20ce9e7928d09f5f1e838cef08a719936c9c5d3ae3af93",
"location": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60:0:0",
"output": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60:0",
"offset": 0,
"ethereum_teleburn_address": "0xdDE9Bb04fA6d062f6f812c06b5f12e8cc8a2b684"
}]
}
}
}
Request
String
required
Coin code
String
required
Transaction hash of the UTXO
Int
required
Output index of the UTXO
Response
bool
request successful or failed
object
Show object
Show object
String
Chain coin code
String
Transaction hash of the UTXO
Int
Output index of the UTXO
Bool
Whether the transaction is pending
object
Show object
Show object
Int
The amount of BTC
object
request(
"GET",
"/v1/custody/mpc/get_utxo_assets/",
{
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/get_utxo_assets/', {
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
}, 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_utxo_assets/", map[string]string{
"coin": "BTC",
"tx_hash": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0
})
{
"success": true,
"result": {
"chain_coin": "BTC",
"txid": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60",
"vout_n": 0,
"pending": false,
"assets": {
"btc": 12000000000,
"brc_20": {
"ordi": {
"value": 8374897239498,
"decimal": 18,
"cobo_coin_code": null
},
"sats": {
"value": 9830000000000000000000000000,
"decimal": 18,
"cobo_coin_code": null
}
},
"ordinals_inscription": [{
"inscription_id": "5e871f9ef8d17a990f20ce9e7928d09f5f1e838cef08a719936c9c5d3ae3af93i0",
"metadata": {
"Token ID": "227",
"Name": "AILU 227"
},
"parent": "a3fb1b9aa4fd072cdc3616224c46276b064ac84d554dd750c92e53bd920a6969i0",
"address": "bc1pgk78wytsshwl8t9w2jws9whm57vjgex3ld7cesfkhgwst3c6zjjsasawkx",
"content_type": "text/plain;charset=utf-8",
"genesis_height": 834518,
"genesis_transaction": "5e871f9ef8d17a990f20ce9e7928d09f5f1e838cef08a719936c9c5d3ae3af93",
"location": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60:0:0",
"output": "7e1d2c7f4293f4119180a89dcd3d3789927551d8e1408acf50cf769cc47e4e60:0",
"offset": 0,
"ethereum_teleburn_address": "0xdDE9Bb04fA6d062f6f812c06b5f12e8cc8a2b684"
}]
}
}
}
⌘I
