How to Connect to Aptos
In this guide, you'll learn the following connection methods to the Aptos infrastructure:
Learn more about Aptos infrastructure here.
How to Access Aptos Credentials
Info:
If you haven't configured a node, learn how to deploy one here.
- Log into the Blockdaemon app.
- Select Dedicated Nodes from the sidebar menu
- Go to the My Nodes tab and select the Aptos node you want to connect to.
- Navigate to the Connect tab, where you’ll find:
- Endpoint URL
- Auth String
- Auth Token
Please reach out to [email protected] or your Customer Success Manager for support.
How to Connect to Aptos REST via cURL
curl --request GET \
--url https://YOUR_ENDPOINT_URL/v1/blocks/by_height/HEIGHT_HERE \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_AUTH_TOKEN'
- Replace
YOUR_ENDPOINT_URL
with the Endpoint URL in the Blockdaemon app. - Replace
YOUR_AUTH_TOKEN
with the Auth Token in the Blockdaemon app. - Replace
HEIGHT_HERE
with your chosen block height.
How to Connect to Aptos REST via cURL (auth URl)
curl --request GET \
--url https://YOUR_ENDPOINT_URL/v1/blocks/by_height/HEIGHT_HERE?auth=YOUR_AUTH_TOKEN \
--header 'Content-Type: application/json'
- Replace
YOUR_ENDPOINT_URL
with the Endpoint URL in the Blockdaemon app. - Replace
YOUR_AUTH_TOKEN
with the Auth Token in the Blockdaemon app. - Replace
HEIGHT_HERE
with your chosen block height.
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 5 days ago