curl -u fedadmin -X POST -i -H "Accept: application/json" -d '{"params": {"firstBlockIndex": 1331400, "blockCount": 1}, "jsonrpc": "2.0", "id": "test", "method":"getTransactions"}' http://localhost:9090/json_rpc
or
curl -u fedadmin -X POST -i -H "Accept: application/json" -d '{"params": {"blockHash": "b3bc90d04ca017fcaf5ee2c8efda95b1ac450beca30a9985e2a9f302f0afed22", "blockCount": 1, "addresses": ["NJkTBid4ZXSPVd6pVSRhRvPN6Qsa32Gbfe1uRLbCxnMQemVh1787L2r9B2Q3FjSpbbbhChRbdfJAH777Q4Sqi1V4M89d8X8"]}, "jsonrpc": "2.0", "id": "test", "method":"getTransactions"}' http://localhost:9090/json_rpc
/p>
request response addresses blockHash blockHash transactions blockCount [ paymentId (optional) state:
SUCCEEDED=0
FAILED=1
CANCELLED=2
CREATED=3
DELETED=4transactionHash blockIndex timestamp isBase unlockTime (measured in blocks) amount fee transfers [ address amount ] extra paymentId
or...
request | response |
addresses | items |
firstBlockIndex | [ |
blockCount | blockHash |
paymentId (optional) | transactions |
state (see callout) | |
transactionHash | |
blockIndex | |
timestamp | |
isBase | |
unlocktime (measured in blocks) | |
amount | |
fee | |
transfers | |
[ | |
address | |
amount | |
] | |
extra | |
paymentId |
sample: