- https://twitter.com/the_sohail_azim
- Joined on
2021-10-26
Check the HTTP response code first. If it is >= 400 (Not found), you can then unmarshal to an api.ErrResp.
Data API endpoints
- Last 10 tx: /api/v1/transfers/last10/:address
- Token holdings with balances: /api/v1/holdings/:address
This is the expected JSON response when querying for a user's current holdings.
[ { "symbol": "MUMO", "address": "0x078b3a26596218507781722A4e8825BFB9570Fba"…
REST endpoint that returns the latest token the user received or 0x0..000.
go-vise
dep via the go module mirror and keep it updated via renovatebot
log
with structured logging log/slog
Looks good. However, the existing one go-vise/logging
could be implemented as a slog Handler. By accepting slog.Logger, anyone can bring their own logger.
I can…
log
with structured logging log/slog
Since go-vise is state-aware, we can just extract the last input.
Set up a host
AT sends webhooks only, the server is expected to reply to the webhook request with the next menu. For testing, we could use Dialoguss as an AT simulator.
For transfer values, the API will expect the number in string represented (big)int. And because it is possible for the USSD wallet to hold any token, you will need to know the decimals beforehand.…