Key UpdateSEALED
▫□□~░^%?◇░◇~○╲○▓■~▪╳??╳█@╲◆╲!▒$■○~█■▫▓*□?$╳▪□^$▓!●╲~?@□▒□^╲~^~*╳
Transaction ID
Execution Fee
0.00062 FLOWTransaction Summary
Key Update
Updated account key
Script Arguments
Copy:
0publicKeyString
daccb2e2214a1108c380a90748078af82a91a42c2cd2e0036aaa3a7def89f925e4da859b9ed43836da0d9b1b196d22ab217c5bd22797f94fda24f84f1610c732
1signatureAlgorithmUInt8
1
2hashAlgorithmUInt8
1
3weightUFix64
500.0
Cadence Script
1// Flow Wallet - mainnet Script addKey - v2.72
2// Android - r3.0.7 - 400000291
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}