You can now test governance proposals or proof submittal on Virtual TestNets with block.timestamp and block.number fully synced with the parent chain. Plus, you can also perform read calls much faster via the RPC.
Block.timestamp and block.number syncing
Fork any supported production chain and turn on State Sync on Virtual TestNets to:
- Get block.timestamp and block.number fully synced with the parent chain.
- Test a governance proposal as if it were executed on a production chain after a specific time period.
- Test the submittal of proofs when running bridge or multichain tests as if the proof validation period was completed.
ℹ️
State Sync keeps Virtual TestNets in sync with the latest production state of the parent chain. By turning it on, you get an exact network replica for development and testing, with third-party contracts and up-to-date oracle prices. Learn more about state syncing on Virtual TestNets.
Faster reads via Virtual TestNet RPCs
Speed up your tests and read data from Virtual TestNets faster via the RPC thanks to improved performance for batch calls and general performance improvements.
Start testing via the Virtual TestNets RPC with a simple curl request:
curl "https://virtual.mainnet.eu.rpc.tenderly.co/<ACCESS_KEY>" \
-H "authorization: Bearer <API_TOKEN>" \
-H "content-type: application/json" \
--data-raw '{
"id": 0,
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"gas": "0x0",
"gasPrice": "0x0",
"value": "0x0",
"data": "0xa9059cbb00000000000000000000000020a5814b73ef3537c6e099a0d45c798f4bd6e1d60000000000000000000000000000000000000000000000000000000000000001"
},
"latest"
]
}'