Skip to main content

GetDelegateInfo

Query the invested information of the address.

tips:

The maximum amount that can be invested in an address is: 1,500,000

Parameter​

  • id:
  • jsonrpc: json version
  • params:
    • addr: Query Address
{
"id":"1",
"jsonrpc":"2.0",
"params":{"addr":"0xadc2A709EC1413eCcEB4d115E50BD9ebBA35E3Ce"}
}

Response​

  • id:
  • jsonrpc: json version
  • method:
  • result:
    • code:
      • 0 success
      • -1 Database abnormal, Get invest addrs by node failed!
      • -2 The account number to be invested have been invested by 999 people
      • -3 Database abnormal, Get bonus addr invest utxos by bonusAddr failed
      • -4 Database abnormal, Get transaction by hash failed
      • -5 Failed to parse transaction body
    • message: error message
    • info: Investment address and investment amount
{
"id": "1",
"jsonrpc": "2.0",
"method": "GetDelegateInfo",
"result": {
"code": 0,
"info": {
"0x3389E3e87EFC0464df70C8be58656274A66252af": "500000000000",
"0x50fa281932a411e323dA8EA59269101DdF81C96C": "600000000000",
"0x638c172F63db3caf32c410D0188143E0Eff74bC8": "800000000000",
"0xadc2A709EC1413eCcEB4d115E50BD9ebBA35E3Ce": "1000000000000"
},
"message": "success"
}
}