reward.getTotalPerSecond
Gets the total reward per second rate for all active streams.
Usage
example.ts
import { Actions } from 'tempo.ts/wagmi'
import { config } from './wagmi.config'
const rate = await Actions.reward.getTotalPerSecond(config, {
token: '0x20c0000000000000000000000000000000000000',
})
console.log('Total rate per second:', rate)
Total rate per second: 385802469135802469135nReturn Type
type ReturnValue = bigintReturns the current aggregate per-second emission rate scaled by ACC_PRECISION (1e18). This value represents the sum of all active reward streams' emission rates.
Parameters
token
- Type:
Address
Address of the TIP-20 token.
account (optional)
- Type:
Account | Address
Account that will be used to send the transaction.
blockNumber (optional)
- Type:
bigint
Block number to read the state from.
blockOverrides (optional)
- Type:
BlockOverrides
Block overrides to apply to the state.
blockTag (optional)
- Type:
BlockTag
Block tag to read the state from.
stateOverride (optional)
- Type:
StateOverride
State override to apply.