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