/tfchain_types

This is a sample TypeScript project, that uses @polkadot/typegen to generate type definitions for ThreeFold chain

Primary LanguageTypeScript

To generate endpoint file, fetch metadata from the chain using:

curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' -o testing.json https://tfchain.dev.grid.tf/