How to make API requests to Quai Network using Postman.
Chose A Request
Verify URL
Edit Params
Send Request
Send
button to make the requestView Repsone
getBalance
request under the quai
folder:
getBalance
, you’ll be directed to the Params
tab for the request. To edit the parameters for the request, choose the Body
tab to see the JSON-RPC request body:
0x0255b093f1c3c54d2d56af9909a9b8e6466f1926
with the address you’d like to query. You can also use the {{myAddress}}
environment variable to reference your own address if you’ve configured it in the environments tab on the left.
{{ myAddress }}
can be found in the Environment Variables
Guide.Send
button to make the request. The response will be displayed in the response section below the request body:
address is not in scope
or genesis is not traceable
.
If this is the case, it’s likely that the params you are passing to the method call do not correspond with the RPC endpoint you are querying. Ensure that the chain
environment variable (or manually set request URL) is set to the correct chain you are querying data from.
Example:
https://rpc.cyprus1.quaiscan.io
with a getBalance
request for an address that only exists on hydra3
: 0xfbca7e03dc8b5c4cc327c92de8ba1af66d34ac70
.method handler crashed
or no data found
. This is often due to the block or transaction hash not existing on the chain you are sending the request to.
Ensure that the block number or transaction hash you are providing exists on the canonical chain you are querying.
Example: