Users might want to leverage Fuel's return data, we could allow a simple plugin such that everytime return data is detected, it calls a specific API. This way users could run a Fuel node and filter and database return logs based upon a specific set of criteria.
Proposed API
// ./index.js
const app = require('@fuel-js/client/src/app');
app({
filter: async (transaction = {}) => {
transaction.outputs....
},
})
.then(console.log)
.catch(console.log);
Running it:
node src/index --network="rinkeby" --infura="...."
Users might want to leverage Fuel's return data, we could allow a simple plugin such that everytime return data is detected, it calls a specific API. This way users could run a Fuel node and filter and database return logs based upon a specific set of criteria.
Proposed API
Running it: