TransactionSEALED
■╲█▫▫#*█&◇#!▫@╱╱□○%▫╲█@%!█*▓◇╱▒!?▪░▫●╱░@●█~▫▒╱◇○~■▪#□^!●~░○*◇#○░
Transaction ID
Execution Fee
0.00016024 FLOWScript Arguments
0assetCollectionAddressAddress
1tokenIDs[UInt64]
[ "48601", "48605", "48607", "48608", "48622", "48624", "48637", "48642", "48653", "48667", "48693", "48704", "48706", "48711", "48714", "48715", "48717", "48723", "48730", "48025", "48036", "48085", "48103", "48109", "48116", "48121", "48122", "48124", "48129", "48140", "48142", "48145", "48146", "48147", "48149", "48152", "48167", "48178", "48181", "48188", "48197", "48198", "48201", "48208", "48211", "48214", "48216", "48224", "48226", "48227", "48228", "48231", "48233", "48242", "48243", "48249", "48257", "48260", "48280", "48282", "48284", "48288", "48294", "48295", "48312", "48313", "48320", "48333", "48336", "48341", "48396", "48400", "48404", "48435", "48436", "48461", "48465", "48489", "48503", "48548", "48556", "48565", "48588", "48590", "48604", "48613", "48617", "48625", "48627", "48629", "48654", "48655", "48656", "48678", "48683", "48695", "48701", "48703", "48707", "48716" ]
2kIDString
8d2e6759582dec0f5f35fa5a91ca0000
3assetNameString?
Chime(本編)
4assetDescriptionString?
null
5assetThumbnailURLString?
null
6assetTypeString?
private
7assetMetadataKeys[String]
[]
8assetMetadataValues[String]
[]
Cadence Script
1import TrmAssetV2_2 from 0x61fc4b873e58733b
2
3 transaction(assetCollectionAddress: Address, tokenIDs: [UInt64], kID: String, assetName: String?, assetDescription: String?, assetThumbnailURL: String?, assetType: String?, assetMetadataKeys: [String], assetMetadataValues: [String]) {
4
5 let adminResource: &TrmAssetV2_2.Admin
6
7 prepare(adminAccount: auth(BorrowValue) &Account) {
8 self.adminResource = adminAccount.storage.borrow<&TrmAssetV2_2.Admin>(from: TrmAssetV2_2.adminStoragePath)
9 ?? panic("could not borrow admin resource from account storage")
10 }
11
12 pre {
13 assetType == "private" || assetType == "public" || assetType == nil:
14 "asset type must be private or public"
15
16 (assetMetadataKeys == nil && assetMetadataValues == nil) || assetMetadataKeys!.length == assetMetadataValues!.length:
17 "asset metadata keys and values must have the same length"
18 }
19
20 execute {
21 let assetMetadata: {String: String} = {}
22
23 for index, key in assetMetadataKeys! {
24 assetMetadata[key] = assetMetadataValues![index]
25 }
26
27 self.adminResource.batchUpdateAsset(assetCollectionAddress: assetCollectionAddress, ids: tokenIDs, kID: kID, assetName: assetName, assetDescription: assetDescription, assetThumbnailURL: assetThumbnailURL, assetType: assetType, assetMetadata: assetMetadata)
28 }
29 }