request(
"GET",
"/v1/custody/mpc/list_spendable/",
{
"coin": "BTC",
"address": ""
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/list_spendable/', {
"coin": "BTC",
"address": ""
}, 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/list_spendable/", map[string]string{
"coin": "BTC",
"address": ""
})
{
"success": true,
"result": {
'utxos': [{
'tx_hash': 'dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83',
'vout_n': 0,
'address': '2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE',
'amount': 100000,
'is_coinbase': False,
'confirmed_number': 66716
}, {
'tx_hash': 'dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83',
'vout_n': 1,
'address': '2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE',
'amount': 99270,
'is_coinbase': False,
'confirmed_number': 66716
}]
}
}
Account
Get Spendable List
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
mpc
/
list_spendable
/
request(
"GET",
"/v1/custody/mpc/list_spendable/",
{
"coin": "BTC",
"address": ""
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/list_spendable/', {
"coin": "BTC",
"address": ""
}, 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/list_spendable/", map[string]string{
"coin": "BTC",
"address": ""
})
{
"success": true,
"result": {
'utxos': [{
'tx_hash': 'dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83',
'vout_n': 0,
'address': '2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE',
'amount': 100000,
'is_coinbase': False,
'confirmed_number': 66716
}, {
'tx_hash': 'dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83',
'vout_n': 1,
'address': '2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE',
'amount': 99270,
'is_coinbase': False,
'confirmed_number': 66716
}]
}
}
This API is only intended for MPC send/receive wallets and does not support MPC web3 wallets.
Request
String
required
The asset coin symbol (e.g. BTC, LTC).
String
The address to filter UTXOs by.
Response
bool
request successful or failed
object
Show object
Show object
String
Transaction hash of the UTXO.
Int
Output index of the UTXO.
String
Address of the UTXO.
Int
UTXO amount in decimal places (e.g. one bitcoin is divisible to eight decimal places, and 100000000 represents 1 BTC).
Bool
Whether the UTXO is a coinbase transaction
Int
Number of confirmations for the UTXO.
request(
"GET",
"/v1/custody/mpc/list_spendable/",
{
"coin": "BTC",
"address": ""
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/mpc/list_spendable/', {
"coin": "BTC",
"address": ""
}, 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/list_spendable/", map[string]string{
"coin": "BTC",
"address": ""
})
{
"success": true,
"result": {
'utxos': [{
'tx_hash': 'dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83',
'vout_n': 0,
'address': '2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE',
'amount': 100000,
'is_coinbase': False,
'confirmed_number': 66716
}, {
'tx_hash': 'dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83',
'vout_n': 1,
'address': '2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE',
'amount': 99270,
'is_coinbase': False,
'confirmed_number': 66716
}]
}
}
