Files
stacks-blockchain-api/docs/api/rosetta/rosetta-construction-metadata-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

27 lines
984 B
JSON

{
"type": "object",
"title": "RosettaConstructionMetadataResponse",
"description": "The ConstructionMetadataResponse returns network-specific metadata used for transaction construction. Optionally, the implementer can return the suggested fee associated with the transaction being constructed. The caller may use this info to adjust the intent of the transaction or to create a transaction with a different account that can pay the suggested fee. Suggested fee is an array in case fee payment must occur in multiple currencies.",
"required": ["metadata"],
"additionalProperties": false,
"properties": {
"metadata": {
"type": "object",
"properties": {
"account_sequence": {
"type": "integer"
},
"recent_block_hash": {
"type": "string"
}
}
},
"suggested_fee": {
"type": "array",
"items": {
"$ref": "./../../entities/rosetta/rosetta-amount.schema.json"
}
}
}
}