diff --git a/SlpTokenGraph.ts b/SlpTokenGraph.ts index 56eaeaf..a6c61a0 100644 --- a/SlpTokenGraph.ts +++ b/SlpTokenGraph.ts @@ -58,7 +58,7 @@ export class SlpTokenGraph implements TokenGraph { } else { let mints = await Query.getMintTransactions(tokenDetails.tokenIdHex); if(mints && mints.length > 0) - await this.asyncForEach(mints, async (m: MintQueryResult) => await this.updateTokenGraphFrom({ txid: m.txid!, processUpToBlock: processUpToBlock })); + await this.asyncForEach(mints, async (m: MintQueryResult) => await this.updateTokenGraphFrom({ txid: m.txid!, processUpToBlock: processUpToBlock, isParent:true })); } await this.updateStatistics(); } diff --git a/query.ts b/query.ts index 1607bf2..8925e44 100644 --- a/query.ts +++ b/query.ts @@ -430,6 +430,7 @@ export class Query { "q": { "db": ["c","u"], "find": { "out.h1": "534c5000", "out.s3": "MINT", "out.h4": tokenId }, + "sort": {"blk.i": 1}, "limit": limit }, "r": { "f": "[ .[] | { slp: .slp, txid: .tx.h, versionTypeHex: .out[0].h2, block: (if .blk? then .blk.i else null end), timestamp: (if .blk? then (.blk.t | strftime(\"%Y-%m-%d %H:%M:%S\")) else null end), batonHex: .out[0].h5, quantityHex: .out[0].h6 } ]" }