/api/v0/bitswap/ledger
Show the current ledger for a peer.
Arguments
arg[string]: The PeerID (B58) of the ledger to inspect. Required: yes.
Response
On success, the call to this endpoint will return with 200 and the following body:
{
"Exchanged": "<uint64>",
"Peer": "<string>",
"Recv": "<uint64>",
"Sent": "<uint64>",
"Value": "<float64>"
}
cURL Example
curl -X POST "http://127.0.0.1:5001/api/v0/bitswap/ledger?arg=<peer>"
Last updated