TransactionSEALED
%?╳╳&╳*╱◇▒╱╲*@%$▒▪!▓╳◆╲?○╳&@*◇▓○▫■?●■■○#!□▓#╳%■!&#◆@●▫□◇▒%░╲◆█▓●
Transaction ID
Transaction Summary
TransactionScript Arguments
0nodeIDString
947771ab1fd233d8694aee6c4a4259ee7e2241f4a201067aaa28adbb989d7c97
1delegatorIDUInt32?
61
2amountUFix64
5.25209597
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}