Skip to main content

aptos_sdk/api/
mod.rs

1//! API clients for the Aptos blockchain.
2//!
3//! This module provides clients for interacting with the Aptos network:
4//!
5//! - [`FullnodeClient`] - REST API client for fullnode operations
6//! - [`FaucetClient`] - Client for funding accounts on testnets (feature-gated)
7//! - [`IndexerClient`] - GraphQL client for indexed data (feature-gated)
8//! - [`AnsClient`] - Aptos Names Service client (scaffold; see `ans.rs`)
9
10pub mod ans;
11pub mod fullnode;
12pub mod response;
13
14#[cfg(feature = "faucet")]
15mod faucet;
16
17#[cfg(feature = "indexer")]
18mod indexer;
19
20pub use ans::AnsClient;
21pub use fullnode::FullnodeClient;
22pub use response::{AptosResponse, GasEstimation, LedgerInfo, PendingTransaction};
23
24#[cfg(feature = "faucet")]
25pub use faucet::FaucetClient;
26
27#[cfg(feature = "indexer")]
28pub use indexer::{
29    CoinActivity, CoinBalance, Collection, CollectionData, Event, FungibleAssetBalance,
30    FungibleAssetMetadata, IndexerClient, Page, PaginationParams, ProcessorStatus, TokenBalance,
31    TokenData, Transaction,
32};