How to configure and use environment variables in Postman for the Quai Network API.
chain
myAddress
txHash
blockNumber
Environment
tab in the top left of the Postman application:
Add new variable
field at the bottom of the list and fill it in with the desired value.
chain
environment variable with the chain name you want to interact with and ensure that all of the arguments you pass to the request are valid for that chain.
For example, to request balance data for my address on Cyprus 1, I need to:
chain
environment variable to cyprus1
to route to the Cyprus 1 RPC endpointmyAddress
parameter in the request is a valid Cyprus 1 address{{}}
).
For example, all Quai Postman Collection requests use a {{chain}}
variable to specify the chain to request data from in the RPC endpoint URL:
{{ chain }}
variable is the only environment variable used by default in all requests. All other variables are optional and can be
used as needed.{{txHash}}
variable with your own transaction hash, you can use it in a request like this:
{{chain}}
with the value of the chain
environment variable. You can hover over the {{}}
to see the resolved value: