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/
This is a sample TypeScript project, that uses @polkadot/typegen to generate type definitions for ThreeFold chain
TypeScript
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/