Replies: 2 comments
-
There is a REST / Swagger / OpenAPI API; see: That REST API is based on a gRPC / Protobuf API; for example, see cosmjs is designed to facilitate use of the REST and gRPC protocols / APIs. That's what we use in our production dapps. I've been having some fun with batch / CLI usage; see: |
Beta Was this translation helpful? Give feedback.
-
Thanks @dckc helpful start. I wanted to re-energize my question here to keep track of the full ask. App explanation: an agoric type sportsbook thats non profit and allows users to setup a local instance that benefits a given charity. Same options and features of a DraftKings or FanDuel except, when you lose, its benefiting your charity of choice and not just billion dollar casinos. (when you win you are paid the same). Essentially I have this working app here that I would like to bring on chain in a phased roll out approach. Phase 1: I simply would like to host the wallet on chain. So the odds calculations, determining winners, and other calculations remain off chain in Web2.. however the wallets and funds are on chain example flow is more mapped here. Customer wins wager >> we ask the chain to tranfer 8 bld from admin pot to user's wallet Charity payout >> we ask the chain to transfer XXbld to from admin wallet to charity owned wallet. App is working now using "credits" a made up currency lol but is essentially dollars. Future versions I have mapped can have the enitre operation on chain, however thats further down the road. see the phased roll out plan for my best approach In the ~2cnd implementation it would be really cool to use more of our orchestration.. The local wallet should be able to hold multiple currency that can be used freely to play. Example bet 2bld on one game, 3 IST on another, 1 TIA on a third. again the first and most helpful version is creating wallets and orchestrating transfers from my web2 app. |
Beta Was this translation helpful? Give feedback.
-
editing since I can not close this. I will re-post as needed
Beta Was this translation helpful? Give feedback.
All reactions