Skip to main content

6 docs tagged with "api"

View all tags

Custom API/Proxy request

Call any API or Proxy endpoint the typed provider methods do not cover, via doGetGeneric and doPostGeneric, for economics, stats, and a raw VM query.

Fetch a block

Fetch the latest block and a block by hash via ApiNetworkProvider, and a block by shard and nonce via ProxyNetworkProvider. Verified live against mainnet.

Fetch an account's on-chain state

Read any address's nonce, balance, username, and guarded flag, plus its key-value storage, through a network provider. Verified live against mainnet.

Fetch network config and status

Read the static network config (gas costs, shard count, round duration) and the live per-shard status (block nonce, epoch, round) via a network provider.

Fetching data from the network

Original SDK JS v15 examples for reading network, block, account, transaction, token, and smart-contract data through API and Proxy providers.