TransactionSEALED
░*●!◆●!?@%▒▫▫*&■○%%$$%◆□&■@?▓@▒◇█◇?╳◆?▒╲■*@■~╲▪□╳^@#^*▫▒@○█╲!○~▪
Transaction ID
Transaction Summary
TransactionScript Arguments
0amountUFix64
3.39999836
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: AuthAccount) {
10
11 // Get a reference to the signer's stored vault
12 let vaultRef = signer.borrow<&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 .getCapability(/public/flowTokenReceiver)
24 .borrow<&{FungibleToken.Receiver}>()
25 ?? panic("Could not borrow receiver reference to the recipient's Vault")
26
27 // Deposit the withdrawn tokens in the recipient's receiver
28 receiverRef.deposit(from: <-self.sentVault)
29 }
30}