post https://{network}.unifra.io/v1/
Returns the size of the collateral storage of a given address, in bytes.
Parameters
- BASE32 - Address to check for collateral storage.
- 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
QUANTITY - Integer of the current staking balance in Drip.
Example
Request
curl -X POST \
--data '{"jsonrpc":"2.0","method":"cfx_getCollateralForStorage","params":["cfx:type.user:aarc9abycue0hhzgyrr53m6cxedgccrmmyybjgh4xg",
"latest_state"],"id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577
Result
{
"jsonrpc": "2.0",
"result": "0x0",
"id": 0
}