From 9f861f0da3f63d98519c132d89910fb2e354c333 Mon Sep 17 00:00:00 2001 From: Cong Zhang Date: Mon, 8 Apr 2024 13:24:26 +0800 Subject: [PATCH] add get_utxo_assets and get_ordinals_inscription interface --- cobo_custody/client/mpc_client.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cobo_custody/client/mpc_client.py b/cobo_custody/client/mpc_client.py index ec70c4d..46fa177 100644 --- a/cobo_custody/client/mpc_client.py +++ b/cobo_custody/client/mpc_client.py @@ -315,3 +315,11 @@ def unlock_spendable(self, coin: str, tx_hash: str, vout_n: int): def get_rare_satoshis(self, coin: str, tx_hash: str, vout_n: int): params = {"coin": coin, "tx_hash": tx_hash, "vout_n": vout_n} return self.request("GET", "/v1/custody/mpc/get_rare_satoshis/", params) + + def get_utxo_assets(self, coin: str, tx_hash: str, vout_n: int): + params = {"coin": coin, "tx_hash": tx_hash, "vout_n": vout_n} + return self.request("GET", "/v1/custody/mpc/get_utxo_assets/", params) + + def get_ordinals_inscription(self, inscription_id: str): + params = {"inscription_id": inscription_id} + return self.request("GET", "/v1/custody/mpc/get_ordinals_inscription/", params)