TransactionSEALED

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

Transaction ID

Timestamp

Aug 05, 2024, 02:14:35 PM UTC
1y ago

Block Height

83,918,730

Computation

0

Proposerseq:506121 key:0

Authorizers

1

Transaction Summary

Transaction

Script Arguments

0publicKeys[Crypto.KeyListEntry]
[
  {
    "keyIndex": "1000",
    "publicKey": {
      "publicKey": [
        "145",
        "250",
        "120",
        "22",
        "32",
        "197",
        "41",
        "207",
        "255",
        "129",
        "85",
        "23",
        "130",
        "179",
        "92",
        "201",
        "139",
        "32",
        "48",
        "1",
        "182",
        "41",
        "51",
        "61",
        "5",
        "194",
        "219",
        "54",
        "171",
        "236",
        "163",
        "149",
        "178",
        "91",
        "180",
        "32",
        "106",
        "217",
        "33",
        "209",
        "76",
        "155",
        "181",
        "213",
        "76",
        "253",
        "45",
        "176",
        "58",
        "154",
        "38",
        "95",
        "44",
        "129",
        "130",
        "88",
        "106",
        "224",
        "154",
        "151",
        "242",
        "0",
        "221",
        "107"
      ],
      "signatureAlgorithm": {
        "id": "SignatureAlgorithm",
        "fields": [
          {
            "name": "rawValue",
            "value": {
              "type": "UInt8",
              "value": "1"
            }
          }
        ]
      }
    },
    "hashAlgorithm": {
      "id": "HashAlgorithm",
      "fields": [
        {
          "name": "rawValue",
          "value": {
            "type": "UInt8",
            "value": "3"
          }
        }
      ]
    },
    "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}