TransactionSEALED
╲●▪#?$◇!▒╲^%◆##▪$╲╳^◇●?%◆◇▒$░▪█□&╱╲%▫■◆█▫▫$○▓◆◆■■╲~%○▓^╳╲◇#◆▒#!▪
Transaction ID
Transaction Summary
TransactionScript Arguments
0amountUFix64
282111.00000000
1toAddress
Cadence Script
1import FungibleToken from 0xf233dcee88fe0abe
2 import SdmToken from 0xc8c340cebd11f690
3
4 transaction(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<&SdmToken.Vault>(from: /storage/sdmTokenVault)
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 the recipient's public account object
22 let recipient = getAccount(to)
23
24 // Get a reference to the recipient's Receiver
25 let receiverRef = recipient.getCapability(/public/sdmTokenReceiver)
26 .borrow<&{FungibleToken.Receiver}>()
27 ?? panic("Could not borrow receiver reference to the recipient's Vault")
28
29 // Deposit the withdrawn tokens in the recipient's receiver
30 receiverRef.deposit(from: <-self.sentVault)
31 }
32 }