Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class BlockStreamRequestStrategy extends BaseApiRequestStrategy implement
try {
const responseRuneUtxos = await runeService.getAddressRuneUtxos(address);

return responseRuneUtxos.utxo;
return responseRuneUtxos.utxoItems;
} catch (error) {
console.error(`Failed to get ${address} rune utxos`, error);
throw error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,22 +247,23 @@ export interface BlockStreamTransactionDetail {
}

export interface RuneUtxoResponse {
start: number,
total: number,
utxo: RuneUtxo[]
totalUtxo: number,
utxoItems: RuneUtxo[]
}

export interface RuneUtxo {
height: number,
confirmations: number,
address: string,
satoshi: number,
scriptPk: string,
value: number,
txid: string,
vout: number,
runes: RuneInject[]
status: {
confirmed: boolean;
block_height?: number;
block_hash: string;
block_time?: number;
}
}

// @ts-ignore
interface RuneInject {
rune: string,
runeid: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export async function getRuneUtxos (bitcoinApi: _BitcoinApi, address: string) {
responseRuneUtxos.forEach((responseRuneUtxo) => {
const txid = responseRuneUtxo.txid;
const vout = responseRuneUtxo.vout;
const utxoValue = responseRuneUtxo.satoshi;
const utxoValue = responseRuneUtxo.value;

if (txid && vout && utxoValue) {
const item = {
Expand Down