Skip to content

Commit

Permalink
Merge pull request #61 from zhangcongcobo/main
Browse files Browse the repository at this point in the history
add get_utxo_assets and get_ordinals_inscription interface
  • Loading branch information
CoboZhu authored Apr 15, 2024
2 parents 76befaa + cf0550f commit bb7c9c8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions MPCClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit bb7c9c8

Please sign in to comment.