Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 751 Bytes

readme.md

File metadata and controls

22 lines (18 loc) · 751 Bytes

Ton sources fetcher example

A reference implementation of a script which:

  1. Fetches the verification contract address for a given code cell hash
  2. Checks whether the contract is deployed, which indicates verification exists
  3. Reads verification data, which is a pointer to a JSON stored in IPFS

Usage

  1. npm install
  2. npm install -g ts-node
  3. ts-node index.ts

Output should be similar to:

> ts-node index.ts
💎 Fetching IPFS link for an existing verified code cell hash
isDeployed EQDQFvw7nKq9YQnz4BeMBBYE5MckM7soy3q8EHV-UwWr4oXC true
IPFS Link ipfs://Qmd4B1Xc6hy4XsEBuRh1kRhfwCXtXfT7fimJAD2fuGdMQJ

💎 Fetching IPFS link for a nonexistent code cell hash
isDeployed EQCbX7RvnHaV148Cc-tnkWpDDju4qksbA_84WyMu-g-kHSJ9 false