Examples
w3.Client
Examples
- Batch Fetch 1000 blocks (Playground)
- Batch Call the name, symbol, decimals, and balanceOf functions of the Wrapped Ether in a single batch (Playground)
- Batch Call the Uniswap V3 Quoter for quotes on swapping 100 WETH for DAI in pools of all fee tiers in a single batch (Playground)
- Batch Fetch the nonce and balance of an EOA in a single batch (Playground)
- Batch Fetch a transaction and its receipt in a single batch (Playground)
- Call the token balance of an address (Playground)
- Call the token balance of an address, with state override (Playground)
- Handle errors of individual calls in a batch (Playground)
- Rate Limit the number of requests to 300 compute units (CUs) per second, with bursts of up to 300 CUs. An individual CU can be charged per RPC method call (Playground)
- Rate Limit the number of requests to 10 per second, with bursts of up to 20 requests (Playground)
- Send Ether transfer (Playground)
- Send ERC20 token transfer (Wrapped Ether) (Playground)
- Subscribe to pending transactions (Playground)
w3vm.VM
Examples
-
Ether transfer (Playground)
-
ERC20 token transfer with faked token balance (Wrapped Ether) (Playground)
-
Uniswap V3 swap (Playground)
-
Call ERC20 balanceOf with raw a
w3types.Message
using theMessage.{Func,Args}
helper (Playground) -
Call ERC20 balanceOf, using the
VM.CallFunc
helper (Playground) -
Prank a sender (Playground)
-
Trace calls (and opcodes) of a transaction (Playground)
-
Trace the execution to obtain the access list (Playground)
-
Trace the execution of all op’s in a block (Playground)