TransactionSEALED
!@▪╲&?*╳○~■╱*◇$◆▒▫▓?&○╱?$▪○◆╲~╳╳*▫!^●$*●□▪!╱$&*▒▓#!*▪╱^$░╳▓○○░▓*
Transaction ID
Execution Fee
0.00000849 FLOWScript Arguments
Copy:
0toAddress
1amountUFix64
5.00000000
Cadence Script
1import FungibleToken from 0xf233dcee88fe0abe
2import BaitCoin from 0xed2202de80195438
3
4transaction(to: Address, amount: UFix64) {
5
6 prepare(sender: auth(BorrowValue, Storage) &Account) {
7 let senderVault = sender.storage.borrow<auth(FungibleToken.Withdraw) &BaitCoin.Vault>(from: /storage/baitCoinVault)
8 ?? panic("Could not borrow sender's BAIT vault")
9
10 let recipient = getAccount(to)
11 let recipientReceiver = recipient.capabilities.get<&{FungibleToken.Receiver}>(/public/baitCoinReceiver)
12 .borrow() ?? panic("Could not borrow recipient's BAIT receiver reference")
13
14 let baitVault <- senderVault.withdraw(amount: amount)
15 recipientReceiver.deposit(from: <-baitVault)
16 }
17}