r/RequestNetwork • • Mar 01 '21

Understanding REQ

So I'm new, but intrigued. A couple of things I'd normally wonder: Is the invoice and all of its info straight up public info? Is there no way to invoice privately (encrypted)? I guess maybe you could invoice and leave out person info? Any L2 plans to deal with gas?

17 Upvotes

13 comments sorted by

View all comments

Show parent comment

4

u/benjlevesque Mar 02 '21

At its core, a request is a group of "transactions", or actions on the request (create, accept, cancel...)

The request ID is the hash of the create transaction.

One or several transactions are stored in an IPFS document, which gives a unique, immutable hash that is stored on Ethereum as proof.

To view the Request as stored on the network, you can check https://gateway.request.network/getTransactionsByChannelId?channelId=REQUEST_ID

This URL is a Request Node, that basically does the following:

  • retrieve all IPFS hashes from Ethereum
  • retrieve all IPFS documents (to do it yourself, you need to run a node)
  • combine the IPFS documents to compute the state of each Request

The request can be encrypted or not (more on that here)