Skip to content

Commit

Permalink
add specVersion endpoint and re-allow v0 invoke txs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielElp committed Sep 10, 2023
1 parent 5d266c1 commit 83f925d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
31 changes: 19 additions & 12 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "0.4.0",
"version": "0.5.0",
"title": "StarkNet Node API",
"license": {}
},
"servers": [],
"methods": [
{
"name": "starknet_specVersion",
"summary": "Returns the version of the Starknet JSON-RPC spec being used",
"params": [],
"result": {
"name": "result",
"description": "Semver of Starknet's JSON-RPC spec being used",
"required": true,
"schema": {
"title": "JSON-RPC spec version",
"type": "string"
}
}
},
{
"name": "starknet_getBlockWithTxHashes",
"summary": "Get block information with transaction hashes given the block id",
Expand Down Expand Up @@ -1383,7 +1397,9 @@
"block_number",
"new_root",
"timestamp",
"sequencer_address"
"sequencer_address",
"l1_gas_price",
"starknet_version"
]
},
"BLOCK_WITH_TX_HASHES": {
Expand Down Expand Up @@ -1876,16 +1892,7 @@
},
"BROADCASTED_INVOKE_TXN": {
"title": "Broadcasted invoke transaction",
"oneOf": [
{
"title": "Broadcasted invoke transaction V1",
"$ref": "#/components/schemas/INVOKE_TXN_V1"
},
{
"title": "Broadcasted invoke transaction V3",
"$ref": "#/components/schemas/INVOKE_TXN_V3"
}
]
"$ref": "#/components/schemas/INVOKE_TXN"
},
"BROADCASTED_DEPLOY_ACCOUNT_TXN": {
"title": "Broadcasted deploy account transaction",
Expand Down
2 changes: 1 addition & 1 deletion api/starknet_trace_api_openrpc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "0.4.0",
"version": "0.5.0",
"title": "StarkNet Trace API",
"license": {}
},
Expand Down
2 changes: 1 addition & 1 deletion api/starknet_write_api.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openrpc": "1.0.0-rc1",
"info": {
"version": "0.4.0",
"version": "0.5.0",
"title": "StarkNet Node Write API",
"license": {}
},
Expand Down

0 comments on commit 83f925d

Please sign in to comment.