@talismn/on-chain-id
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-pr1006-20230814044736 • Public • Published

@talismn/on-chain-id

Talisman

license npm-version npm-downloads discord-link

@talismn/on-chain-id is used to query on-chain identifiers for account addresses in Ethereum and Polkadot.

In the case of Ethereum, it is also possible to go the other way (i.e. use the ENS identifier to look up an account address).

For Polkadot identities, this package leans heavily on @talismn/balances, @talismn/chain-connector and associated packages in order to:

  1. Share open RPC connections with other wallet/dapp features, and
  2. Manage chain state queries in a scalable (multi-chain) manner[1].

[1] - At the moment this package downloads the entire chain metdata for one state query (Identity::identityOf).
We have plans to improve the @talismn/mutate-metadata package in order to accomodate for arbitrary state queries in a decentralized manner.
These improvements will enable @talismn/on-chain-id to scale.

For Ethereum identities (ENS), this package uses the @talismn/chain-connector-evm package in order to establish an ethers.js provider to the Ethereum mainnet.

The ENS domain resolution is handled internally by ethers.js, the purpose of @talismn/on-chain-id is just to colocate the Ethereum and Polkadot lookups into one API.

Readme

Keywords

none

Package Sidebar

Install

npm i @talismn/on-chain-id

Homepage

talisman.xyz

Weekly Downloads

841

Version

0.0.0-pr1006-20230814044736

License

GPL-3.0-or-later

Unpacked Size

63.3 kB

Total Files

12

Last publish

Collaborators

  • chrisling-dev
  • tien-talisman
  • 0xkheops
  • jonpdunne
  • warp_lizard
  • alectalisman