Skip to content

Commit

Permalink
Remove juno_getTransactionStatus from Juno RPC spec
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Dec 1, 2023
1 parent bffda5f commit 319375d
Showing 1 changed file with 2 additions and 77 deletions.
79 changes: 2 additions & 77 deletions juno_rpc_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,86 +18,11 @@
"description": "A semver-compatible version string"
}
}
},
{
"name": "juno_getTransactionStatus",
"description": "This method returns the current status of a transaction. The status is comprised of both finality and execution statuses",
"params": [
{
"name": "transaction_hash",
"description": "The hash of the requested transaction",
"required": true,
"schema": {
"$ref": "#/components/schemas/TXN_HASH"
}
}
],
"result": {
"name": "transaction status",
"required": true,
"schema": {
"type": "object",
"description": "Contains both finality and execution statuses of the requested transaction",
"properties": {
"finality_status": {
"title": "Transaction finality status",
"$ref": "#/components/schemas/TX_FINALITY_STATUS"
},
"execution_status": {
"title": "Transaction execution status",
"$ref": "#/components/schemas/TX_EXECUTION_STATUS"
}
},
"required": [
"finality_status",
"execution_status"
]
}
},
"errors": [
{
"$ref": "#/components/errors/INTERNAL_ERROR"
}
]
}
],
"components": {
"contentDescriptors": {},
"schemas": {
"FELT": {
"type": "string",
"title": "Field element",
"$comment": "A field element, represented as a string of hex digits",
"description": "A field element represented as a string of hex digits with a 0x prefix and up-to 63 hex digits",
"pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
},
"TXN_HASH": {
"$ref": "#/components/schemas/FELT",
"description": "The transaction hash, as assigned in Starknet",
"title": "A transaction's hash"
},
"TX_FINALITY_STATUS": {
"type": "string",
"enum": [
"ACCEPTED_ON_L1",
"ACCEPTED_ON_L2"
],
"description": "The finality status of the transaction"
},
"TX_EXECUTION_STATUS": {
"type": "string",
"enum": [
"SUCCEEDED",
"REVERTED"
],
"description": "The execution status of the transaction"
}
},
"errors": {
"INTERNAL_ERROR": {
"code": -32603,
"message": "Internal Error"
}
}
"schemas": {},
"errors": {}
}
}

0 comments on commit 319375d

Please sign in to comment.