TransactionSEALED
░@█!^░▒▪●□##○█▫○○*●▓&◇●◇●■●░◇*&░╳~▒▓□%╱░○░▓^*!▒◆$!*$╱╱▓!%○╱■■■▓▒
Transaction ID
Execution Fee
0.0019 FLOWExecution Error
Error Code: 1103
error caused by: 1 error occurred:
Raw Error
[Error Code: 1103] error caused by: 1 error occurred: * storage limit check failed: [Error Code: 1103] The account with address (021d6625f303abbe) uses 1018 bytes of storage which is over its capacity (0 bytes). Capacity can be increased by adding FLOW tokens to the account.
Transaction Summary
TransactionScript Arguments
0keyString
f0d98a581a308cc3bd81eae0caf096001d9d009e619815c3a489ab2a5a1f8ecaf928e783c3fa9a5858980af237023a1e82e7ae7316761bf48272c36eeb18f58a
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}