TransactionUNKNOWN
?○╱╲░●?!◆█?▪╱@~▪%~□▒&#╱░╱╲█╲□~*╳●!■╱╱~╳$#▒#╱░~▪░*░▪╱░◇□░^$&!▓%&^
Transaction ID
Transaction Summary
TransactionScript Arguments
0receiverAddress
1amountUFix64
48228.29000000
Cadence Script
1import FlowToken from 0x1654653399040a61
2import FungibleToken from 0xf233dcee88fe0abe
3
4transaction(receiver: Address, amount: UFix64) {
5
6 // The Vault resource that holds the tokens that are being transferred.
7 let xfer: @{FungibleToken.Vault}
8
9 prepare(sender: auth(BorrowValue) &Account) {
10 // Get a reference to the sender's FlowToken.Vault.
11 let vault = sender.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)
12 ?? panic("Could not borrow a reference to the sender's vault")
13
14 // Withdraw tokens from the sender's FlowToken.Vault.
15 self.xfer <- vault.withdraw(amount: amount)
16 }
17
18 execute {
19 // Get a reference to the receiver's default FungibleToken.Receiver
20 // for FLOW tokens.
21 let receiver = getAccount(receiver)
22 .capabilities.borrow<&{FungibleToken.Receiver}>(/public/flowTokenReceiver)
23 ?? panic("Could not borrow a reference to the receiver's vault")
24
25 // Deposit the withdrawn tokens in the receiver's vault.
26 receiver.deposit(from: <-self.xfer)
27 }
28}