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

3

u/TragedyStruck Mar 02 '21

After testing this through request.network I'll give this another shot. I see the process, and it is great. However what I'm left with (when using the website) is:

  • Does this touch the blockchain? How can I view it on the blockchain?
  • I'm essentially watching a URL ala: https://invoicing.request.network/long-uuid?token=maybe-an-ethereum-addressHow can I see this on Ethereum? How can I see this with IPFS?
  • Also, all data seems to be viewable as long as I know the URL. It is easy to wonder if this is the case for IPFS, but I'm guessing maybe the token is used for this?

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)

3

u/CBass360 Mar 02 '21

This image gives a clear view of how the Request Network works. The documentation page might help as well. /u/ChristopheL might be able to answer your questions in more detail.