salt-sdk - v0.0.45
    Preparing search index...

    Class TransactionPendingErrorSealed

    Thrown by a transaction ceremony when the transaction was broadcast but its outcome could not be confirmed — the receipt wait timed out (see confirmationTimeoutMs on Salt.submitTx) or the RPC stopped answering. This is not a failure: the transaction may still be mined.

    The record is left in the broadcast state with its txHash. Do not resubmit; follow the transaction by its hash instead. A resubmission would reuse the same nonce, so it could only replace this one, never add to it.

    Subclasses SaltCeremonyError.

    import { TransactionPendingError } from 'salt-sdk';

    try {
    await (await salt.submitTx(params)).wait();
    } catch (err) {
    if (err instanceof TransactionPendingError) {
    const receipt = await publicClient.waitForTransactionReceipt({
    hash: err.txHash,
    timeout: 10 * 60_000,
    });
    console.log('Eventually mined:', receipt.status);
    } else {
    throw err;
    }
    }

    Hierarchy (View Summary)

    Index
    cause?: Error
    chainId: number

    Destination chain the transaction was sent to.

    data?: unknown

    Optional structured data attached to the failure (e.g. on-chain receipt).

    The code recorded as the transaction's TransactionFailureReason when this error fails a transaction. Set by the subclasses that have one; any other failure is recorded as unknown.

    message: string
    name: string
    stack?: string
    txHash: `0x${string}`

    Hash of the broadcast transaction, to follow it on-chain.