mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
docs update for flat transaction
This commit is contained in:
parent
8d4677f456
commit
21af588f7c
@ -22,7 +22,6 @@ A transaction has the following structure:
|
|||||||
{
|
{
|
||||||
"id": "<hash of transaction, excluding signatures (see explanation)>",
|
"id": "<hash of transaction, excluding signatures (see explanation)>",
|
||||||
"version": "<version number of the transaction model>",
|
"version": "<version number of the transaction model>",
|
||||||
"transaction": {
|
|
||||||
"fulfillments": ["<list of fulfillments>"],
|
"fulfillments": ["<list of fulfillments>"],
|
||||||
"conditions": ["<list of conditions>"],
|
"conditions": ["<list of conditions>"],
|
||||||
"operation": "<string>",
|
"operation": "<string>",
|
||||||
@ -32,13 +31,11 @@ A transaction has the following structure:
|
|||||||
"data": "<any JSON document>"
|
"data": "<any JSON document>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Here's some explanation of the contents of a :ref:`transaction <transaction>`:
|
Here's some explanation of the contents of a :ref:`transaction <transaction>`:
|
||||||
|
|
||||||
- :ref:`id <transaction.id>`: The id of the transaction, and also the database primary key.
|
- id: The :ref:`id <transaction.id>` of the transaction, and also the database primary key.
|
||||||
- :ref:`version <transaction.version>`: Version number of the transaction model, so that software can support different transaction models.
|
- version: :ref:`Version <transaction.version>` number of the transaction model, so that software can support different transaction models.
|
||||||
- :ref:`transaction <Transaction Body>`:
|
|
||||||
- **fulfillments**: List of fulfillments. Each :ref:`fulfillment <Fulfillment>` contains a pointer to an unspent asset
|
- **fulfillments**: List of fulfillments. Each :ref:`fulfillment <Fulfillment>` contains a pointer to an unspent asset
|
||||||
and a *crypto fulfillment* that satisfies a spending condition set on the unspent asset. A *fulfillment*
|
and a *crypto fulfillment* that satisfies a spending condition set on the unspent asset. A *fulfillment*
|
||||||
is usually a signature proving the ownership of the asset.
|
is usually a signature proving the ownership of the asset.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user