TransactionSEALED

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

Transaction ID

Timestamp

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

Block Height

86,041,824

Computation

0

Execution Fee

0.00016259 FLOW

Proposerseq:579 key:109

Authorizers

1

Transaction Summary

Contract Call

Called TrmAssetV2_2

Contracts

Script Arguments

0assetCollectionAddressAddress
1tokenIDs[UInt64]
[
  "48594",
  "48597",
  "48609",
  "48615",
  "48618",
  "48619",
  "48628",
  "48633",
  "48634",
  "48657",
  "48663",
  "48684",
  "48685",
  "48690",
  "48692",
  "48697",
  "48698",
  "48700",
  "48705",
  "48712",
  "48373",
  "48376",
  "48378",
  "48381",
  "48386",
  "48392",
  "48399",
  "48403",
  "48407",
  "48412",
  "48441",
  "48442",
  "48443",
  "48452",
  "48473",
  "48491",
  "48492",
  "48508",
  "48509",
  "48532",
  "48544",
  "48561",
  "48578",
  "48579",
  "48587",
  "48589",
  "48596",
  "48599",
  "48603",
  "48612",
  "48641",
  "48645",
  "48652",
  "48664",
  "48670",
  "48672",
  "48680",
  "48682",
  "48687",
  "48688",
  "48732",
  "48735",
  "48084",
  "48089",
  "48091",
  "48099",
  "48143",
  "48157",
  "48166",
  "48173",
  "48175",
  "48196",
  "48202",
  "48204",
  "48215",
  "48219",
  "48221",
  "48222",
  "48232",
  "48237",
  "48240",
  "48241",
  "48256",
  "48269",
  "48291",
  "48292",
  "48298",
  "48300",
  "48307",
  "48315",
  "48322",
  "48324",
  "48330",
  "48334",
  "48339",
  "48340",
  "48342",
  "48344",
  "48345",
  "48353"
]
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		}