Skip to content

reward.useWatchRewardDistributed

Watches for reward distributed events.

Usage

ts
import { 
Hooks
} from 'wagmi/tempo'
Hooks
.
reward
.
useWatchRewardDistributed
({
onRewardDistributed
: (
args
,
log
) => {
console
.
log
('args:',
args
)
},
token
: '0x20c0000000000000000000000000000000000000',
})
ts
import { createConfig, http } from 'wagmi'
import { tempo } from 'wagmi/chains'
import { tempoWallet } from 'wagmi/tempo'

export const config = createConfig({
  connectors: [tempoWallet()],
  chains: [tempo],
  multiInjectedProviderDiscovery: false,
  transports: {
    [tempo.id]: http(),
  },
})

Parameters

See Wagmi Action reward.watchRewardDistributed Parameters

config

Config | undefined

Config to use instead of retrieving from the nearest WagmiProvider.

Action

Released under the MIT License.