TransactionSEALED

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

Transaction ID

Timestamp

Sep 03, 2024, 01:47:38 AM UTC
1y ago

Block Height

85,883,163

Computation

0

Transaction Summary

Transaction

Script Arguments

0publicKeys[Crypto.KeyListEntry]
[
  {
    "keyIndex": "1000",
    "publicKey": {
      "publicKey": [
        "62",
        "102",
        "204",
        "218",
        "109",
        "17",
        "1",
        "86",
        "75",
        "96",
        "188",
        "20",
        "123",
        "43",
        "223",
        "79",
        "249",
        "110",
        "246",
        "17",
        "109",
        "24",
        "166",
        "96",
        "215",
        "122",
        "61",
        "175",
        "18",
        "253",
        "201",
        "29",
        "240",
        "212",
        "48",
        "3",
        "209",
        "207",
        "57",
        "254",
        "120",
        "99",
        "175",
        "27",
        "8",
        "242",
        "117",
        "77",
        "113",
        "254",
        "215",
        "79",
        "191",
        "44",
        "240",
        "199",
        "109",
        "187",
        "47",
        "195",
        "27",
        "33",
        "202",
        "194"
      ],
      "signatureAlgorithm": {
        "id": "SignatureAlgorithm",
        "fields": [
          {
            "name": "rawValue",
            "value": {
              "type": "UInt8",
              "value": "1"
            }
          }
        ]
      }
    },
    "hashAlgorithm": {
      "id": "HashAlgorithm",
      "fields": [
        {
          "name": "rawValue",
          "value": {
            "type": "UInt8",
            "value": "1"
          }
        }
      ]
    },
    "weight": "1000.00000000",
    "isRevoked": false
  },
  {
    "keyIndex": "1000",
    "publicKey": {
      "publicKey": [
        "62",
        "102",
        "204",
        "218",
        "109",
        "17",
        "1",
        "86",
        "75",
        "96",
        "188",
        "20",
        "123",
        "43",
        "223",
        "79",
        "249",
        "110",
        "246",
        "17",
        "109",
        "24",
        "166",
        "96",
        "215",
        "122",
        "61",
        "175",
        "18",
        "253",
        "201",
        "29",
        "240",
        "212",
        "48",
        "3",
        "209",
        "207",
        "57",
        "254",
        "120",
        "99",
        "175",
        "27",
        "8",
        "242",
        "117",
        "77",
        "113",
        "254",
        "215",
        "79",
        "191",
        "44",
        "240",
        "199",
        "109",
        "187",
        "47",
        "195",
        "27",
        "33",
        "202",
        "194"
      ],
      "signatureAlgorithm": {
        "id": "SignatureAlgorithm",
        "fields": [
          {
            "name": "rawValue",
            "value": {
              "type": "UInt8",
              "value": "1"
            }
          }
        ]
      }
    },
    "hashAlgorithm": {
      "id": "HashAlgorithm",
      "fields": [
        {
          "name": "rawValue",
          "value": {
            "type": "UInt8",
            "value": "1"
          }
        }
      ]
    },
    "weight": "1000.00000000",
    "isRevoked": false
  },
  {
    "keyIndex": "1000",
    "publicKey": {
      "publicKey": [
        "62",
        "102",
        "204",
        "218",
        "109",
        "17",
        "1",
        "86",
        "75",
        "96",
        "188",
        "20",
        "123",
        "43",
        "223",
        "79",
        "249",
        "110",
        "246",
        "17",
        "109",
        "24",
        "166",
        "96",
        "215",
        "122",
        "61",
        "175",
        "18",
        "253",
        "201",
        "29",
        "240",
        "212",
        "48",
        "3",
        "209",
        "207",
        "57",
        "254",
        "120",
        "99",
        "175",
        "27",
        "8",
        "242",
        "117",
        "77",
        "113",
        "254",
        "215",
        "79",
        "191",
        "44",
        "240",
        "199",
        "109",
        "187",
        "47",
        "195",
        "27",
        "33",
        "202",
        "194"
      ],
      "signatureAlgorithm": {
        "id": "SignatureAlgorithm",
        "fields": [
          {
            "name": "rawValue",
            "value": {
              "type": "UInt8",
              "value": "1"
            }
          }
        ]
      }
    },
    "hashAlgorithm": {
      "id": "HashAlgorithm",
      "fields": [
        {
          "name": "rawValue",
          "value": {
            "type": "UInt8",
            "value": "1"
          }
        }
      ]
    },
    "weight": "1000.00000000",
    "isRevoked": false
  }
]
1contracts{String
{}

Cadence Script

1import Crypto
2
3transaction(publicKeys: [Crypto.KeyListEntry], contracts: {String: String}) {
4	prepare(signer: AuthAccount) {
5		let account = AuthAccount(payer: signer)
6
7		// add all the keys to the account
8		for key in publicKeys {
9			account.keys.add(publicKey: key.publicKey, hashAlgorithm: key.hashAlgorithm, weight: key.weight)
10		}
11		
12		// add contracts if provided
13		for contract in contracts.keys {
14			account.contracts.add(name: contract, code: contracts[contract]!.decodeHex())
15		}
16	}
17}