chaindata icon indicating copy to clipboard operation
chaindata copied to clipboard

Possible improvement

Open tien opened this issue 2 years ago • 1 comments

  • Expose simple REST endpoint accessible both via our internal ID or the chain genesis hash i.e. https://chaindata.talisman.xyz/0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e
  • REST endpoint for exposing static assets
  • Strongly typed TypeScript library similar to https://viem.sh/

Export

import rawChains from "./chain.json"

// Some TypeScript magic ...

Import

import {polkadot} from "@talismn/chaindata"

console.log(polkadot.name) // fully typed as string literal "Polkadot"

tien avatar May 16 '23 02:05 tien

cc @chidg @jonathanpdunne

tien avatar May 16 '23 03:05 tien