TransactionSEALED
~~^▓▪╲&~~▒░@╳╱╱□╲▪~&╳□%●◆●%○^□?&╲╱^╱╱▫@&□╲▪░╱●●■$░▒▓█▫▪■▒◆◇&◇*▓*
Transaction ID
Execution Fee
0.00001024 FLOWTransaction Summary
Contract CallCalled TopShot, Market, TopShotMarketV3 +1 more
Script Arguments
Cadence Script
1import TopShot from 0x0b2a3299cc857e29
2import Market from 0xc1e4f4f4c4257510
3import TopShotMarketV3 from 0xc1e4f4f4c4257510
4import NonFungibleToken from 0x1d7e57aa55817448
5
6// This transaction is for a user to stop a moment sale in their account
7
8// Parameters
9//
10// tokenID: the ID of the moment whose sale is to be delisted
11
12transaction() {
13
14 prepare(acct: auth(Storage, Capabilities) &Account) {
15
16 // borrow a reference to the owner's sale collection
17 if let topshotSaleV3Collection = acct.storage.borrow<auth(TopShotMarketV3.Cancel) &TopShotMarketV3.SaleCollection>(from: TopShotMarketV3.marketStoragePath) {
18
19 // cancel the moment from the sale, thereby de-listing it
20 topshotSaleV3Collection.cancelSale(tokenID: 17284693)
21
22 } else if let topshotSaleCollection = acct.storage.borrow<auth(NonFungibleToken.Withdraw) &Market.SaleCollection>(from: /storage/topshotSaleCollection) {
23 // Borrow a reference to the NFT collection in the signers account
24 let collectionRef = acct.storage.borrow<&TopShot.Collection>(from: /storage/MomentCollection)
25 ?? panic("Could not borrow from MomentCollection in storage")
26
27 // withdraw the moment from the sale, thereby de-listing it
28 let token <- topshotSaleCollection.withdraw(tokenID: 17284693)
29
30 // deposit the moment into the owner's collection
31 collectionRef.deposit(token: <-token)
32 }
33 }
34}