Transactions
addTransaction(options) {#add-transaction}
Get some or all transactions on the network. options has the following structure:
typesets the type of the transaction:'Script' | 'Create' | 'Mint' | 'Upgrade' | 'Upload'. Leave it undefined to subscribe to all transactions.
receipts and/or inputs and outputs flags will cause the processor to retrieve receipts, inputs and outputs that occurred as a result of each selected transaction. The data will be added to the appropriate iterables within the block data. You can also call augmentBlock() from @subsquid/fuel-objects on the block data to populate the convenience reference fields like transaction.receipts.
Note that transactions can also be requested by the other FuelDataSource methods as related data.
Selection of the exact fields to be retrieved for each transaction and the optional related data items is done with the setFields() method documented on the Field selection page.
Examples
Request all transactions withCreate and Mint types and include receipts, inputs and outputs:

