TransactionSEALED

&!▪▪○#$▪╲○█◇~?░%!?●@╳╲╲#╱▫^╳●^╳*□%▓█◆╲◆!@*!░□╱░○?╲╳◇╲&╳▓*!^@▓╲█╱

Transaction ID

Timestamp

Feb 26, 2026, 03:05:23 AM UTC
1w ago

Block Height

143,433,458

Computation

0

Execution Fee

0.00094 FLOW

Transaction Summary

Contract Call

Called FungibleToken, BaitCoin

Script Arguments

Copy:
1amountUFix64
1.00000000

Cadence Script

1import FungibleToken from 0xf233dcee88fe0abe
2import BaitCoin from 0xed2202de80195438
3
4// Admin transaction to mint BAIT tokens directly to a recipient
5transaction(to: Address, amount: UFix64) {
6        
7    prepare(signer: auth(BorrowValue, Storage) &Account) {
8        log("Admin minting ".concat(amount.toString()).concat(" BAIT to ").concat(to.toString()))
9        
10        // Borrow the admin resource from the signer's storage
11        let adminResource = signer.storage.borrow<&BaitCoin.Admin>(from: /storage/baitCoinAdmin)
12            ?? panic("Could not borrow admin resource. Signer must be the admin.")
13        
14        // Get the recipient's BAIT receiver capability
15        let recipientAccount = getAccount(to)
16        let recipientReceiver = recipientAccount.capabilities.get<&{FungibleToken.Receiver}>(/public/baitCoinReceiver)
17            .borrow() ?? panic("Could not borrow recipient's BAIT receiver reference. Did they run createAllVault.cdc?")
18        
19        // Mint BAIT tokens directly to the recipient
20        adminResource.mintBait(amount: amount, recipient: to)
21        
22    }
23    
24}