live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/vote-core


@orangecheck/vote-core / UtxoLookup

Type Alias: UtxoLookup

type UtxoLookup = (addr: string, snapshot: number) => 
  | Utxo[]
| Promise<Utxo[]>;

Defined in: types.ts:80

(addr, snapshot_height) -> list of UTXOs controlled by addr at that height.

Parameters

ParameterType
addrstring
snapshotnumber

Returns

| Utxo[] | Promise&lt;Utxo[]>