Squid EVM typegen
Reference page of the squid-evm-typegen command line tool

Installation

The Squid evm typegen tool is part of Subsquid SDK and is used for generating TypeScript interface classes for EVM Application Binary Interfaces.
Note: in the context of this guide, we assume the Development Environment has been already set up and that npm is used, although other options are available.
To install EVM typegen tool, simply run this in a console.
1
npm install @subsquid/substrate-evm-typegen
Copied!
Once installed, check available commands by running
1
npx squid-evm-typegen --help
Copied!
Which will print out a help.

Options for squid-substrate-typegen command

Argument
Description
Required
-h or --help
display help for command
--abi
path to a JSON abi file
yes
--output
path for output typescript file
yes

Example:

1
npx squid-evm-typegen --abi=src/abi/ERC721.json --output=src/abi/erc721.ts
Copied!
For a more in-depth explanation of the subject, head over to the dedicated page and for a practical guide, take a look at the dedicated Recipe.