Skip to content

Commit 0d81369

Browse files
docs: rosetta network options api (#1261)
* Test Rosetta- network options api * Rosetta-example-test * Removed extra space * Formatted Json file * Added JSON examples for API's * Renamed file names * Renamed json examples
1 parent 9d6e94f commit 0d81369

7 files changed

+73
-6
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"network_identifier": {
3+
"blockchain": "stacks",
4+
"network": "mainnet"
5+
},
6+
"account_identifier": {
7+
"address": "SP2W6477BT5CRWVC5D5RFNPNAR8R2NW63SMMCAWMC",
8+
"metadata": {}
9+
}
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"network_identifier": {
3+
"blockchain": "stacks",
4+
"network": "mainnet"
5+
},
6+
"public_key": {
7+
"hex_bytes": "022d82baea2d041ac281bebafab11571f45db4f163a9e3f8640b1c804a4ac6f662",
8+
"curve_type": "secp256k1"
9+
},
10+
"metadata": {}
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"network_identifier": {
4+
"blockchain": "stacks",
5+
"network": "mainnet"
6+
},
7+
"metadata": {}
8+
}
9+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"network_identifier": {
3+
"blockchain": "stacks",
4+
"network": "mainnet"
5+
},
6+
"block_identifier": {
7+
"index": 71107,
8+
"hash": "0xce7e16561150f3a379845f4e96c3dd8f8396e397495821c9eec6b429391c529c"
9+
}
10+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"network_identifier": {
3+
"blockchain": "stacks",
4+
"network": "mainnet"
5+
},
6+
"block_identifier": {
7+
"hash": "0xce7e16561150f3a379845f4e96c3dd8f8396e397495821c9eec6b429391c529c"
8+
},
9+
"transaction_identifier": {
10+
"hash": "0x49354cc7b18dc5296c945a8e89f7d758dac14f1ab38d4c33dfe45ec1765ab339"
11+
}
12+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"network_identifier": {
3+
"blockchain": "stacks",
4+
"network": "mainnet"
5+
},
6+
"transaction_identifier": {
7+
"hash": "0xe6761e6ce26b366e1db70da31096f0de47f623e70f0b495b20f658b03bd21cea"
8+
}
9+
}

docs/openapi.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,8 @@ paths:
19961996
application/json:
19971997
schema:
19981998
$ref: ./api/rosetta/rosetta-network-options-request.schema.json
1999+
example:
2000+
$ref: ./api/rosetta/rosetta-account-network-options-request-body.example.json
19992001

20002002
/rosetta/v1/network/status:
20012003
post:
@@ -2025,6 +2027,8 @@ paths:
20252027
application/json:
20262028
schema:
20272029
$ref: ./api/rosetta/rosetta-network-status-request.schema.json
2030+
example:
2031+
$ref: ./api/rosetta/rosetta-account-network-options-request-body.example.json
20282032

20292033
/rosetta/v1/account/balance:
20302034
post:
@@ -2054,6 +2058,8 @@ paths:
20542058
application/json:
20552059
schema:
20562060
$ref: ./api/rosetta/rosetta-account-balance-request.schema.json
2061+
example:
2062+
$ref: ./api/rosetta/rosetta-account-balance-request-body.example.json
20572063

20582064
/rosetta/v1/block:
20592065
post:
@@ -2081,6 +2087,8 @@ paths:
20812087
application/json:
20822088
schema:
20832089
$ref: ./api/rosetta/rosetta-block-request.schema.json
2090+
example:
2091+
$ref: ./api/rosetta/rosetta-block-request-body.example.json
20842092

20852093
/rosetta/v1/block/transaction:
20862094
post:
@@ -2108,6 +2116,8 @@ paths:
21082116
application/json:
21092117
schema:
21102118
$ref: ./api/rosetta/rosetta-block-transaction-request.schema.json
2119+
example:
2120+
$ref: ./api/rosetta/rosetta-block-transaction-request-body.example.json
21112121

21122122
/rosetta/v1/mempool:
21132123
post:
@@ -2135,6 +2145,8 @@ paths:
21352145
application/json:
21362146
schema:
21372147
$ref: ./api/rosetta/rosetta-mempool-request.schema.json
2148+
example:
2149+
$ref: ./api/rosetta/rosetta-account-network-options-request-body.example.json
21382150

21392151
/rosetta/v1/mempool/transaction:
21402152
post:
@@ -2285,8 +2297,6 @@ paths:
22852297
application/json:
22862298
schema:
22872299
$ref: ./api/rosetta/rosetta-construction-preprocess-response.schema.json
2288-
example:
2289-
$ref: ./api/rosetta/rosetta-construction-preprocess-response.example.json
22902300

22912301
400:
22922302
description: Error
@@ -2404,8 +2414,6 @@ paths:
24042414
application/json:
24052415
schema:
24062416
$ref: ./api/bns/namespace-operations/bns-get-namespace-price-response.schema.json
2407-
example:
2408-
$ref: ./api/bns/namespace-operations/bns-get-namespace-price-response.example.json
24092417

24102418
/v2/prices/names/{name}:
24112419
get:
@@ -2429,8 +2437,6 @@ paths:
24292437
application/json:
24302438
schema:
24312439
$ref: ./api/bns/name-querying/bns-get-name-price-response.schema.json
2432-
example:
2433-
$ref: ./api/bns/name-querying/bns-get-name-price-response.example.json
24342440

24352441
/v1/namespaces:
24362442
get:

0 commit comments

Comments
 (0)