• Reference
  • Nodes
  • Resources
  • Web3 Client

Web3 Client Resource

The Web3 Client Resource provides programmatic access to the EVM-based Web3 provider in the browser, such as MetaMask.

Properties

JSON-RPC Endpoint

PropjsonRpcURL
Type({ ref: string } | undefined)

The JSON-RPC Endpoint to use for connecting to chain data.

Actions

Get Balance

Gets the balance of an address.

ParameterTypeDefault
addressstringundefined

Get Block

Gets a block by number (height).

ParameterTypeDefault
blockNumberstringundefined

Get Current Tip

Gets the current block number of the tip of the blockchain.

ParameterTypeDefault

Get Transaction by Hash

Gets the transaction with the specified hash.

ParameterTypeDefault
transactionHashstringundefined
Last updated on October 17, 2022