This CodeSandBox shows how to use the Request Client library to retrieve a user's requests.
This CodeSandBox performs the following actions:
- Import the
@requestnetwork/request-client.jslibrary. - Construct a
RequestNetworkobject connected to the Goerli Gateway. - Call
fromIdentity(), passing in a user's address. - Call
getData()on the returned requests - Display the data in a simple table.
- Display the raw request JSON.
Start by viewing the app/page.tsx file.
If the dev:3000 tab displays a 504 Gateway Timeout error, try restarting the dev:logs tab. If that doesn't work, try restarting the whole sandbox.
To learn more about Request Network, take a look at the following resources:
- Request Network Documentation - learn about Request Network features and API
- Request Network Github repository - your feedback and contributions are welcome!