From 2007d94d16c5f6353dfb7915da682ed980f7826e Mon Sep 17 00:00:00 2001 From: aaron67 Date: Sat, 29 Jun 2024 03:45:48 +0800 Subject: [PATCH] Add runes address history --- open-api/btc-token.yaml | 61 +++++++++++++++++++ .../get-address-runes-history.api.mdx | 50 +++++++++++++++ open-api/btc-token/sidebar.js | 2 +- 3 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 open-api/btc-token/get-address-runes-history.api.mdx diff --git a/open-api/btc-token.yaml b/open-api/btc-token.yaml index f08aebacb..db57a11ed 100644 --- a/open-api/btc-token.yaml +++ b/open-api/btc-token.yaml @@ -766,6 +766,67 @@ paths: description: Rune name of ID not found security: - bearerAuth: [] + /btc/{network}/runes/addresses/{address}/history: + get: + tags: + - Runes + description: Get runes address history + operationId: Get Address Runes history + parameters: + - name: network + in: path + description: BTC chain network (mainnet | testnet | signet) + required: true + schema: + type: string + - name: address + in: path + description: BTC address + required: true + schema: + type: string + - name: limit + in: query + description: paging limit + required: false + schema: + type: number + - name: offset + in: query + description: paging offset + required: false + schema: + type: number + responses: + '200': + description: Successful operation + content: + application/json: + example: + statusCode: 0 + data: + - event_type: output + txid: 3ee3dd9509f92a07c666a8c62bce2396d56a7e067bc621fefee69532c1c02624 + outpoint: 3ee3dd9509f92a07c666a8c62bce2396d56a7e067bc621fefee69532c1c02624:1 + rune_name: GREGGREGGREG + amount: '535' + pkscript: 5120fc1c4b64438368912eae7b7ab829024c01cb6c9a2d0e3d304a94b651114547a4 + wallet_addr: tb1plswykezrsd5fzt4w0dats2gzfsqukmy6958r6vz2jjm9zy29g7jqcgamag + block_height: 188728 + - event_type: input + txid: 9da9aa7aaaf1ae6bcd4a3b103868c83f7b60e7559cca09745378eb0a81902886 + outpoint: 3ee3dd9509f92a07c666a8c62bce2396d56a7e067bc621fefee69532c1c02624:1 + rune_name: GREGGREGGREG + amount: '535' + pkscript: 5120fc1c4b64438368912eae7b7ab829024c01cb6c9a2d0e3d304a94b651114547a4 + wallet_addr: tb1plswykezrsd5fzt4w0dats2gzfsqukmy6958r6vz2jjm9zy29g7jqcgamag + block_height: 188731 + '400': + description: Bad Request + '401': + description: Unauthorized + security: + - bearerAuth: [] /btc/{network}/runes/outpoints/{outpoint}/balances: get: tags: diff --git a/open-api/btc-token/get-address-runes-history.api.mdx b/open-api/btc-token/get-address-runes-history.api.mdx new file mode 100644 index 000000000..3a83a26a2 --- /dev/null +++ b/open-api/btc-token/get-address-runes-history.api.mdx @@ -0,0 +1,50 @@ +--- +id: get-address-runes-history +title: "Get Address Runes history" +description: "Get runes address history" +sidebar_label: "Get Address Runes history" +hide_title: true +hide_table_of_contents: true +api: eJztVl1v2zYU/SsEn1ZAjSXZliVhGJYEXZACW4vERR9aI72iri0mEqmQV04dz/99oCR/pVm3dK97MCyJlzyH9+Pcu+YEC8vTT/yqUWj5zOM5WmFkTVIrnvILJGbcEoM8N2gtK6QlbVbc47pGA87uMu8tT3ub9rADyxoMVEhoHNSaK6iQp1whPWhzxz0uHVQNVPCn+GfTcyYKkIr11uynCqRSSOxPRmipe7JyoZBecY8bvG+kwZynZBr0uBUFVsDTNadV7VAtGakWfLPxdkT6q/0jkb3dj6CUspK0xbhvsPXMMUgNC6kWbGu5R5lDaZ+DUU2VoTmC0fO5xX+HszN9AdDMWdtaK4vWrYe+7/6Oz79uhEBr503JdknCPS60IlTk7KGuSynahcGtdZvWHL9CVZfoHi0BNfZc58hT3+M5ELSZg0tUdNNz0g3VjaNPX6XLwCHiMM+TsZ/MkxD8iYiiCGIRhZnAcJhE+TiCCfrRJBNRGMxxjhgl42EoAuGHUThyKd1QraWj+J9PSwPn2EbhTR+Yi6s3F9sf9zhUummBxsOxK5G7zoHuQxD6cxGIURaNRsN4GMVJECLgJJtAFoeJH46EH4gsEgmEuY/DfOiPIBll0TgIgtF4NAF3lwcoS6Qbl7Q85ZQFdWkfVnf4aGw+nj/S6MHPgWy4eJzb++auWkXJODbR8jG8va2Sx1WYLCa392IBFSy4x7NSi7ubAuWiIJ4GcTwJY5d2RyGR6igiSQ4JwAQA5gFglIl8BMMs8IdxFIt4OJ9kkY+T8TgRAvxkMhoPJzFmPsRB4odxHP0fkZdFZBhsZpvNZuPx0XNleQY5u8L7Bi3x1ib41uaDgoYKbeQj5k5XuEXRGEmrtv4yBIPmtKGCp59mTgwqpEK7WC9aJWm1M+WDjMRg3Uv2ZtB2kEEvn2gH6/5xM9j3CItmuW0QjSl5ygui2qaDga5RvYZanlhhVjWdSD1YBtzl3t4uHQxKLaAstKV06PtxazLb0792itZJ1uEldgLnDuG98Ln3zsh5uX34TZsKXCq8/Tht3SLVXLfbJTnJ4peKjM4bcSB1IFqpwwqko2mbutaGft3dwsXAXblz/DL4RqbfNYaRvkPFTt9fstropczRMlR5WxKWzbVh0Eqtk3NQOatAddq+BCN1Y/v9tdGkhS6tx6QSZZM7k3cmlwpKy6TaoVqPnV2dvw59r2viHrv+49prjz67nP5++v7ks/qsLolBWeoHy3JcYuk03iExg2QkLpHlSCBLzJlzk/Oc1IpBphtitkYh51J0zKzHCl3maGwHkkEJSqDdw1i9xaICK4ciFaEBQexBUtEfw5YS2Jd3JkfzxXnLeixbMdtklSRqe51baknac+f/drPjU8DSrZNmjXIm5GhQgd1rueoWD53Y367jOC2wjQ4q2xi0rM037KPCqDC6WRTs7ccp6xKJufJCRX3zO3FJUGtLFbQ9cKtM3xmmjnJkvW+q353V+iwn/EqDugSpHG5bPuu+Zj/xjAT3eLofy9rDnDBuC9ct74eg7ekzj7uyc0es1xlY/GDKzcZ97qYPV9G5tJCVBxPG397iyQz0LPE7XB0MVEsoG2fTSsKLgXZD0HeQdjZ7qJl7MdJhvfCCP13109Yr9uLp9lmO/UdQq0OGW+7bcL7MOU9I7oP+Awy2mzezjccLhBxN67Ju9VQIrA99+81oeNRmLt5MXUYei/cTsW5Pf5bTz2ddEU5dQf+yY9jWN29751/68WRX +sidebar_class_name: "get api-method" +info_path: open-api/btc-token/introduction +custom_edit_url: null +--- + +import ApiTabs from "@theme/ApiTabs"; +import DiscriminatorTabs from "@theme/DiscriminatorTabs"; +import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; +import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes"; +import MimeTabs from "@theme/MimeTabs"; +import ParamsItem from "@theme/ParamsItem"; +import ResponseSamples from "@theme/ResponseSamples"; +import SchemaItem from "@theme/SchemaItem"; +import SchemaTabs from "@theme/SchemaTabs"; +import Markdown from "@theme/Markdown"; +import OperationTabs from "@theme/OperationTabs"; +import TabItem from "@theme/TabItem"; + +

