oasisprotocol / oasis-rosetta-gateway

The official Rosetta server implementation for the Oasis Network.
Apache License 2.0
21 stars 9 forks source link

Expose commision schedule in account metadata #159

Open tjanez opened 3 years ago

tjanez commented 3 years ago

This would be useful so wallets using the Rosetta API could report an account's commission schedule (i.e. commission rates and rate bounds) and users could make an informed decision when delegating their tokens.

Esya commented 3 years ago

Some websites such as OasisScan are already exposing this, where do they get this information from if not from the gateway ?

kostko commented 3 years ago

They get it from the oasis-node gRPC API.

Esya commented 3 years ago

Ah... So they probably run their own node and query it with gRPC.

I might go for this idea, Provide a pure web/JS wallet based on BIP 39 but I want to support delegation and ideally have no backend (but that's another topic) - and I'm looking at possibly interacting with the Rosetta gateway to do all this, so I guess this issue would be nice to also guide users when delegating.