Skip to content

Commit

Permalink
Merge pull request #370 from AlanViast/enhancement/index-example-typo
Browse files Browse the repository at this point in the history
add dotent dependencies and fix typo
  • Loading branch information
abernatskiy authored Mar 7, 2024
2 parents 5f6d165 + 7cf6b9b commit bff2c98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/sdk/how-to-start/squid-from-scratch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ To make the indexer, follow these steps:
npm i typescript @subsquid/typeorm-codegen @subsquid/evm-typegen --save-dev
```

* install dotenv package
```bash
npm i dotenv --save
```

2. Add a minimal `tsconfig.json`:
```json title="tsconfig.json"
{
Expand Down Expand Up @@ -126,7 +131,7 @@ To make the indexer, follow these steps:
.setGateway(lookupArchive('eth-mainnet'))
.setRpcEndpoint({
// set RPC endpoint in .env
url: process.env.RPC_ETH_HTTP`,
url: process.env.RPC_ETH_HTTP,
rateLimit: 10
})
.setFinalityConfirmation(75) // 15 mins to finality
Expand Down

0 comments on commit bff2c98

Please sign in to comment.