isIndexed
Checks whether the Bitcoin Computer Node has committed Output rows for a transaction.
Type
isIndexed(
location: string,
): Promise<{ indexed: boolean; hasOutputs: boolean; hasInputs: boolean }>
Parameters
location
A transaction id or revision (<txid>:<vout>). The check uses the transaction id.
Return Value
Description
Use this for a one-shot readiness check. For waiting after a write, prefer waitForIndexed.
Example
const status = await computer.isIndexed(txId)
if (!status.indexed) {
await computer.waitForIndexed(txId)
}