EVMSEALEDEVM
░░░░*◇■*╳╲*%□^░!□■╲$&◆#^?@◇█$╲&●~!~▪■▪#◆○╱□?^◆~~╲&●?□╳□■▒*▫▓●▓╱^
Transaction ID
Execution Fee
0.00534 FLOWTransaction Summary
EVM
Called EVM
EVM Hashes
Contracts
Script Arguments
Copy:
0hexEncodedTxs[String]
[ "02f909f98202eb1a8503bbf075808503bbf0758283041443940000000000000068f116a894984e2db1123eb39580b90988f2d12b1200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000820000000000000000000000000000000000000000000000000000000000000084000000000000000000000000022d2c9e7c66178e33898febf14ab4b33135d0abc00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000004000000000000000000000000002dbb99af149dda84982988a8ffe3b46655000df3000000000000000000000000000056f7000000ece9003ca63978907a00ffd100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000006942e29200000000000000000000000000000000000000000000000000000000695d40920000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000196983be5403b4b40000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000001f813e8510475774c62402387690e6ffe9234a4c0000000000000000000000000000000000000000000000000000000000000f9300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000001f813e8510475774c62402387690e6ffe9234a4c0000000000000000000000000000000000000000000000000000000000000f930000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000022d2c9e7c66178e33898febf14ab4b33135d0abc0000000000000000000000000000000000000000000000000000000000000040b796b43e52575d370d8a0e7b92f294dd66b2d7dea213d74bafcaf74c9e366608a647c810fbe55759aa22278237b17d4c6c6283af50158dbc3d9aaf4d3442e66a00000000000000000000000000000000000000000000000000000000000000920022d2c9e7c66178e33898febf14ab4b33135d0abc000000006943508524819525099f59772989ad0c0538299560b33bdb3ba7acbb7ac39d1bd76901a6268d7b749aa9a4488fcd94bd9ddd6be1b0338e3e048cb23553fb5d393bb8ba5b080000000000000000000000000000000000000000000000000000000000000f93721c002b0059009a671d00ad1700c9748146cd1b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000026000000000000000000000000022d2c9e7c66178e33898febf14ab4b33135d0abc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006942e29200000000000000000000000000000000000000000000000000000000695d409200000000000000000000000000000000000000000000000000000000000000003d958fe2000000000000000000000000000000000000000069207a3928ba48bf0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003d958fe2c080a07baca9311f98d4bd9d976ba7252bed4660dd586ad6a62ab01d53bc04a756b943a00ad4fa0ede376ae31ad46b6b7f7cc667c5e0f34378e43b80e9c3be92d9555bce" ]
1coinbaseString
Cadence Script
1import EVM from 0xe467b9dd11fa00df
2
3transaction(hexEncodedTxs: [String], coinbase: String) {
4 execute {
5 let txs: [[UInt8]] = []
6 for tx in hexEncodedTxs {
7 txs.append(tx.decodeHex())
8 }
9
10 // If there's only one tx, use `EVM.run`.
11 // If there are more, then use `EVM.batchRun`
12 if txs.length == 1 {
13 let txResult = EVM.run(
14 tx: txs[0],
15 coinbase: EVM.addressFromString(coinbase)
16 )
17 assert(
18 txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful,
19 message: "evm_error=\(txResult.errorMessage);evm_error_code=\(txResult.errorCode)"
20 )
21 return
22 }
23
24 let txResults = EVM.batchRun(
25 txs: txs,
26 coinbase: EVM.addressFromString(coinbase)
27 )
28
29 // If at least one of the EVM transactions in the batch is either
30 // failed or successful, in other words not invalid, we let the
31 // Cadence transaction succeed.
32 for txResult in txResults {
33 if txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful {
34 return
35 }
36 }
37
38 // Otherwise, all EVM transactions are invalid txs and can't be
39 // executed (such as nonce too low).
40 // In this case, we fail the Cadence transaction with the error
41 // message from the first EVM transaction.
42 for txResult in txResults {
43 assert(
44 txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful,
45 message: "evm_error=\(txResult.errorMessage);evm_error_code=\(txResult.errorCode)"
46 )
47 }
48 }
49}