1. Create Predicates
Usebalance, nonce, or storage to wait for account or contract state. Use block_number and flashblock_index to constrain the candidate position. Every predicate must match.
Predicate setup
mask to compare the full storage word. The block_number value 0x11a6a1 is a placeholder. Set it to the latest block number plus 10 right before you sign, so the bound falls within the 60-second expiry window. Use flashblock_index to target a position within a Flashblock. Valid flashblock_index values range from 1 through 10, inclusive; the example uses 0x2 (index 2).
2. Sign an EIP-1559 Transaction
Use the sender’s next nonce. The signed payload becomes the first RPC parameter.Sign transaction
3. Submit the Transaction
Pass the signed transaction andvalidity as separate parameters.
Submit transaction
4. Check Inclusion
The RPC returns a transaction hash. Useeth_getTransactionReceipt to check for an onchain receipt.
For field definitions, see Validity Transaction RPC.