Skip to content

Commit

Permalink
Add sns bitmaps address query
Browse files Browse the repository at this point in the history
  • Loading branch information
gitzhou committed Jun 14, 2024
1 parent eb22fd2 commit d2e2066
Show file tree
Hide file tree
Showing 36 changed files with 349 additions and 129 deletions.
120 changes: 120 additions & 0 deletions open-api/btc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,69 @@ paths:
description: Unauthorized
security:
- bearerAuth: []
/btc/{network}/sns/addresses/{address}/names:
get:
tags:
- SNS
description: Get sns name list by address.
operationId: Get SNS Name List by Address
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:
- holder: tb1pem96azm4s5j9p32t605h57rdkh4hz6hxe6cl522umvdllx2n775s6r479d
name: 829811.bitmap
namesapce: bitmap
block_height: 182043
inscription_id: 3243d11aa6ecb7ad8f9c815e74679adfeece42e71cf8a7b48cb97a583c5acf75i2
inscription_number: 32945
- holder: tb1pem96azm4s5j9p32t605h57rdkh4hz6hxe6cl522umvdllx2n775s6r479d
name: 182046.bitmap
namesapce: bitmap
block_height: 182046
inscription_id: ef640440294d704e53f1644f2bfd8ff327daa293aeb92dff61508041af5e5015i2
inscription_number: 32951
- holder: tb1pem96azm4s5j9p32t605h57rdkh4hz6hxe6cl522umvdllx2n775s6r479d
name: 182047.bitmap
namesapce: bitmap
block_height: 182047
inscription_id: 9fbc21727d397a74c8ef7735e747e23954cf269e1db6dec7a3ac77c68ab7f964i2
inscription_number: 32954
'400':
description: Bad Request
'401':
description: Unauthorized
security:
- bearerAuth: []
/btc/{network}/bitmaps:
get:
tags:
Expand Down Expand Up @@ -1085,6 +1148,63 @@ paths:
description: Bitmap number or inscription ID not found
security:
- bearerAuth: []
/btc/{network}/bitmaps/addresses/{address}/assets:
get:
tags:
- Bitmap
description: Get bitmap list by address.
operationId: Get Bitmap List by Address
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:
- bitmap_number: 1
inscription_id: dbceae0a3c761e26e19ee936b688d7710e846c61224b1ad3fcc10b1d3e5a0487i0
holder: tb1p0e5anveswxrzkjr7mrglrk984vcjcdnfmrxt0fcd6w2s7e5q495s5knnu3
inscription_number: 30676
- bitmap_number: 2
inscription_id: 019ca6b32d80113c889f7b2f36c7d6921f858fc11db1611f3cc5a21d49aa35f2i0
holder: tb1p0e5anveswxrzkjr7mrglrk984vcjcdnfmrxt0fcd6w2s7e5q495s5knnu3
inscription_number: 30677
- bitmap_number: 3
inscription_id: 338f12023d33bc97b275d12a4d5c3f134ab71b133082374e858a51f68ffcfa90i0
holder: tb1p0e5anveswxrzkjr7mrglrk984vcjcdnfmrxt0fcd6w2s7e5q495s5knnu3
inscription_number: 30678
'400':
description: Bad Request
'401':
description: Unauthorized
security:
- bearerAuth: []


