Registry / networking / aptos-api

aptos-api

JSON →
libraryrscratesunverified

REST API for interacting with the Aptos blockchain.

# Cargo.toml [dependencies] aptos-api = "latest"
INSTALL
IMPORT
SIG · APTOS-API
A
aptos-api
networkingrust
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AptosClient
use aptos_api::client::AptosClient;

Create an Aptos client and fetch ledger info.

use aptos_api::client::AptosClient; let client = AptosClient::new("https://fullnode.mainnet.aptoslabs.com").unwrap(); let info = client.get_ledger_info().unwrap(); println!("Chain ID: {}", info.chain_id);
Debug
Known issues
gotchaRequires network access to an Aptos node; may fail if node is unreachable.
fix
Ensure the node URL is correct and accessible.
affects: >=0.1.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
40
Meta
1
OpenAI (training)
1
Resources
aptos-api — cargo add aptos-api · libregistry