Skip to main content

GetDisinvestUtxo

Query UTXO for investment solutions

Parameter​

  • fromAddr: investor
  • toAddr: The invested party
{
"id":"1",
"jsonrpc":"2.0",
"params":{
"fromAddr":"0x5c8bf650F93d82A7131C2FeA01Ec2bFB3C61A03B",
"toAddr":"0x5c8bf650F93d82A7131C2FeA01Ec2bFB3C61A03B"
}
}

Response​

  • code
    • 0 success
    • -1 The address has no investment in anyone
  • message
  • utxos Understanding the UTXO of Investment
{
"id": "1",
"jsonrpc": "2.0",
"method": "GetDisinvestUtxo",
"result": {
"code": 0,
"message": "success",
"utxos": {
"utxo": [
"17c62bacc4db9eee7a9b4596894dbf6a17754319fc8b24204fd4e7519a3f4457"
]
}
}
}

Example​

curl http://localhost:41517/GetDisinvestUtxo -X POST -H "Content-Type: application/json" -d '
{
"id":"1",
"jsonrpc":"2.0",
"params":{
"fromAddr":"0x5c8bf650F93d82A7131C2FeA01Ec2bFB3C61A03B",
"toAddr":"0x5c8bf650F93d82A7131C2FeA01Ec2bFB3C61A03B"
}
}
'