API Reference

cfx_getDepositList - Conflux

Returns the deposit list of the given account, identified by its address.

Parameters

  • BASE32 - Address of the account.
  • QUANTITY|TAG - (optional, default: "latest_state") Integer epoch number, or the string "latest_state", "latest_confirmed", "latest_checkpoint" or "earliest", see the epoch number parameter

Returns

Array - array of deposit info objects:

  • accumulatedInterestRate: QUANTITY - The accumulated interest rate at the time of the deposit.
  • amount: QUANTITY - The number of tokens deposited.
  • depositTime: QUANTITY - The time of the deposit.

Example

Request

curl -X POST \
--data '{"jsonrpc":"2.0","method": "cfx_getDepositList",
"params": [
   "cfx:aan02vpwvz8crpa1n10j17ufceefptdc2yzkagxk5u",
   "latest_state"
],
 "id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577 


Result

{
    "jsonrpc": "2.0",
    "result": [],
    "id": 0
}
Language
URL
Click Try It! to start a request and see the response here!