TransactionSEALED

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

Transaction ID

Timestamp

Dec 11, 2025, 08:28:15 AM UTC
2mo ago

Block Height

135,640,610

Computation

0

Execution Fee

0.0001 FLOW

Execution Error

Error Code: 1101

hex string has non-even length

Error ContextLine 13
8			weight <= 1000.0: "The key weight must be between 0 and 1000"
9		}
10
11		let publicKey = PublicKey(
12			publicKey: key.decodeHex(),
13			signatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!
14		)
15
16		let account = Account(payer: signer)
17
18		account.keys.add(publicKey: publicKey, hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!, weight: weight)
Call Stack
Raw Error

[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: hex string has non-even length --> b252585827655c437d3e85cb43f5025cbabfcf04a1fde3f06fc0386328c993a0:13:14 | 13 | publicKey: key.decodeHex(), | ^^^^^^^^^^^^^^^ Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.

Transaction Summary

Transaction

Script Arguments

0keyString
2d0e26ae4926149f49cb44d3d4d6a9df1309bd503779fa8da874b7dd882e7158cbe3b8f7e1e27dc683aeed55f74522e2de13f060234e21767ac20556c7393c3
1signatureAlgorithmUInt8
1
2hashAlgorithmUInt8
3
3weightUFix64
1000.00000000

Cadence Script

1import Crypto
2
3transaction(key: String, signatureAlgorithm: UInt8, hashAlgorithm: UInt8, weight: UFix64) {
4	prepare(signer: auth(BorrowValue, Storage) &Account) {
5		pre {
6			signatureAlgorithm >= 1 && signatureAlgorithm <= 3: "Must provide a signature algorithm raw value that is 1, 2, or 3"
7			hashAlgorithm >= 1 && hashAlgorithm <= 6: "Must provide a hash algorithm raw value that is between 1 and 6"
8			weight <= 1000.0: "The key weight must be between 0 and 1000"
9		}
10
11		let publicKey = PublicKey(
12			publicKey: key.decodeHex(),
13			signatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!
14		)
15
16		let account = Account(payer: signer)
17
18		account.keys.add(publicKey: publicKey, hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!, weight: weight)
19	}
20}