Skip to content

Commit

Permalink
Add runes address history
Browse files Browse the repository at this point in the history
  • Loading branch information
gitzhou committed Jun 28, 2024
1 parent caae233 commit 2007d94
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 1 deletion.
61 changes: 61 additions & 0 deletions open-api/btc-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
50 changes: 50 additions & 0 deletions open-api/btc-token/get-address-runes-history.api.mdx
Original file line number Diff line number Diff line change
@@ -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";

<h1 className={"openapi__heading"}>Get Address Runes history</h1>

<MethodEndpoint method={"get"} path={"/btc/{network}/runes/addresses/{address}/history"}></MethodEndpoint>



Get runes address history



<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 {\n \"event_type\": \"output\",\n \"txid\": \"3ee3dd9509f92a07c666a8c62bce2396d56a7e067bc621fefee69532c1c02624\",\n \"outpoint\": \"3ee3dd9509f92a07c666a8c62bce2396d56a7e067bc621fefee69532c1c02624:1\",\n \"rune_name\": \"GREGGREGGREG\",\n \"amount\": \"535\",\n \"pkscript\": \"5120fc1c4b64438368912eae7b7ab829024c01cb6c9a2d0e3d304a94b651114547a4\",\n \"wallet_addr\": \"tb1plswykezrsd5fzt4w0dats2gzfsqukmy6958r6vz2jjm9zy29g7jqcgamag\",\n \"block_height\": 188728\n },\n {\n \"event_type\": \"input\",\n \"txid\": \"9da9aa7aaaf1ae6bcd4a3b103868c83f7b60e7559cca09745378eb0a81902886\",\n \"outpoint\": \"3ee3dd9509f92a07c666a8c62bce2396d56a7e067bc621fefee69532c1c02624:1\",\n \"rune_name\": \"GREGGREGGREG\",\n \"amount\": \"535\",\n \"pkscript\": \"5120fc1c4b64438368912eae7b7ab829024c01cb6c9a2d0e3d304a94b651114547a4\",\n \"wallet_addr\": \"tb1plswykezrsd5fzt4w0dats2gzfsqukmy6958r6vz2jjm9zy29g7jqcgamag\",\n \"block_height\": 188731\n }\n ]\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"400"} value={"400"}><div>

Bad Request

</div><div></div></TabItem><TabItem label={"401"} value={"401"}><div>

Unauthorized

</div><div></div></TabItem></ApiTabs></div></div>

2 changes: 1 addition & 1 deletion open-api/btc-token/sidebar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2007d94

Please sign in to comment.