Compare commits

...

6 Commits

Author SHA1 Message Date
iamveritas 17814e05a5 add compute transaction 2023-04-26 02:51:22 +03:00
iamveritas a67e8bb631 add send_transaction2 yaml definition 2023-04-26 02:31:26 +03:00
iamveritas 38b4367b9e add get_transaction_status 2023-04-26 01:30:41 +03:00
iamveritas 6cc1615e6c Revert "get back to original"
This reverts commit 5c4edea711.
2023-04-26 00:15:17 +03:00
iamveritas 5c4edea711 get back to original 2023-04-25 16:59:02 +03:00
iamveritas f1b5b14080 take 1, test first yaml changes 2023-04-25 15:47:47 +03:00
+100
View File
@@ -786,3 +786,103 @@ paths:
threshold:
type: "integer"
description: the sum of weights that must be met or exceeded to satisfy the permission
/get_transaction_status:
post:
description: Gets current blockchain state and, if available, transaction information given the transaction id. For query to work, the transaction finality status feature must be enabled by configuring the chain plugin with the config option '--transaction-finality-status-max-storage-size-gb <size>' in nodeos.
operationId: get_transaction_status
requestBody:
content:
application/json:
schema:
type: object
required:
- id
properties:
id:
type: string
description: The transaction ID of the transaction to retrieve the status for.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "https://eosio.github.io/schemata/v2.0/oas/TransactionStatus.yaml"
/send_transaction2:
post:
description: This method expects a transaction in JSON format and will attempt to apply it to the blockchain. It supports returning the full trace of a failed transaction and automatic nodeos-mediated retry if it is enabled on the node. When transaction retry is enabled on an API node, it will monitor incoming API transactions and ensure they are resubmitted additional times into the P2P network until they expire or are included in a block. Warning, full failure traces are now returned by default instead of exceptions. Be careful to not confuse a returned trace as an indication of speculative execution success. Verify 'receipt' and 'except' fields of the returned trace.
operationId: send_transaction2
requestBody:
content:
application/json:
schema:
type: object
properties:
return_failure_trace:
type: boolean
description: If true then embed transaction exceptions into the returned transaction trace.
retry_trx:
type: boolean
description: If true then request transaction retry on validated transaction.
retry_trx_num_blocks:
type: integer
description: If retry_trx is true, report trace at specified blocks from executed or lib if not specified.
transaction:
type: object
properties:
signatures:
type: array
description: array of signatures required to authorize transaction.
items:
$ref: "https://docs.eosnetwork.com/openapi/v2.0/Signature.yaml"
compression:
type: boolean
description: Compression used, usually false
packed_context_free_data:
type: string
description: json to hex
packed_trx:
type: string
description: Transaction object json to hex
responses:
"200":
description: OK
content:
application/json:
schema:
description: Returns Nothing
/compute_transaction:
post:
description: Transactions sent to this endpoint will be executed and create a transaction trace, including resource usage, and then will revert all state changes and will not contribute to the subjective billing for the account. If the transaction has signatures, they will be processed, but any failures will be ignored. Transactions which fail will always include the transaction failure trace. Warning, users with exposed nodes who have enabled the compute_transaction endpoint should implement some sort of throttling to protect from Denial of Service attacks.
operationId: compute_transaction
requestBody:
content:
application/json:
schema:
type: object
properties:
signatures:
type: array
description: array of signatures required to authorize transaction
items:
$ref: "https://eosio.github.io/schemata/v2.0/oas/Signature.yaml"
compression:
type: boolean
description: Compression used, usually false
packed_context_free_data:
type: string
description: json to hex
packed_trx:
type: string
description: Transaction object json to hex
responses:
"200":
description: OK
content:
application/json:
schema:
description: Returns Nothing