From 65488843be4cd8e9ce55d2bb2f08965753da211f Mon Sep 17 00:00:00 2001 From: johnquinnvictaboada Date: Wed, 25 Sep 2024 03:04:33 +0800 Subject: [PATCH] feat: added searchutxos by payment part and delegation part --- src/cardano.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/cardano.ts b/src/cardano.ts index f7dabf5..a4e952b 100644 --- a/src/cardano.ts +++ b/src/cardano.ts @@ -179,6 +179,22 @@ export class QueryClient { }); } + async searchUtxosByPaymentPart(address: Uint8Array): Promise { + return this.searchUtxosByMatch({ + address: { + paymentPart: address, + }, + }); + } + + async searchUtxosByDelegationPart(address: Uint8Array): Promise { + return this.searchUtxosByMatch({ + address: { + delegationPart: address, + }, + }); + } + async searchUtxosByAsset( policyId?: Uint8Array, name?: Uint8Array