How to Access Aptos API

Step 1: To access Aptos, use the following native access endpoint:

  • Network: Aptos Mainnet
  • Request Type: GET / POST
https://svc.blockdaemon.com/aptos/mainnet/native

Step 2: You should authorize your request. Learn more: Authentication Guide

Step 3: Add an Aptos method at the end of the query:

https://svc.blockdaemon.com/aptos/mainnet/native/v1/YOUR_METHOD

Example Request

Here is a cURL example for using /v1 to get the latest ledger information in Aptos Mainnet.

curl -X GET \
https://svc.blockdaemon.com/aptos/mainnet/native/v1 \
-H 'Authorization: Bearer YOUR_API_KEY'

The following is a typical response you will get:

{
  "chain_id": 1,
  "epoch": "32425224034",
  "ledger_version": "32425224034",
  "oldest_ledger_version": "32425224034",
  "ledger_timestamp": "32425224034",
  "node_role": "validator",
  "oldest_block_height": "32425224034",
  "block_height": "32425224034",
  "git_hash": "…"
}

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.