Web3 Client Resource Node

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

Properties

JSON-RPC Endpoint

Propweb3ClientNode.jsonRpcURL
Type({ ref: string } | undefined)
Defaultundefined

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

Actions

Get Balance

Gets the balance of an address.

ParameterTypeDefault
addressstring``

Get Block

Gets a block by number (height).

ParameterTypeDefault
blockNumberstring``

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
transactionHashstring``