polkadot-js/api
GitHub
GitHub
  • Examples (Promise API)
    • Simple connect
    • Listen to blocks
    • Listen to balance change
    • Unsubscribe from listening
    • Read chain state
    • Make a transfer
    • Display system events
    • Transaction with events
    • Upgrade via sudo
  • Substrate interfaces

    • Substrate RPC
      • JSON-RPC
    • State storage (defaults)
      • Storage
    • Extrinsics (defaults)
      • Extrinsics
    • System events (defaults)
      • Events
  • @polkadot/api
    • API Selection
    • Dynamic by default
    • Installation & import
    • Registering custom types
    • Users
    • Classes
  • @polkadot/types
    • Primitive types
    • Substrate types
    • Derived types
    • Codec types
  • Contributing
    • What?
    • Rules
    • Releases
    • Changes to this arrangement
    • Heritage
  • "Metadata/MagicNumber"
    • MagicNumber
  • "Metadata/Metadata"
    • Metadata
  • "Metadata/MetadataVersioned"
    • MetadataVersioned
  • "Metadata/static"
  • "Metadata/types"
    • MetadataInterface
  • "Metadata/util/flattenUniq"
  • "Metadata/util/validateTypes"
  • "Metadata/v0/Calls"
    • OuterDispatchCall
    • OuterDispatchMetadata
  • "Metadata/v0/Events"
    • EventMetadata
    • OuterEventMetadata
    • OuterEventMetadataEvent
  • "Metadata/v0/Metadata"
    • MetadataV0
  • "Metadata/v0/Modules"
    • CallMetadata
    • FunctionArgumentMetadata
    • FunctionMetadata
    • MapType
    • ModuleMetadata
    • RuntimeModuleMetadata
    • StorageFunctionMetadata
    • StorageFunctionModifier
    • StorageFunctionType
    • StorageMetadata
  • "Metadata/v0/static"
  • "Metadata/v1/Calls"
    • MetadataCall
    • MetadataCallArg
  • "Metadata/v1/Events"
    • MetadataEvent
  • "Metadata/v1/Metadata"
    • MetadataModule
    • MetadataV1
  • "Metadata/v1/Storage"
    • Default
    • MapType
    • MetadataStorage
    • MetadataStorageModifier
    • MetadataStorageType
    • Optional
    • PlainType
  • "Metadata/v1/static"
  • "Metadata/v1/toV0"
  • "classes"
  • "codec/AbstractInt"
  • "codec/Base"
    • Base
  • "codec/Compact"
    • Compact
  • "codec/Enum"
    • Enum
  • "codec/EnumType"
    • EnumType
  • "codec/Int"
    • Int
  • "codec/Option"
    • Option
  • "codec/Set"
    • Set
  • "codec/Struct"
    • Struct
  • "codec/Tuple"
    • Tuple
  • "codec/U8a"
    • U8a
  • "codec/U8aFixed"
    • U8aFixed
  • "codec/UInt"
    • UInt
  • "codec/Vector"
    • Vector
  • "codec/createType"
    • TypeDefInfo
  • "codec/typeRegistry"
    • TypeRegistry
  • "codec/utils/compareArray"
  • "codec/utils/compareMap"
  • "codec/utils/decodeU8a"
  • "index.types"
  • "primitive/Bool"
    • Bool
  • "primitive/Bytes"
    • Bytes
  • "primitive/Data"
    • Data
  • "primitive/H160"
    • H160
  • "primitive/H256"
    • H256
  • "primitive/H512"
    • H512
  • "primitive/I128"
    • I128
  • "primitive/I16"
    • I16
  • "primitive/I256"
    • I256
  • "primitive/I32"
    • I32
  • "primitive/I64"
    • I64
  • "primitive/I8"
    • I8
  • "primitive/Method"
    • Method
    • MethodIndex
    • MethodFunction
    • Methods
    • ModulesWithMethods
  • "primitive/Moment"
    • Moment
    • MomentOf
  • "primitive/Null"
    • Null
  • "primitive/StorageData"
    • StorageData
  • "primitive/StorageKey"
    • StorageKey
    • StorageFunction
  • "primitive/Text"
    • Text
  • "primitive/Type"
    • Type
  • "primitive/U128"
    • U128
  • "primitive/U16"
    • U16
  • "primitive/U256"
    • U256
  • "primitive/U32"
    • U32
  • "primitive/U64"
    • U64
  • "primitive/U8"
    • U8
  • "primitive/USize"
    • USize
  • "scripts/MetadataMd"
  • "type/AccountId"
    • AccountId
    • AccountIdOf
  • "type/AccountIndex"
    • AccountIndex
  • "type/Address"
    • Address
  • "type/Amount"
    • Amount
  • "type/AssetOf"
    • AssetOf
  • "type/AttestedCandidate"
    • AttestedCandidate
    • AvailabilityVote
    • BalanceUpload
    • CandidateReceipt
    • CandidateSignature
    • EgressQueueRoot
    • ExplicitCandidateSignature
    • HeadData
    • ImplicitCandidateSignature
    • ValidityAttestation
    • ValidityVote
  • "type/AuthorityId"
    • AuthorityId
  • "type/Balance"
    • Balance
    • BalanceOf
  • "type/Bft"
    • BftAuthoritySignature
    • BftHashSignature
  • "type/Block"
    • Block
  • "type/BlockNumber"
    • BlockNumber
  • "type/ChainProperties"
    • ChainProperties
  • "type/CodeHash"
    • CodeHash
  • "type/Digest"
    • AuthoritiesChange
    • ChangesTrieRoot
    • Digest
    • DigestItem
    • Other
    • Seal
  • "type/Event"
    • Event
    • EventData
    • EventIndex
  • "type/EventRecord"
    • ApplyExtrinsic
    • EventRecord
    • Finalization
    • Phase
  • "type/Extrinsic"
    • Extrinsic
  • "type/ExtrinsicEra"
    • ExtrinsicEra
  • "type/ExtrinsicSignature"
    • ExtrinsicSignature
  • "type/ExtrinsicStatus"
    • Broadcast
    • Dropped
    • ExtrinsicStatus
    • Finalised
    • Future
    • Invalid
    • Ready
    • Usurped
  • "type/Extrinsics"
    • Extrinsics
  • "type/Gas"
    • Gas
  • "type/Hash"
    • Hash
  • "type/Header"
    • Header
    • HeaderExtended
  • "type/Health"
    • Health
  • "type/InherentOfflineReport"
    • InherentOfflineReport
  • "type/Justification"
    • Justification
    • RhdJustification
  • "type/KeyValue"
    • KeyValue
    • KeyValueOption
  • "type/LockPeriods"
    • LocKPeriods
  • "type/MisbehaviorReport"
    • BftAtReport
    • BftDoubleCommit
    • BftDoublePrepare
    • BftDoublePropose
    • BftProposeOutOfTurn
    • MisbehaviorKind
    • MisbehaviorReport
  • "type/NewAccountOutcome"
    • NewAccountOutcome
  • "type/Nonce"
    • Nonce
  • "type/NonceCompact"
    • NonceCompact
  • "type/Origin"
    • Origin
  • "type/ParaId"
    • ParaId
  • "type/PeerInfo"
    • PeerInfo
  • "type/PendingExtrinsics"
    • PendingExtrinsics
  • "type/Perbill"
    • Perbill
  • "type/Permill"
    • Permill
  • "type/PrefabWasmModule"
    • PrefabWasmModule
  • "type/PropIndex"
    • PropIndex
  • "type/Proposal"
    • Proposal
  • "type/ProposalIndex"
    • ProposalIndex
  • "type/ReferendumIndex"
    • ReferendumIndex
  • "type/ReferendumInfo"
    • ReferendumInfo
  • "type/RuntimeVersion"
    • ApiId
    • RuntimeVersion
    • RuntimeVersionApi
  • "type/Schedule"
    • Schedule
  • "type/SeedOf"
    • SeedOf
  • "type/SessionKey"
    • SessionKey
  • "type/Signature"
    • Ed25519Signature
    • Signature
    • Sr25519Signature
  • "type/SignaturePayload"
    • SignaturePayload
  • "type/SignedBlock"
    • SignedBlock
  • "type/StorageChangeSet"
    • StorageChangeSet
  • "type/StoredPendingChange"
    • NextAuthority
    • StoredPendingChange
  • "type/ValidatorPrefs"
    • ValidatorPrefs
  • "type/VestingSchedule"
    • VestingSchedule
  • "type/Vote"
    • Vote
  • "type/VoteIndex"
    • VoteIndex
  • "type/VoteThreshold"
    • VoteThreshold
  • "types"
    • Codec
    • Constructor
    • RuntimeVersionInterface