Key UpdateSEALED
◇~○╲!^●●╱╱?▫*▫&?◆#█□▪!■!■◆◇▪░^╳╳●╱▪▪□◆╳◇╲╳╳!!╳╲*◆◆■□●!◆◆%#▒&%░○░
Transaction ID
Execution Fee
0.00062 FLOWTransaction Summary
Key UpdateUpdated account key
Script Arguments
0publicKeyString
1c0098fde2694b3b65e33d3206f7373048b06aa88fbd0978699a5406d34c96f40597b6951be18606443fd49452fa45bd133fecb7d1d5100bf0b2d67833bd293c
1signatureAlgorithmUInt8
1
2hashAlgorithmUInt8
1
3weightUFix64
500.0
Cadence Script
1// Flow Wallet - mainnet Script addKey - v2.72
2// Android - r3.0.10 - 400000400
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}