RegionX-Labs / CoretimeHub

A central hub for users to manager their Polkadot and Kusama Coretime
https://app.regionx.tech/
Other
5 stars 4 forks source link

Use the runtime api to fetch price #215

Closed Szegoo closed 1 month ago

Szegoo commented 1 month ago
const price = await api.rpc.state.call("BrokerApi_sale_price", null);
console.log(api.createType('Option<u128>', price))

We are waiting for the runtime API to be added to the Kusama runtime.

Szegoo commented 1 month ago

We can calculate the account locally instead.