TransactionSEALED

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

Transaction ID

Timestamp

Oct 29, 2025, 12:54:45 AM UTC
4mo ago

Block Height

130,964,289

Computation

0

Execution Fee

0.000001 FLOW

Execution Error

Error Code: 1101

cannot find variable in this scope: `AuthAccount`

Error ContextLine 5
1import Crypto
2
3transaction(publicKey: String){
4
5    prepare(acct: AuthAccount) {
6        let key = PublicKey(
7            publicKey: publicKey.decodeHex(),
8            signatureAlgorithm: SignatureAlgorithm.ECDSA_P256
9        )
10
Call Stack
Raw Error

[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: cannot find type in this scope: `AuthAccount` --> 66728d64366697da00f176194d9ecee158225182d2c562a615eb073ed913b124:5:18 | 5 | prepare(acct: AuthAccount) { | ^^^^^^^^^^^ not found in this scope; check for typos or declare it See documentation at: https://cadence-lang.org/docs/language/constants-and-variables error: cannot find variable in this scope: `AuthAccount` --> 66728d64366697da00f176194d9ecee158225182d2c562a615eb073ed913b124:11:25 | 11 | let newAccount = AuthAccount(payer: acct) | ^^^^^^^^^^^ not found in this scope; check for typos or declare it See documentation at: https://cadence-lang.org/docs/language/constants-and-variables Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.

Transaction Summary

Transaction

Script Arguments

0publicKeyString
25df50d0d5ed85d65a63fbd38261a5f6a7bc58d50fec828b00a19391be9ecc49f989fa0da2e11893ed16a62b9d36d66f99d337b36f97d2dd83c81b743ab959dd

Cadence Script

1import Crypto
2
3transaction(publicKey: String){
4
5    prepare(acct: AuthAccount) {
6        let key = PublicKey(
7            publicKey: publicKey.decodeHex(),
8            signatureAlgorithm: SignatureAlgorithm.ECDSA_P256
9        )
10
11        let newAccount = AuthAccount(payer: acct)
12
13        newAccount.keys.add(
14            publicKey: key,
15            hashAlgorithm: HashAlgorithm.SHA3_256,
16            weight: 1000.00
17        )
18    }
19}