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