Queries
Contract events and transactions queries.
Authentication
All queries require an authentication header. You’ll need to provide a JWT token, which will be provided to users that have access to Mercury (get access).
Example Authentication Header
Include the JWT in the request header as follows:
Authorization: Bearer YOUR_JWT_TOKEN
For example, using curl
:
curl 'https://MERCURY_ENDPOINT/graphql' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN' \
--data '{"query":"{ eventByContractId(searchedContractId: \"CONTRACT_ID\") { nodes { contractId } } }"}'
Last updated