TransactionSEALED

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

Transaction ID

Timestamp

Aug 08, 2024, 10:04:58 PM UTC
1y ago

Block Height

84,148,047

Computation

0

Execution Fee

0.00000344 FLOW

Proposerseq:36907 key:157

Authorizers

1

Transaction Summary

Contract Call

Called NFL, NonFungibleToken

Script Arguments

0recieverAddress
1tokenIDUInt64
158230649633832961

Cadence Script

1import NFL from 0x8f3e345219de6fed
2                import NonFungibleToken from 0x1d7e57aa55817448
3                transaction(reciever: Address, tokenID: UInt64) {
4                    
5                    let transferToken: @NonFungibleToken.NFT
6                    prepare(acct: AuthAccount) {
7
8                        let collectionRef = acct.borrow<&NFL.Collection>(from: NFL.CollectionStoragePath)
9                            ?? panic("Could not borrow a reference to the owner's collection")
10                    
11                        self.transferToken <- collectionRef.withdraw(withdrawID: tokenID)
12                    }
13                    execute {
14                        let recipient = getAccount(reciever)
15                        let receiverRef = recipient.getCapability<&{NonFungibleToken.CollectionPublic}>(NFL.CollectionPublicPath)
16                            .borrow()
17                            ?? panic("Could not borrow receiver reference")
18
19                        // Deposit the NFT in the receivers collection
20                        receiverRef.deposit(token: <-self.transferToken)
21                        log("NFT ID 1 transferred from account 2 to account 1")
22                    }
23                }