TransactionSEALED
◇╱○▓^%#~@╱^!◇○!▪█?$&╳*█▓╳?@$█░^○◇!╳■▒▪□■▪%░▒@!@╲░╲◆╳▓□%╲╳□○^▒&▒█
Transaction ID
Execution Fee
0.00262 FLOWScript Arguments
0renderIDString
OEV2-FROZ-ELSA-S4B
1shapeIDInt
513
2variantString?
Luxe Marble
3descriptionString
This Open Edition digital pin features Elsa in her Coronation Day attire. Perfect for any collection, this beautiful digital pin captures Elsa’s strength, restraint, and the beginning of her unforgettable journey.
4isChaserBool
false
5maxMintSizeUInt64?
null
6maturationPeriodUInt64?
null
7traits{String
{
"Color": "FULL COLOR",
"Effects": [
"MARBLE BORDER"
],
"Materials": [
"GOLD"
],
"Size": "MEDIUM",
"Thickness": "MEDIUM THIN"
}Cadence Script
1import Pinnacle from 0xedf9df96c92f4595
2
3/// This transaction creates a new Edition in the contract.
4///
5transaction(
6 renderID: String,
7 shapeID: Int,
8 variant: String?,
9 description: String,
10 isChaser: Bool,
11 maxMintSize: UInt64?,
12 maturationPeriod: UInt64?,
13 traits: {String: AnyStruct}
14 ) {
15 let admin: auth(Pinnacle.Operate) &Pinnacle.Admin
16
17 prepare(signer: auth(BorrowValue) &Account) {
18 // Borrow a reference to the Admin resource
19 self.admin = signer.storage.borrow<auth(Pinnacle.Operate) &Pinnacle.Admin>(from: Pinnacle.AdminStoragePath)
20 ?? panic("Could not borrow a reference to the Pinnacle Admin capability")
21 }
22
23 execute {
24 let id = self.admin.createEdition(
25 renderID: renderID,
26 shapeID: shapeID,
27 variant: variant,
28 description: description,
29 isChaser: isChaser,
30 maxMintSize: maxMintSize,
31 maturationPeriod: maturationPeriod,
32 traits: traits
33 )
34
35 log("====================================")
36 log("New Edition:")
37 log("EditionID: ".concat(id.toString()))
38 log("====================================")
39 }
40}