Skip to main content

12 docs tagged with "network-provider"

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 an account's token balances

Read the tokens an account holds, all fungible ESDTs, all NFTs and SFTs, and one specific token balance, via a network provider. Verified live.

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.

Fetch token metadata

Read a token's definition, name, ticker, decimals, owner and property flags, for a fungible token and for an NFT or SFT collection. Verified live.

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.

Read a delegation contract's state

Read a MultiversX staking-provider contract state with read-only queries: total stake, service fee, a delegator active stake and claimable rewards.

Simulate and estimate a transaction

Ask the network what a transaction would cost with estimateTransactionCost and what it would do with simulateTransaction, without ever broadcasting it.