EVMSEALEDEVM
&◆◇╳▫??~▓█~^■▪╱&□▫╳~◇□▓□╱╱▪●█▫▒#◇!▪~&□╲██~@%╱▫&■^@▪╲▒▪!▫█▫◆^~#&*
Transaction ID
Execution Fee
0.00008472 FLOWTransaction Summary
EVMCalled FungibleToken, FlowToken, EVM
Contracts
Script Arguments
0toEVMAddressHexString
43de2d77bf8027e25dbd179b491e8d64f38398aa
1amountUInt256
2500000000000000000
2data[UInt8]
[ "190", "41", "116", "118", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "58", "245", "179", "133", "25", "210", "40", "158", "206", "84", "27", "94", "125", "164", "181", "60", "38", "219", "176", "126", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "164", "213", "48", "69", "109", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "115", "111", "108", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "64", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "18", "242", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "96", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "32", "134", "0", "233", "196", "236", "164", "248", "175", "248", "217", "108", "203", "162", "34", "151", "148", "37", "79", "234", "152", "51", "133", "155", "121", "221", "172", "95", "126", "255", "167", "28", "241", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "32", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "237", "110", "248", "9", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "128", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "192", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "32", "134", "0", "233", "196", "236", "164", "248", "175", "248", "217", "108", "203", "162", "34", "151", "148", "37", "79", "234", "152", "51", "133", "155", "121", "221", "172", "95", "126", "255", "167", "28", "241", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" ]
3gasLimitUInt64
229570
Cadence Script
1// Flow Wallet - mainnet Script callContractV2 - v2.72
2// Extension-2.9.0
3
4import FungibleToken from 0xf233dcee88fe0abe
5
6import FlowToken from 0x1654653399040a61
7
8import EVM from 0xe467b9dd11fa00df
9
10
11/// Transfers $FLOW from the signer's account Cadence Flow balance to the recipient's hex-encoded EVM address.
12/// Note that a COA must have a $FLOW balance in EVM before transferring value to another EVM address.
13///
14transaction(toEVMAddressHex: String, amount: UInt256, data: [UInt8], gasLimit: UInt64) {
15
16 let coa: auth(EVM.Withdraw, EVM.Call) &EVM.CadenceOwnedAccount
17 let recipientEVMAddress: EVM.EVMAddress
18
19 prepare(signer: auth(BorrowValue, SaveValue) &Account) {
20 if signer.storage.type(at: /storage/evm) == nil {
21 signer.storage.save(<-EVM.createCadenceOwnedAccount(), to: /storage/evm)
22 }
23 self.coa = signer.storage.borrow<auth(EVM.Withdraw, EVM.Call) &EVM.CadenceOwnedAccount>(from: /storage/evm)
24 ?? panic("Could not borrow reference to the signer's bridged account")
25
26 self.recipientEVMAddress = EVM.addressFromString(toEVMAddressHex)
27 }
28
29 execute {
30 if self.recipientEVMAddress.bytes == self.coa.address().bytes {
31 return
32 }
33 let valueBalance = EVM.Balance(attoflow: UInt(amount))
34
35 let txResult = self.coa.call(
36 to: self.recipientEVMAddress,
37 data: data,
38 gasLimit: gasLimit,
39 value: valueBalance
40 )
41 assert(
42 txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful,
43 message: "evm_error=".concat(txResult.errorMessage).concat("\n")
44 )
45 }
46}