Get Address Runes history

+ + + + + +Get runes address history + + + +
+ +Successful operation + +
+ +Bad Request + +
+ +Unauthorized + +
+ \ No newline at end of file diff --git a/open-api/btc-token/sidebar.js b/open-api/btc-token/sidebar.js index 2ccd7ce06..cbb43e2e3 100644 --- a/open-api/btc-token/sidebar.js +++ b/open-api/btc-token/sidebar.js @@ -1 +1 @@ -module.exports = [{"type":"doc","id":"btc-token/introduction"},{"type":"category","label":"BRC-20","items":[{"type":"doc","id":"btc-token/get-brc-20-ticker-info","label":"Get BRC-20 Ticker Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-brc-20-holders","label":"Get BRC-20 Holders","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-brc-20-balance","label":"Get Address BRC-20 Balance","className":"api-method get"},{"type":"doc","id":"btc-token/get-transferable-brc-20-inscriptions","label":"Get transferable BRC-20 inscriptions","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-brc-20-balance-list","label":"Get Address BRC-20 Balance List","className":"api-method get"}]},{"type":"category","label":"Inscriptions","items":[{"type":"doc","id":"btc-token/get-inscription-info","label":"Get Inscription Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-inscription-content","label":"Get Inscription Content","className":"api-method get"}]},{"type":"category","label":"Runes","items":[{"type":"doc","id":"btc-token/get-runes-info","label":"Get Runes Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-runes-holders","label":"Get Runes Holders","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-balance","label":"Get Address Runes Balance","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-utxo","label":"Get Address Runes UTXO","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-balance-list","label":"Get Address Runes Balance List","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-utxo-list","label":"Get Address Runes UTXO List","className":"api-method get"},{"type":"doc","id":"btc-token/get-outpoint-runes-balance-list","label":"Get Outpoint Runes Balance List","className":"api-method get"}]},{"type":"category","label":"SNS","items":[{"type":"doc","id":"btc-token/get-sns-name-list","label":"Get SNS Name List","className":"api-method get"},{"type":"doc","id":"btc-token/get-sns-name-info","label":"Get SNS Name Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-sns-name-list-by-namespace","label":"Get SNS Name List by Namespace","className":"api-method get"},{"type":"doc","id":"btc-token/get-sns-name-list-by-address","label":"Get SNS Name List by Address","className":"api-method get"}]},{"type":"category","label":"Bitmap","items":[{"type":"doc","id":"btc-token/get-bitmap-list","label":"Get Bitmap List","className":"api-method get"},{"type":"doc","id":"btc-token/get-bitmap-info","label":"Get Bitmap Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-bitmap-list-by-address","label":"Get Bitmap List by Address","className":"api-method get"}]},{"type":"category","label":"Order","items":[{"type":"doc","id":"btc-token/get-order-info","label":"Get order info","className":"api-method get"},{"type":"doc","id":"btc-token/etch-a-rune","label":"Etch a rune","className":"api-method post"},{"type":"doc","id":"btc-token/pay-etching-order","label":"Pay etching order","className":"api-method post"},{"type":"doc","id":"btc-token/mint-a-rune","label":"Mint a rune","className":"api-method post"},{"type":"doc","id":"btc-token/pay-minting-order","label":"Pay minting order","className":"api-method post"},{"type":"doc","id":"btc-token/deploy-a-brc-20-token","label":"Deploy a brc20 token","className":"api-method post"},{"type":"doc","id":"btc-token/pay-deploying-order","label":"Pay deploying order","className":"api-method post"},{"type":"doc","id":"btc-token/mint-a-brc-20-token","label":"Mint a brc20 token","className":"api-method post"},{"type":"doc","id":"btc-token/pay-brc-20-minting-order","label":"Pay brc20 minting order","className":"api-method post"},{"type":"doc","id":"btc-token/transfer-a-brc-20-token","label":"Transfer a brc20 token","className":"api-method post"},{"type":"doc","id":"btc-token/pay-transfering-order","label":"Pay transfering order","className":"api-method post"},{"type":"doc","id":"btc-token/inscribe-inscriptions","label":"Inscribe inscriptions","className":"api-method post"},{"type":"doc","id":"btc-token/pay-inscribing-order","label":"Pay inscribing order","className":"api-method post"}]}]; \ No newline at end of file +module.exports = [{"type":"doc","id":"btc-token/introduction"},{"type":"category","label":"BRC-20","items":[{"type":"doc","id":"btc-token/get-brc-20-ticker-info","label":"Get BRC-20 Ticker Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-brc-20-holders","label":"Get BRC-20 Holders","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-brc-20-balance","label":"Get Address BRC-20 Balance","className":"api-method get"},{"type":"doc","id":"btc-token/get-transferable-brc-20-inscriptions","label":"Get transferable BRC-20 inscriptions","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-brc-20-balance-list","label":"Get Address BRC-20 Balance List","className":"api-method get"}]},{"type":"category","label":"Inscriptions","items":[{"type":"doc","id":"btc-token/get-inscription-info","label":"Get Inscription Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-inscription-content","label":"Get Inscription Content","className":"api-method get"}]},{"type":"category","label":"Runes","items":[{"type":"doc","id":"btc-token/get-runes-info","label":"Get Runes Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-runes-holders","label":"Get Runes Holders","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-balance","label":"Get Address Runes Balance","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-utxo","label":"Get Address Runes UTXO","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-balance-list","label":"Get Address Runes Balance List","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-utxo-list","label":"Get Address Runes UTXO List","className":"api-method get"},{"type":"doc","id":"btc-token/get-address-runes-history","label":"Get Address Runes history","className":"api-method get"},{"type":"doc","id":"btc-token/get-outpoint-runes-balance-list","label":"Get Outpoint Runes Balance List","className":"api-method get"}]},{"type":"category","label":"SNS","items":[{"type":"doc","id":"btc-token/get-sns-name-list","label":"Get SNS Name List","className":"api-method get"},{"type":"doc","id":"btc-token/get-sns-name-info","label":"Get SNS Name Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-sns-name-list-by-namespace","label":"Get SNS Name List by Namespace","className":"api-method get"},{"type":"doc","id":"btc-token/get-sns-name-list-by-address","label":"Get SNS Name List by Address","className":"api-method get"}]},{"type":"category","label":"Bitmap","items":[{"type":"doc","id":"btc-token/get-bitmap-list","label":"Get Bitmap List","className":"api-method get"},{"type":"doc","id":"btc-token/get-bitmap-info","label":"Get Bitmap Info","className":"api-method get"},{"type":"doc","id":"btc-token/get-bitmap-list-by-address","label":"Get Bitmap List by Address","className":"api-method get"}]},{"type":"category","label":"Order","items":[{"type":"doc","id":"btc-token/get-order-info","label":"Get order info","className":"api-method get"},{"type":"doc","id":"btc-token/etch-a-rune","label":"Etch a rune","className":"api-method post"},{"type":"doc","id":"btc-token/pay-etching-order","label":"Pay etching order","className":"api-method post"},{"type":"doc","id":"btc-token/mint-a-rune","label":"Mint a rune","className":"api-method post"},{"type":"doc","id":"btc-token/pay-minting-order","label":"Pay minting order","className":"api-method post"},{"type":"doc","id":"btc-token/deploy-a-brc-20-token","label":"Deploy a brc20 token","className":"api-method post"},{"type":"doc","id":"btc-token/pay-deploying-order","label":"Pay deploying order","className":"api-method post"},{"type":"doc","id":"btc-token/mint-a-brc-20-token","label":"Mint a brc20 token","className":"api-method post"},{"type":"doc","id":"btc-token/pay-brc-20-minting-order","label":"Pay brc20 minting order","className":"api-method post"},{"type":"doc","id":"btc-token/transfer-a-brc-20-token","label":"Transfer a brc20 token","className":"api-method post"},{"type":"doc","id":"btc-token/pay-transfering-order","label":"Pay transfering order","className":"api-method post"},{"type":"doc","id":"btc-token/inscribe-inscriptions","label":"Inscribe inscriptions","className":"api-method post"},{"type":"doc","id":"btc-token/pay-inscribing-order","label":"Pay inscribing order","className":"api-method post"}]}]; \ No newline at end of file