TransactionSEALED

■□&^*&&▓●●%░╱!#@■*□#*$◆%▪^█▪$╳%■╳╲$○○█◇◇!╲░■◆!!~*╳█▓□◇█□?◆%▓!▪░◆

Transaction ID

Timestamp

Sep 05, 2024, 12:47:02 PM UTC
1y ago

Block Height

86,041,824

Computation

0

Proposerseq:137 key:0

Authorizers

1

Transaction Summary

Transaction

Script Arguments

0nodeIDString
6944b7968594f277c4c051d83ced4bab6ed87ed992d831f31ffb6a7b5926e298
1delegatorIDUInt32?
130
2amountUFix64
4.50000000

Cadence Script

1import FlowStakingCollection from 0x8d0e87b65159ae63
2
3/// Commits rewarded tokens to stake for the specified node or delegator in the staking collection
4
5transaction(nodeID: String, delegatorID: UInt32?, amount: UFix64) {
6    
7    let stakingCollectionRef: auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection
8
9    prepare(account: auth(BorrowValue) &Account) {
10        self.stakingCollectionRef = account.storage.borrow<auth(FlowStakingCollection.CollectionOwner) &FlowStakingCollection.StakingCollection>(from: FlowStakingCollection.StakingCollectionStoragePath)
11            ?? panic("Could not borrow a reference to a StakingCollection in the primary user's account")
12    }
13
14    execute {
15        self.stakingCollectionRef.stakeRewardedTokens(nodeID: nodeID, delegatorID: delegatorID, amount: amount)
16    }
17}