docs icon indicating copy to clipboard operation
docs copied to clipboard

Derives are not covered

Open vikiival opened this issue 3 years ago • 2 comments

Detour into derives states:

The api.derive interfaces will be covered in a follow-up section

However there is no follow-up section 🥹

vikiival avatar Aug 09 '22 09:08 vikiival

Those are tricky - trying to keep those current would be a nightmare since it really is into undocumented and very unstable territory. (They change/break without concern about external usage)

jacogr avatar Aug 09 '22 09:08 jacogr

really is into undocumented and very unstable territory.

Maybe just mention the commonly used ones in the cookbook?

const { availableBalance } = await api.derive.balances.all(address)

// instead of 

const { data: { free: availableBalance } } = await api.query.system.account(address)

I think there could be many more that I am not aware of.

Btw: I will be happy to write it down.

vikiival avatar Aug 09 '22 11:08 vikiival

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

polkadot-js-bot avatar Aug 30 '22 13:08 polkadot-js-bot

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

polkadot-js-bot avatar Sep 13 '22 13:09 polkadot-js-bot