-
When I use the getAccountCoinAmount method, I noticed that in the SDK it actually goes to different official routes based on the configured network type. For example, when env: 'test', it defaults to https://indexer-testnet.staging.gcp.aptosdev.com/v1/graphql, but it does not use the private node URL I configured. Why is this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
That way, when the SDK uses fullnode or indexer to query data, it would hit the custom configured server. As for the
|
Beta Was this translation helpful? Give feedback.
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
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…