Chain Requests
Last updated
Last updated
Copyright 2024 Ocean Protocol Foundation Ltd.
The universal Aquarius Endpoint is https://v4.aquarius.oceanprotocol.com
.
Retrieves a list of chains that are currently supported or recognized by the Aquarius service.
Endpoint: GET /api/aquarius/chains/list
Purpose: This endpoint provides a list of the chain IDs that are recognized by the Aquarius service. Each chain ID represents a different blockchain network, and the boolean value indicates if the chain is currently active (true) or not (false).
Parameters: This endpoint does not require any parameters. You simply send a GET request to it.
Here are some typical responses you might receive from the API:
200: This is a successful HTTP response code. It means the server has successfully processed the request and returns a JSON object containing chain IDs as keys and their active status as values.
Example response:
Retrieves the index status for a specific chain_id from the Aquarius service.
Endpoint: GET /api/aquarius/chains/status/{chain_id}
Purpose: This endpoint is used to fetch the index status for a specific blockchain chain, identified by its chain_id. The status, expressed as the "last_block", gives the most recent block that Aquarius has processed on this chain.
Parameters: This endpoint requires a chain_id as a parameter in the path. This chain_id represents the specific chain you want to get the index status for.
Here are some typical responses you might receive from the API:
200: This is a successful HTTP response code. It means the server has successfully processed the request and returns a JSON object containing the "last_block", which is the most recent block that Aquarius has processed on this chain. In the response example you provided, "25198729" is the last block processed on the chain with the chain_id "137".
Example response: