TransactionSEALED

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

Transaction ID

Timestamp

Sep 05, 2024, 12:47:02 PM UTC
1y ago

Block Height

86,041,824

Computation

0

Execution Fee

0.00016159 FLOW

Proposerseq:966 key:105

Authorizers

1

Transaction Summary

Contract Call

Called TrmAssetV2_2

Contracts

Script Arguments

0assetCollectionAddressAddress
1tokenIDs[UInt64]
[
  "48354",
  "48357",
  "48359",
  "48362",
  "48368",
  "48375",
  "48387",
  "48390",
  "48402",
  "48408",
  "48409",
  "48413",
  "48415",
  "48424",
  "48439",
  "48459",
  "48476",
  "48479",
  "48483",
  "48490",
  "48497",
  "48506",
  "48525",
  "48526",
  "48531",
  "48546",
  "48553",
  "48554",
  "48558",
  "48569",
  "48572",
  "48585",
  "48606",
  "48611",
  "48630",
  "48635",
  "48636",
  "48686",
  "48689",
  "48691",
  "48702",
  "48709",
  "48724",
  "48639",
  "48647",
  "48666",
  "48133",
  "48414",
  "48725",
  "48577",
  "48309",
  "48538",
  "48090",
  "48484",
  "48537",
  "48474",
  "48534",
  "48114",
  "48287",
  "48471",
  "48505",
  "48190",
  "48494",
  "48535",
  "48516",
  "48273",
  "48328",
  "48286",
  "48141",
  "48355",
  "48134",
  "48708",
  "48247",
  "48513",
  "48112",
  "48304",
  "48277",
  "48018",
  "48024",
  "48035",
  "48039",
  "48046",
  "48058",
  "48015",
  "48447",
  "48536",
  "48668",
  "48727",
  "48371",
  "48510",
  "48640",
  "48648",
  "48660",
  "48070",
  "48094",
  "48113",
  "48185",
  "48207",
  "48225",
  "48238"
]
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		}