JSPM

@polkadot/api-derive

2.10.2-11
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 153018
  • Score
    100M100P100Q179373F
  • License Apache-2.0

Common functions used across Polkadot, derived from RPC calls and storage queries.

Package Exports

  • @polkadot/api-derive
  • @polkadot/api-derive/accounts
  • @polkadot/api-derive/accounts/accountId
  • @polkadot/api-derive/accounts/flags
  • @polkadot/api-derive/accounts/idAndIndex
  • @polkadot/api-derive/accounts/idToIndex
  • @polkadot/api-derive/accounts/identity
  • @polkadot/api-derive/accounts/indexToId
  • @polkadot/api-derive/accounts/indexes
  • @polkadot/api-derive/accounts/info
  • @polkadot/api-derive/accounts/types
  • @polkadot/api-derive/balances
  • @polkadot/api-derive/balances/account
  • @polkadot/api-derive/balances/all
  • @polkadot/api-derive/balances/fees
  • @polkadot/api-derive/balances/votingBalances
  • @polkadot/api-derive/chain
  • @polkadot/api-derive/chain/bestNumber
  • @polkadot/api-derive/chain/bestNumberFinalized
  • @polkadot/api-derive/chain/bestNumberLag
  • @polkadot/api-derive/chain/getBlock
  • @polkadot/api-derive/chain/getHeader
  • @polkadot/api-derive/chain/subscribeNewBlocks
  • @polkadot/api-derive/chain/subscribeNewHeads
  • @polkadot/api-derive/chain/types
  • @polkadot/api-derive/collective
  • @polkadot/api-derive/collective/proposals
  • @polkadot/api-derive/contracts
  • @polkadot/api-derive/contracts/fees
  • @polkadot/api-derive/council
  • @polkadot/api-derive/council/proposals
  • @polkadot/api-derive/council/types
  • @polkadot/api-derive/council/votes
  • @polkadot/api-derive/council/votesOf
  • @polkadot/api-derive/democracy
  • @polkadot/api-derive/democracy/dispatchQueue
  • @polkadot/api-derive/democracy/locks
  • @polkadot/api-derive/democracy/nextExternal
  • @polkadot/api-derive/democracy/preimage
  • @polkadot/api-derive/democracy/preimages
  • @polkadot/api-derive/democracy/proposals
  • @polkadot/api-derive/democracy/referendumIds
  • @polkadot/api-derive/democracy/referendums
  • @polkadot/api-derive/democracy/referendumsActive
  • @polkadot/api-derive/democracy/referendumsFinished
  • @polkadot/api-derive/democracy/referendumsInfo
  • @polkadot/api-derive/democracy/sqrtElectorate
  • @polkadot/api-derive/democracy/types
  • @polkadot/api-derive/democracy/util
  • @polkadot/api-derive/elections
  • @polkadot/api-derive/elections/info
  • @polkadot/api-derive/elections/types
  • @polkadot/api-derive/imOnline
  • @polkadot/api-derive/imOnline/receivedHeartbeats
  • @polkadot/api-derive/package.json
  • @polkadot/api-derive/parachains
  • @polkadot/api-derive/parachains/info
  • @polkadot/api-derive/parachains/overview
  • @polkadot/api-derive/parachains/types
  • @polkadot/api-derive/parachains/util
  • @polkadot/api-derive/session
  • @polkadot/api-derive/session/eraLength
  • @polkadot/api-derive/session/eraProgress
  • @polkadot/api-derive/session/indexes
  • @polkadot/api-derive/session/info
  • @polkadot/api-derive/session/progress
  • @polkadot/api-derive/session/sessionProgress
  • @polkadot/api-derive/session/types
  • @polkadot/api-derive/society
  • @polkadot/api-derive/society/candidates
  • @polkadot/api-derive/society/info
  • @polkadot/api-derive/society/member
  • @polkadot/api-derive/society/members
  • @polkadot/api-derive/staking
  • @polkadot/api-derive/staking/account
  • @polkadot/api-derive/staking/currentPoints
  • @polkadot/api-derive/staking/electedInfo
  • @polkadot/api-derive/staking/erasExposure
  • @polkadot/api-derive/staking/erasHistoric
  • @polkadot/api-derive/staking/erasPoints
  • @polkadot/api-derive/staking/erasPrefs
  • @polkadot/api-derive/staking/erasRewards
  • @polkadot/api-derive/staking/erasSlashes
  • @polkadot/api-derive/staking/keys
  • @polkadot/api-derive/staking/overview
  • @polkadot/api-derive/staking/ownExposure
  • @polkadot/api-derive/staking/ownSlashes
  • @polkadot/api-derive/staking/query
  • @polkadot/api-derive/staking/stakerExposure
  • @polkadot/api-derive/staking/stakerPoints
  • @polkadot/api-derive/staking/stakerPrefs
  • @polkadot/api-derive/staking/stakerRewards
  • @polkadot/api-derive/staking/stakerSlashes
  • @polkadot/api-derive/staking/stashes
  • @polkadot/api-derive/staking/types
  • @polkadot/api-derive/staking/util
  • @polkadot/api-derive/staking/validators
  • @polkadot/api-derive/staking/waitingInfo
  • @polkadot/api-derive/technicalCommittee
  • @polkadot/api-derive/technicalCommittee/proposals
  • @polkadot/api-derive/treasury
  • @polkadot/api-derive/treasury/bounties
  • @polkadot/api-derive/treasury/proposals
  • @polkadot/api-derive/tx
  • @polkadot/api-derive/tx/constants
  • @polkadot/api-derive/tx/events
  • @polkadot/api-derive/tx/signingInfo
  • @polkadot/api-derive/type
  • @polkadot/api-derive/type/HeaderExtended
  • @polkadot/api-derive/type/SignedBlockExtended
  • @polkadot/api-derive/type/util
  • @polkadot/api-derive/types
  • @polkadot/api-derive/util
  • @polkadot/api-derive/util/approvalFlagsToBools
  • @polkadot/api-derive/util/cache
  • @polkadot/api-derive/util/cacheImpl
  • @polkadot/api-derive/util/memo
  • @polkadot/api-derive/util/types

Readme

@polkadot/api-derive

Collection of high-level utility functions built on top of the @polkadot/api library. Designed to simplify the process of querying complex on-chain data by combining multiple RPC calls, storage queries, and runtime logic into a single, callable function.

Instead of manually fetching and processing blockchain data, developers can use api.derive methods to retrieve information.

Available Derive Namespaces

The derive functions are categorized into namespaces based on different common Substrate modules. Accesible by calling api.derive.NAMESPACE (e.g. api.derive.balances). The available modules are as follows: