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