Files
stacks-blockchain-api/docs/api/core-node/post-fee-transaction-response.schema.json
Rafael Cárdenas 666b8a60fb chore: fix openapi schema validation errors, clean up type definitions (#1170)
* fix: openapi lint validator

* fix: balances schema

* fix: add title to all entities

* fix: some additionalProperties and duplicate names

* fix: remove additional properties for rosetta

* fix: rosetta tests

* style: remove empty description
2022-05-13 15:25:11 -05:00

61 lines
1.2 KiB
JSON

{
"description": "POST response for estimated fee",
"title": "TransactionFeeEstimateResponse",
"type": "object",
"additionalProperties": false,
"required": [
"estimated_cost",
"estimated_cost_scalar"
],
"properties": {
"estimated_cost_scalar": {
"type": "integer"
},
"cost_scalar_change_by_byte": {
"type": "number"
},
"estimated_cost": {
"type": "object",
"additionalProperties": false,
"required": [
"read_count",
"write_count",
"read_length",
"write_length",
"runtime"
],
"properties": {
"read_count": {
"type": "integer"
},
"read_length": {
"type": "integer"
},
"runtime": {
"type": "integer"
},
"write_count": {
"type": "integer"
},
"write_length": {
"type": "integer"
}
}
},
"estimations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fee_rate": {
"type": "number"
},
"fee": {
"type": "number"
}
}
}
}
}
}