npm @polkadot/api 4.0.1
v4.0.1

latest releases: 11.0.2, 11.0.1, 10.13.1...
3 years ago

Upgrade priority: Low. Recommended for users wanting to keep updated with chain changes.

Important In the 4.0 version the default package type has been changed to ESM modules by default. This should not affect usage, however since the output formats changed, a new major version is required.

Contributed:

Changes:

  • Build to ESM by default (with cjs versions via export map)
  • Enum .toSON() now encodes all keys as camelCase (aligning with the output from Substrate)
  • Add createdAtHash?: Hash to Codec interface (filled-in by storage retrievals)
  • Expose the source hash as wamHash on Abi parsed instances
  • Use parentHash when creating mortal era (handles frequent forks better)
  • Add AccountInfoWithTripleRefCount to cater for latest Substrate
  • Add upgrade block for Westend 49

Don't miss a new api release

NewReleases is sending notifications on new releases.