Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/protocol/tx_format/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ The Fuel Transaction Format.
- [OutputChange](./output.md#outputchange)
- [OutputVariable](./output.md#outputvariable)
- [OutputContractCreated](./output.md#outputcontractcreated)
- [OutputData](./output.md#outputdata)
- [Witness](./witness.md)
- [TXPointer](./tx_pointer.md)
10 changes: 10 additions & 0 deletions src/protocol/tx_format/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ enum OutputType : uint8 {
Change = 2,
Variable = 3,
ContractCreated = 4,
Data = 5,
}
```

Expand Down Expand Up @@ -88,3 +89,12 @@ This output type indicates that the output's amount and owner may vary based on
|--------------|------------|---------------------------------|
| `contractID` | `byte[32]` | Contract ID. |
| `stateRoot` | `byte[32]` | Initial state root of contract. |

## OutputData

| name | type | description |
|------------|------------|--------------------------------------|
| `dataLength` | `uint32` | The length of the data field. |
| `data` | `byte[]` | The bytes data. |

> **Note:** this output cannot be spent.