Key UpdateSEALED
■#╱!◆╱$#◇#╱%■□◆^$▓*&╲~▫$╲■▫&■╲%◆~@&╱▒&*#●█!~*●&▪▒╳◆*▒╳●◇▪▫&^○╲*╳
Transaction ID
Execution Fee
0.00062 FLOWTransaction Summary
Key UpdateUpdated account key
Script Arguments
0publicKeyString
df6220c3a5f98a8f9762be86d340cd1021683fe0076200a21e578efe19505c2a3045a3ae0858121f02d3614fa82bfc7458a4afb7347e4bcda06678e574f6429f
1signatureAlgorithmUInt8
2
2hashAlgorithmUInt8
1
3weightUFix64
1000.0
Cadence Script
1// Flow Wallet - mainnet Script addKey - v2.72
2// Android - r3.0.6 - 400000261
3
4import Crypto
5
6transaction(publicKey: String, signatureAlgorithm: UInt8, hashAlgorithm: UInt8, weight: UFix64) {
7 prepare(signer: auth(Keys) &Account) {
8 let key = PublicKey(
9 publicKey: publicKey.decodeHex(),
10 signatureAlgorithm: SignatureAlgorithm(rawValue: signatureAlgorithm)!
11 )
12
13 signer.keys.add(
14 publicKey: key,
15 hashAlgorithm: HashAlgorithm(rawValue: hashAlgorithm)!,
16 weight: weight
17 )
18 }
19}