Skip to content

Commit

Permalink
Merge pull request #277 from sCrypt-Inc/insc_apis
Browse files Browse the repository at this point in the history
add more insc apis
  • Loading branch information
zhfnjust authored Jul 9, 2024
2 parents 515f1fc + 2ea4052 commit f651999
Show file tree
Hide file tree
Showing 43 changed files with 391 additions and 157 deletions.
8 changes: 4 additions & 4 deletions open-api/btc-blockchain/get-address-balance.api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Get balance of an address."
sidebar_label: "Get Address Balance"
hide_title: true
hide_table_of_contents: true
api: eJydVd9v2zYQ/leIe2oBLpITB0mEYVhSbEX2NLQp9hAYAU2dLdYUSZMnJ46m/304Wf6ROki7+sXk8Tved8fvTi2Qmico7uG6LCOmhAkmEkpMOppAxjso4COSmCqrnEbhZ0I5oTbgE5DgA0bFwNtygA43iZuNC0gIKqoaCSNHasGpGqEAh/To4wIkGI4SFFXwbeibuw9CV8o4MaDFu1oZ55DEv4Iw0WaVzNwhvQcJEZeNiVhCQbFBCUlXWCsoWqB14KiJonFz6Dq5IzJk810ie9yPR5kwOAXvuLJFC6d5zn8vL0+N1pjSrLFiV06QoL0jdMR4FYI1uj/IviZ2agGfVB0s8jKRoiZ98CVCkUsoFfVktoQLoOkohJUrdbmqvqJVizg+zePV83L2iHqB5w3Z82Z+GS708zxfLS/jY3mhxjGNl1Vtn5kLP8IDx+nTmDWuxPKBnvyD9g1zPJOHxtTUUFyNzy9G4wsJKaCjQ/Do0NZjTy/ys9MrCfS0u7CTUGMdvLdvxc2P4+avRMyPIuaHwfKu/0kYv/Y+N6oUn3DZYCLoMaNjzBenGqp8NM9YsrogoW6ioXUv+SmqiPG6oQqK+wmrokaqPLfMHKlvET6CbEo6awetd5naNmXWDssum+7aKmFcbXuqiRYKqIhCKrLMB3S/qGBOko7rQCfGZ6sRsOT3uCLLrNfKVj5RcZbnlz1ksif+mUW9Ue0h/Z3G+RIYtM/7DQjksPjTx1oRFPDXP3d9QYyb+d7dEKsWbh1FXzb6QO1K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1L1qD+nvNM6XyEH7bPcg2ukXf1hfA6VW/vn3NCakMgsb3Stk1cpbg94WTX6gdsij2qmXKh37wjnr8bfdKzj7/OQ+5cT3ZZtOSyXm9KxVPzSu/7oVoLV9CGJjG4FWUBH9RiyVoTbTgikxS3IWMLcNHjgndJrrpqA+7ndDItCDCRAZkwWmELsKnTA3R7msIXbnMFuOD8RnpNt9o789aoe8o3rE1GmiyCFjQdtBP98k6YeQk/1s3RHk7f0E26qI6s0CYNe2nUNQX73uOt6OmWK1UsrBVzDnopHSiirwmqS7AB3UG49593kYk+/F/57jR986bILZSCalG7ZouVKbg+8Jy/ynSe4z9BMMts7djKClgoLagVPWn17TkHd44PdqqD+bC59+n3L5nvfcix6Ltx/l9OtNBIipXSnzYccQ2WR+XfcvK4DAGg==
sidebar_class_name: "get api-method"
info_path: open-api/btc-blockchain/introduction
custom_edit_url: null
Expand All @@ -32,13 +32,13 @@ import TabItem from "@theme/TabItem";

Get balance of an address.

## Request


<div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>
<details style={{"marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collapsed={false} open={true}><summary style={{}}><h3 className={"openapi-markdown__details-summary-header-params"}>Path Parameters</h3></summary><div><ul><ParamsItem className={"paramsItem"} param={{"name":"network","in":"path","description":"BTC chain network (mainnet | testnet | signet)","required":true,"schema":{"type":"string"}}}></ParamsItem><ParamsItem className={"paramsItem"} param={{"name":"address","in":"path","description":"BTC address","required":true,"schema":{"type":"string"}}}></ParamsItem></ul></div></details><div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>

successful operation

</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Example"} value={"Example"}><ResponseSamples responseExample={"{\n \"statusCode\": 0,\n \"data\": {\n \"address\": \"tb1ppvndcdvhjelakr420r9zqfwecke5utl5ug8p7czg0vq8rwd7a4rs4qhmlz\",\n \"chain_stats\": {\n \"funded_txo_count\": 3,\n \"funded_txo_sum\": 9457147,\n \"spent_txo_count\": 1,\n \"spent_txo_sum\": 270329,\n \"tx_count\": 3\n },\n \"mempool_stats\": {\n \"funded_txo_count\": 0,\n \"funded_txo_sum\": 0,\n \"spent_txo_count\": 0,\n \"spent_txo_sum\": 0,\n \"tx_count\": 0\n }\n }\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>
</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}>any</ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n \"statusCode\": 0,\n \"data\": {\n \"address\": \"tb1ppvndcdvhjelakr420r9zqfwecke5utl5ug8p7czg0vq8rwd7a4rs4qhmlz\",\n \"chain_stats\": {\n \"funded_txo_count\": 3,\n \"funded_txo_sum\": 9457147,\n \"spent_txo_count\": 1,\n \"spent_txo_sum\": 270329,\n \"tx_count\": 3\n },\n \"mempool_stats\": {\n \"funded_txo_count\": 0,\n \"funded_txo_sum\": 0,\n \"spent_txo_count\": 0,\n \"spent_txo_sum\": 0,\n \"tx_count\": 0\n }\n }\n}"} language={"json"}></ResponseSamples></TabItem><TabItem label={"Example"} value={"Example"}><ResponseSamples responseExample={"{\n \"statusCode\": 0,\n \"data\": {\n \"address\": \"tb1ppvndcdvhjelakr420r9zqfwecke5utl5ug8p7czg0vq8rwd7a4rs4qhmlz\",\n \"chain_stats\": {\n \"funded_txo_count\": 3,\n \"funded_txo_sum\": 9457147,\n \"spent_txo_count\": 1,\n \"spent_txo_sum\": 270329,\n \"tx_count\": 3\n },\n \"mempool_stats\": {\n \"funded_txo_count\": 0,\n \"funded_txo_sum\": 0,\n \"spent_txo_count\": 0,\n \"spent_txo_sum\": 0,\n \"tx_count\": 0\n }\n }\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>

Bad Request

Expand Down
Loading

0 comments on commit f651999

Please sign in to comment.