You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Learn about generating services with redwood and getting data.
Deliverable
A simple redwood service which gets a particular balance from the blockchain (any network).
Suggested tasks
If you don't have one already, create a service eg. yarn rw generate service user which will create a file in api/src/services where you will place your logic.
Use ethers.js v5 to load a wallet token or coin balance. You will probably need to look for docs for this! Pick any network, any coin or token, and any user address. These can be hardcoded.
Goal
Learn about generating services with redwood and getting data.
Deliverable
A simple redwood service which gets a particular balance from the blockchain (any network).
Suggested tasks
yarn rw generate service user
which will create a file inapi/src/services
where you will place your logic.The service could look like this:
The text was updated successfully, but these errors were encountered: