Files
stacks-blockchain-api/api/rosetta/rosetta-construction-parse-request.schema.json

1 line
1.8 KiB
JSON

{"$schema":"http://json-schema.org/draft-07/schema","$id":"rosetta-construction-parse-request","type":"object","title":"RosettaConstructionParseRequest","description":"Parse is called on both unsigned and signed transactions to understand the intent of the formulated transaction. This is run as a sanity check before signing (after /construction/payloads) and before broadcast (after /construction/combine).","required":["network_identifier","signed","transaction"],"properties":{"network_identifier":{"$schema":"http://json-schema.org/draft-07/schema","type":"object","title":"NetworkIdentifier","description":"The network_identifier specifies which network a particular object is associated with.","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","description":"Blockchain name"},"network":{"type":"string","description":"If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet."},"sub_network_identifier":{"type":"object","description":"In blockchains with sharded state, the SubNetworkIdentifier is required to query some object on a specific shard. This identifier is optional for all non-sharded blockchains.","required":["network"],"properties":{"network":{"type":"string","description":"Network name"},"metadata":{"type":"object","description":"Meta data from subnetwork identifier","required":["producer"],"properties":{"producer":{"type":"string","description":"producer"}}}}}}},"signed":{"type":"boolean","description":"Signed is a boolean indicating whether the transaction is signed."},"transaction":{"type":"string","description":"This must be either the unsigned transaction blob returned by /construction/payloads or the signed transaction blob returned by /construction/combine."}}}