TransactionSEALED
*█#╱░╱▫█%▫▓◇╳$~■?█&?■◆█?%~$~&◇■▓▫◇^╳▪╳□╲╳╳□!$◇◇░◆▫░^?%@▪◇◇○~~□█*
Transaction ID
Execution Fee
0.000001 FLOWScript Arguments
0idString
3c6519ba8be35e338df7273a895ad3abaeb0c232eb908ee7b05462018c112fe1
1amountUFix64
50.00000000
Cadence Script
1// Flow Wallet - mainnet Script createDelegator - v1.89
2 // Extension-2.4.2
3 import FlowStakingCollection from 0x8d0e87b65159ae63
4
5/// Registers a delegator in the staking collection resource
6/// for the specified nodeID and the amount of tokens to commit
7
8transaction(id: String, amount: UFix64) {
9
10 let stakingCollectionRef: &FlowStakingCollection.StakingCollection
11
12 prepare(account: &Account) {
13 self.stakingCollectionRef = account.storage.borrow<&FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)
14 ?? panic("Could not borrow ref to StakingCollection")
15 }
16
17 execute {
18 self.stakingCollectionRef.registerDelegator(nodeID: id, amount: amount)
19 }
20}