const sub = checker.subscribe(
{
toolName: 'bridge',
protocol: 'lifi',
descriptor: { txHash: '0x...' },
},
{
onStatusChange: ({ current }) => console.log(current.pollStatus),
onError: (error) => console.error(error),
},
{
interval: 5,
retryThreshold: 30,
maxRetries: 5,
maxDuration: 600,
},
)
sub.unsubscribe()