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 3 months ago

Szegoo commented 3 months 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 3 months ago

We can calculate the account locally instead.