Aptos API Quick Start Guide
Welcome to BlockEden.xyz, your trusted provider of the Aptos Node API. Our platform facilitates robust and seamless data interaction, presenting an array of benefits:
- Standard Interface: Our interface supports the Aptos Node API via a Restful API through HTTPS, enhancing your interaction experience.
- Reliability: With consistent updates reflecting the latest in network upgrades, we guarantee a minimum 99.9% uptime, assuring uninterrupted services.
- Instant Availability: Connect your application swiftly with just one line of code, eliminating the need for complicated setups and syncing processes.
- Full Delegation: We alleviate you from the DevOps burden associated with maintaining an Aptos node, offering a fully managed solution.
Steps to Connect to the Aptos Mainnet
Step 1: Navigate to https://blockeden.xyz/dash/. If you're a new user, please proceed to sign up.
Step 2: Input a unique name for the API key and click '+ Create key'.
Step 3: Click on your newly created access key to copy it to your clipboard for future reference.
Step 4: Implement the access URL in your project as demonstrated below. Ensure to replace <access_key> with your personal access key.
const { Aptos, AptosConfig, Network } = require("@aptos-labs/ts-sdk");
(async () => {
const config = new AptosConfig({
fullnode: "https://aptos-mainnet.blockeden.xyz/<access_key>",
network: Network.MAINNET
});
const aptos = new Aptos(config);
const block = await aptos.getBlockByHeight({ blockHeight: 1 });
console.log(block);
})();