TokenService
TheTokenService provides a unified interface for interacting with all token types on the Autheo blockchain. It abstracts the complexity of handling both fungible (ERC-20) and non-fungible tokens through a consistent and extensible API design.
Key features and architecture
- Polymorphic handling When querying token data, the service detects token standards by analyzing the contract bytecode. It automatically adapts its response based on whether you’re working with an ERC-20, ERC-721, or ERC-1155 token. It returns the appropriate structure without requiring you to manually specify the type.
-
Batch processing optimization
For operations like
GetTransfers()andGetHolders(), the service implements smart pagination and concurrent fetching behind the scenes. This means you can query thousands of records without worrying about performance bottlenecks, the results are automatically chunked and aggregated for you. - Metadata enrichment NFT metadata goes beyond raw blockchain fields. The service integrates with IPFS and decentralized metadata registries to resolve rich token data including multimedia content, traits, attributes, and links.
-
Ownership verification
The
GetBalance()method employs Merkle proof verification to validate balances, especially for large NFT collections where querying token ownership directly would be gas prohibitive.
Basic setup
Token operations
Token holders and balances
NFT-specific methods
Track token activity
BlockService
TheBlockService provides access to the Autheo blockchain’s raw data for real time monitoring, block exploration, and historical analytics.
Key features
- Data hydration pipeline Block retrieval happens in multiple stages: the system first fetches raw headers, then concurrently resolves transactions, receipts, and internal calls. This ensures complete and consistent block data with minimal latency.
-
Statistical engine
Methods like
GetStats()andAnalyzeRange()are backed by Autheo’s real time analytics layer. They provide complex metrics such as TPS (transactions per second) and gas efficiency. - Temporal query system Block search is backed by a hybrid time index strategy that leverages both block timestamps and internal clock sync data. This allows for accurate filtering across large datasets even in the presence of chain reorganizations.
- Consistency guarantees During reorganizations or forks, the service uses a version-aware caching layer to ensure data stability. You can tune your tolerance for data staleness depending on whether you’re writing live dashboards or doing offline analysis.
Basic setup
Block data access
Chain statistics
Advanced queries
Analyze latest block activity
Blocks
Use these functions to get info about blocks stored in the system or search for blocks by ID.GetBlocks()
GetBlock()
GetBlockTransactions()
GetBlockWithdrawals()
Address
Functions in this group let you manage crypto wallet addresses in Autheo. You can check if a wallet exists, register a new one, or get information about an address.Address types overview
Other types
WatchlistName
AddressTag
AddressCounters
GetAddress methods.
GetAddresses()
GetAddressDetails()
GetAddressCounters()
GetAddressTransactions()
GetAddressTokenTransfers()
GetAddressInternalTransactions()
Transactions
These functions let you fetch details about blockchain transactions linked to users, wallets, or apps.SendTransaction()
SendRawTransaction()
GetTransactionByHash()
GetTransactionReceipt()
EstimateGas()
Withdrawals
These functions let you manage and retrieve details about user withdrawals. They help monitor how users move assets out of your platform or app.GetWithdrawals()
Statistics
These functions provide high level data insights on blockchain activity like total users, wallets, transactions, and overall system usageGetTransactionStats()
GetMarketHistoryStats()
GetMainPageTransactions()
GetMainPageBlocks()
GetIndexingStatus()
Filters and event subscriptions
This section covers how to listen for real time events across the Autheo ecosystem. You can subscribe to wallet actions, token changes, or transaction events.FilterParams structure
NewFilter()
NewBlockFilter()
NewPendingTransactionFilter()
GetLogs()
GetFilterChanges()
GetFilterLogs()
UninstallFilter()
Pagination and utility functions
This section explains how to navigate through large datasets and use helper functions that simplify development. From paginating API results to checking app configuration, these tools make your integration smoother and more efficient.utils.Paginate usage
This is a generic function that:- Automatically continues fetching pages until count is met
- Uses custom next page logic per endpoint
- Supports retries for rate limited requests
GetAddresses()GetBlockTransactions()GetWithdrawals()GetAddressTokenTransfers()