Skip to content
Discussion options

You must be logged in to vote

We use fullnode and/or indexer to fetch data from the Aptos chain. Fullnode can be used to query current state data and Indexer can be used to query historical data or complex data we simply can not query directly from fullnode.

The Aptos TS SDK supports all Aptos RCPs, (fullnode, faucet and indexer), and resolves the query to the correct route.
We could configure a custom server for the SDK to use when querying

const aptosConfig = new AptosConfig({
  fullnode:"my-custom-fullnode",
  indexer:"my-custom-indexer"
})

That way, when the SDK uses fullnode or indexer to query data, it would hit the custom configured server.

As for the getAccountCoinAmount query, the SDK resolves it to use Aptos

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liucan163
Comment options

Answer selected by kshitijc1506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ts-sdk Questions related to the TypeScript SDK
2 participants