API Sample
The explorer makes use of the /ledger
API. The /ledger
endpoint exposes several sub-routes (e.g. /transactions
, /blocks
and /contracts
for refined queries against on-chain data. Note that these APIs do not return state information associated with deployed smart contracts.
Instead, you should use an Ethereum-compatible client library (e.g. Web3.js) or the Enterprise App Gateway to properly interface with smart contract addresses.
- Refer to the API Reference documentation for the full
/ledger
specification.
curl -X GET -H "$HDR_AUTH" -H "$HDR_CT" "$APIURL/ledger/{consortia_id}/{environment_id}/blocks/latest" | jq