Skip to content

Commit

Permalink
feat(xpub): init
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahut committed Nov 30, 2021
1 parent 7abe8af commit c313415
Showing 1 changed file with 76 additions and 1 deletion.
77 changes: 76 additions & 1 deletion swagger.yaml
Expand Up @@ -84,7 +84,7 @@ info:
whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attemtps to make a call 3 seconds after whole burst, 30 requests will be processed.
We believe this should be sufficient for most of the use cases. If it is not and you have a specific use case, please get in touch with us, and
we will make sure to take it into account as much as we can.
## SDKs
We support a number of SDKs that will help you in developing your application on top of Blockfrost.
Expand Down Expand Up @@ -129,6 +129,7 @@ tags:
- name: Cardano » Pools
- name: Cardano » Scripts
- name: Cardano » Transactions
- name: Cardano » Utilities
- name: IPFS » Add
- name: IPFS » Gateway
- name: IPFS » Pins
Expand Down Expand Up @@ -3850,6 +3851,54 @@ paths:
"500":
$ref: "#/components/responses/internal_server_error"

/utils/addresses/xpub/{xpub}/{role}/{index}:
get:
tags:
- Cardano » Utilities
summary: Drivate an address
description: Drivate Shelley address from an xpub
parameters:
- in: path
name: xpub
required: true
schema:
type: string
description: Bech32 xpub
example: "d507c8f866691bd96e131334c355188b1a1d0b2fa0ab11545075aab332d77d9eb19657ad13ee581b56b0f8d744d66ca356b93d42fe176b3de007d53e9c4c4e7a"
- in: path
name: role
required: true
schema:
type: integer
description: Account role
example: 0
- in: path
name: index
required: true
schema:
type: integer
description: Address index
example: 2
responses:
"200":
description: Return derivated Shelley address
content:
application/json:
schema:
$ref: "#/components/schemas/utils_addresses_xpub"
"400":
$ref: "#/components/responses/bad_request"
"403":
$ref: "#/components/responses/unauthorized_error"
"404":
$ref: "#/components/responses/not_found"
"429":
$ref: "#/components/responses/overusage_limit"
"418":
$ref: "#/components/responses/autobanned"
"500":
$ref: "#/components/responses/internal_server_error"

/ipfs/add:
servers:
- url: https://ipfs.blockfrost.io/api/v0
Expand Down Expand Up @@ -7073,6 +7122,32 @@ components:
example:
cbor: "4e4d01000033222220051200120011"

utils_addresses_xpub:
type: object
properties:
xpub:
type: string
description: Script hash
role:
type: integer
description: Acount role
index:
type: integer
description: Address index
address:
type: string
description: Derivated address
required:
- xpub
- role
- index
- address
example:
- xpub: "d507c8f866691bd96e131334c355188b1a1d0b2fa0ab11545075aab332d77d9eb19657ad13ee581b56b0f8d744d66ca356b93d42fe176b3de007d53e9c4c4e7a"
role: 0
index: 0
address: "addr1q90sqnljxky88s0jsnps48jd872p7znzwym0jpzqnax6qs5nfrlkaatu28n0qzmqh7f2cpksxhpc9jefx3wrl0a2wu8q5amen7"

metrics:
type: array
items:
Expand Down

0 comments on commit c313415

Please sign in to comment.