Retriq
CA$RETRIQ · TBA

Run console

Run a task with one budget for every retry.

Pick an example or paste your agent's script, run it here for free, then put it on Elysium with a signed receipt per attempt.

1 Script2 Run here3 Open on Elysium4 Receipts5 Record

Script, input and budget

JavaScript with a function main(input, ctx). ctx holds the attempt number, the allowance and the previous attempt's error. No network, timers or files; Math.random is seeded and the clock is frozen, so a run can be repeated exactly.

Attempt 1 is too slow and is halted at its allowance; attempt 2 switches method and succeeds. The halted attempt stays on the bill.

Escrow if you open this task: 0 HYPE (budget x price). Price 0 = a free task, nothing is locked.

Open it on Elysium

Opening publishes the script and input, fixes the budget and names the one runner whose signed receipts the book will accept.

Runner = your wallet (connect it). You run the script here and sign each receipt yourself.

Dry run: the exact openTask transaction
to
RetriqReceiptBook (not deployed yet)
function
openTask(bytes,bytes,address,uint64,uint64,uint32,uint128,uint64,uint32)
runner
not chosen yet (shown as 0x0)
budget / cap / tries
2000 / 800 / 3
pricePerUnit
0 wei
deadline
set from this browser's clock
meterVersion
1
value
0 wei
calldata
1,220 bytes
0x6d20f70c00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003392f2f2046696e6473206b207769746820375e6b206d6f642031303030303033203d20746172676574202861206469736372657465206c6f67292e0a2f2f20417474656d70742031207265636f6d70757465732074686520706f7765722066726f6d207363726174636820666f72206576657279206b3a20636f7272656374206275742066617220746f6f0a2f2f20736c6f772c20736f20746865206d657465722068616c74732069742061742069747320616c6c6f77616e63652e20417474656d707420322073656573207468617420616e64206b6565707320610a2f2f2072756e6e696e672070726f6475637420696e73746561642c2077686963682066696e697368657320696e20612066657720636f6d7075746520756e6974732e0a66756e6374696f6e20706f776d6f6428622c20652c206d29207b0a20206c65742072203d20313b0a2020666f7220286c65742069203d20303b2069203c20653b20692b2b292072203d202872202a2062292025206d3b0a202072657475726e20723b0a7d0a66756e6374696f6e206d61696e28696e7075742c2063747829207b0a2020636f6e737420746172676574203d204e756d62657228696e707574293b0a2020696620286374782e617474656d7074203d3d3d203129207b0a20202020666f7220286c6574206b203d20303b203b206b2b2b292069662028706f776d6f6428372c206b2c203130303030303329203d3d3d20746172676574292072657475726e207b206b2c206d6574686f643a20227265636f6d7075746522207d3b0a20207d0a2020636f6e736f6c652e6c6f67282270726576696f757320617474656d70743a222c206374782e6c6173744572726f72293b0a20206c65742078203d20313b0a2020666f7220286c6574206b203d20303b206b203c20313030303030333b206b2b2b29207b0a202020206966202878203d3d3d20746172676574292072657475726e207b206b2c206d6574686f643a202272756e6e696e672070726f6475637422207d3b0a2020202078203d202878202a203729202520313030303030333b0a20207d0a20207468726f77206e6577204572726f722822746172676574206973206e6f74206120706f776572206f66203722293b0a7d0000000000000000000000000000000000000000000000000000000000000000000000000000063830323134370000000000000000000000000000000000000000000000000000

Run in this browser

Real execution in a Web Worker: QuickJS in WebAssembly, metered in compute units (CU). Free, no wallet, nothing leaves this page.

0 / 2,000 CU used

Press Run attempts. Each attempt appears here as it finishes.

Receipts and the record

One EIP-712 receipt per attempt, signed by the task's runner, then one transaction records them all in RetriqReceiptBook.

Dry run: what attempt 1's receipt will say

Run the script first.