From cf0550fb581bbbcd3c2e64927c2ef5c4dbe1c3fd Mon Sep 17 00:00:00 2001 From: Cong Zhang Date: Mon, 8 Apr 2024 13:50:46 +0800 Subject: [PATCH] add get_utxo_assets and get_ordinals_inscription interface --- MPCClient.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/MPCClient.php b/MPCClient.php index df5fc08..7758e65 100644 --- a/MPCClient.php +++ b/MPCClient.php @@ -796,4 +796,24 @@ function getRareSatoshis(string $coin, string $txHash, int $voutN) return $this->request("GET", "/v1/custody/mpc/get_rare_satoshis/", $params); } + + function getUTXOAssets(string $coin, string $txHash, int $voutN) + { + $params = [ + "coin" => $coin, + "tx_hash" => $txHash, + "vout_n" => $voutN, + ]; + + return $this->request("GET", "/v1/custody/mpc/get_utxo_assets/", $params); + } + + function getOrdinalsInscription(string $inscriptionId) + { + $params = [ + "inscription_id" => $inscriptionId, + ]; + + return $this->request("GET", "/v1/custody/mpc/get_ordinals_inscription/", $params); + } } \ No newline at end of file