- usePollForTxn(txHash, restUrl, pollInterval?, failureTimeout?, enabled?): Readonly<{
error: undefined | Error;
isPolling: boolean;
tx: undefined | TxResult;
}> Parameters
- txHash: undefined | string
- restUrl: string
- pollInterval: number = defaultPollInterval
- failureTimeout: number = defaultFailureTimeout
- enabled: boolean = true
Returns Readonly<{
error: undefined | Error;
isPolling: boolean;
tx: undefined | TxResult;
}>
React hook to poll for a cosmos based chain's transaction's status