Server to relay meta-transactions.
You'll need to check the .env.defaults
file and create your own .env
file. Some properties have defaults. Once you're done, you can run the project!
The server's only dependency is sqlite3 which needs to be initialized first.
npm install
npm run migrate
npm start # runs npm run build behind the scenes
# or
npm run start:watch # will watch for changes
Check ./src/adapters/routes.ts
for an up to date list of all the endpoints. The most important ones are:
Relays a meta transaction. It accepts a body with the data. Check transactionSchema
for an up to date version of the data you need to supply.
You can also check this Playground
Returns the transactions an address relayed
npm run test
# or
npm run test:watch # will watch for changes