Receipts
addReceipt(options) {#add-receipt}
Get some or all transactions on the network. options has the following structure:
typesets the type of the receipt. Receipt type has the following options:'CALL' | 'RETURN' | 'RETURN_DATA' | 'PANIC' | 'REVERT' | 'LOG' | 'LOG_DATA' | 'TRANSFER' | 'TRANSFER_OUT' | 'SCRIPT_RESULT' | 'MESSAGE_OUT' | 'MINT' | 'BURN'. Leave it undefined to subscribe to all receipts.contractsets the contract addresses to track. Leave it undefined to subscribe to all receipts.
transaction flag will cause the processor to retrieve transactions that gave rise to the matching receipts. 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 receipt.transaction.
Note that receipts 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 receipts of theLOG_DATA type and include parent transactions:

