TransactionSEALED

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

Transaction ID

Timestamp

Jul 15, 2024, 05:17:26 AM UTC
1y ago

Block Height

82,447,018

Computation

0

Execution Fee

0.00000474 FLOW

Proposerseq:5 key:0

Authorizers

1

Transaction Summary

Contract Call

Called NonFungibleToken, MetadataViews, KARAT1DHGCDSBT

Script Arguments

Cadence Script

1import NonFungibleToken from 0x1d7e57aa55817448
2import MetadataViews from 0x1d7e57aa55817448
3import KARAT1DHGCDSBT from 0x82ed1b9cba5bb1b3
4
5// This transaction is what an account would run
6// to set itself up to receive NFTs
7transaction {
8    prepare(acct: AuthAccount) {
9        let d = KARAT1DHGCDSBT.resolveView(Type<MetadataViews.NFTCollectionData>())! as! MetadataViews.NFTCollectionData
10
11        if acct.borrow<&KARAT1DHGCDSBT.Collection>(from: d.storagePath) == nil {
12            acct.save(<- KARAT1DHGCDSBT.createEmptyCollection(), to: KARAT1DHGCDSBT.CollectionStoragePath)
13        }
14
15        acct.unlink(d.publicPath)
16        acct.link<&KARAT1DHGCDSBT.Collection{KARAT1DHGCDSBT.KARAT1DHGCDSBTCollectionPublic, NonFungibleToken.CollectionPublic}>(d.publicPath, target: d.storagePath)
17
18        acct.unlink(d.providerPath)
19        acct.link<&KARAT1DHGCDSBT.Collection{KARAT1DHGCDSBT.KARAT1DHGCDSBTCollectionPublic, NonFungibleToken.CollectionPublic, NonFungibleToken.Provider}>(d.providerPath, target: d.storagePath)
20    }
21}