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
| Prop | jsonRpcURL |
|---|---|
| Type | ({ ref: string } | undefined) |
| Default | undefined |
The JSON-RPC Endpoint to use for connecting to chain data.
Actions
Get Balance
Gets the balance of an address.
| Parameter | Type | Default |
|---|---|---|
address | string | undefined |
Get Block
Gets a block by number (height).
| Parameter | Type | Default |
|---|---|---|
blockNumber | string | undefined |
Get Current Tip
Gets the current block number of the tip of the blockchain.
| Parameter | Type | Default |
|---|
Get Transaction by Hash
Gets the transaction with the specified hash.
| Parameter | Type | Default |
|---|---|---|
transactionHash | string | undefined |