Function usePollForTxn

  • React hook to poll for a cosmos based chain's transaction's status

    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;
    }>