/btc/{network}/orders/{orderId}/info:
Expand Down
8 changes: 4 additions & 4 deletions open-api/btc/deploy-a-brc-20-token.api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Create order to deploy a brc20 token."
sidebar_label: "Deploy a brc20 token"
hide_title: true
hide_table_of_contents: true
api: eJylVl1vIjcU/SuWn3YlEiZACKCqasK2UvqSiLDqQ8KD8XgYhxnbsT0QoPz33mtPBvKx2VZVJGJ7ru+Xzzn2jnq2cHR0T29sKiydtWgqHLfSeKkVHdGxFcwLovEr8ZqkwhR6QxiZW95JYGUp1CltUW2EZbjnOoVd3z6wAiPDLCuFFxYj7qiCCRgr4dfaLuG7xIiG+Zy+TeNqOiY8Z1KR2pp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muToeT8iH/0FnTqqzb6Wg7oQm+E6gZKdhaEcF4QKO4NZPilO5HBLIiEqfdDq2RPNBlvrMK7ct6UzbzroLdXRql3Q6uVUyz6ynpB/Hl8Fkdkz8K1O5Gfxp+gdsshNo9Ye/GyOI2pe/rCskQQKfv09DQ3j0k6Me/XlEwHMx+L+MPyF8N45POH1xPniibcPNAzUb/rX0e+IY6/bChpJbjlwbcjat1AnIpQogx0Jqbq2vytI6+uPQeXbDY2pgsu6+OAGmGQo/ZmtxU6IRV1+uRensWqfoBZq0tNqQFwvrhAxU02YppElFIY1c8sdaOm0rL6QvUZEXdiFGk/GHJxX3kbhxqTYy90KbQ2gfBS+TyqAX1ojRdHx2Z+7MNQmZ53bjRYprzJnU4YBwSE7jGkWKJHWOqeDu8JC1NULObUWCE9ALrQ6BM5szgptQc5lLo5C/vNhgnvOTrGCFdVKR2GjKTlMULAaHLA/efciT+8a9QuMrh14E3GLbI0GZs9UyE5+/T0UDSMEERUOtFJ1Bq/aFDIrUntk/OeB/GNn+qG7/+hrRkobwkTplLrXh8IGN+5b7tzAnBREkx2tDQ3+mFDsLabB3Rl4jArMImL+8eb+fS4/fXF7XvPxQoWPtmUXA8JBzxu/tHlLt+T2FZCFzj29U9m7Sni/vxX++pLxabbsoDRewlnnFXxDBCrcnl6V6VkeQoeRLGyfc/B03aX2Yso/j7hdHC2tcs+NKKSzpTdtTGf5y83XKjW5vSkU4jsDJDd+B5AYSuIM7CPfBQJ6gW7y+h1yaZRX0BRq/rHbyR7F8Jo6hslf78duoAeuUgfP7oTsNDutZXdf/ACcss7U=
sidebar_class_name: "post api-method"
info_path: open-api/btc/introduction
custom_edit_url: null
Expand All @@ -32,17 +32,17 @@ import TabItem from "@theme/TabItem";

Create order to deploy a brc20 token.

## Request

<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></ul></div></details><MimeTabs className={"openapi-tabs__mime"}><TabItem label={"application/json"} value={"application/json-schema"}><details style={{}} className={"openapi-markdown__details mime"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-mime"}><h3 className={"openapi-markdown__details-summary-header-body"}>Body</h3><strong className={"openapi-schema__required"}>required</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}><div style={{"marginTop":"1rem","marginBottom":"1rem"}}>

<MimeTabs className={"openapi-tabs__mime"}><TabItem label={"application/json"} value={"application/json-schema"}><details style={{}} className={"openapi-markdown__details mime"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-mime"}><h3 className={"openapi-markdown__details-summary-header-body"}>Body</h3><strong className={"openapi-schema__required"}>required</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}><div style={{"marginTop":"1rem","marginBottom":"1rem"}}>

Parameters to deploy a brc20 token

</div></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"receiveAddress"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"tb1ppresfm876y9ddn3fgw2zr0wj0pl3zanslje9nfpznq3kc90q46rqmnne43"}}></SchemaItem><SchemaItem collapsible={false} name={"feeRate"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":100}}></SchemaItem><SchemaItem collapsible={false} name={"postage"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":546}}></SchemaItem><SchemaItem collapsible={false} name={"tick"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"ordi"}}></SchemaItem><SchemaItem collapsible={false} name={"limit"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"1000"}}></SchemaItem><SchemaItem collapsible={false} name={"max"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"21000"}}></SchemaItem></ul></details></TabItem></MimeTabs><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={"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 \"orderId\": \"66686819297c5f66e6dc7835\",\n \"payAddress\": \"tb1qdk94c98ahp0nz5shjksudvtzaczztf2v3e9hlh\",\n \"payAmount\": 40592\n }\n}"} language={"json"}></ResponseSamples></TabItem><TabItem label={"Example"} value={"Example"}><ResponseSamples responseExample={"{\n \"statusCode\": 0,\n \"data\": {\n \"orderId\": \"66686819297c5f66e6dc7835\",\n \"payAddress\": \"tb1qdk94c98ahp0nz5shjksudvtzaczztf2v3e9hlh\",\n \"payAmount\": 40592\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={"Example"} value={"Example"}><ResponseSamples responseExample={"{\n \"statusCode\": 0,\n \"data\": {\n \"orderId\": \"66686819297c5f66e6dc7835\",\n \"payAddress\": \"tb1qdk94c98ahp0nz5shjksudvtzaczztf2v3e9hlh\",\n \"payAmount\": 40592\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 d2e2066

Please sign in to comment.