A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ yarn install# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prodEnsure the data directory is writable The application requires the data directory to have proper write permissions for saving necessary files.
Ensure the data directory exists and is set as writable.
To Set Write Permissions: On Unix-based systems, you can use the following commands:
mkdir -p data # Create the data directory if it doesn't exist
chmod 775 data # Grant read, write, and execute permissions
chown -R $USER:$USER data # Set the directory owner to the current userThis application uses several environment variables to configure the supported chains, RPC endpoints, contract addresses, and more. Below are the available configuration options:
Configuration File: .env
# Supported Chains
SUPPORT_CHAINIDS=97, 84532
# RPC URLs for the chains
CHANIDS_RPC=https://bsc-testnet-rpc.publicnode.com, https://sepolia.base.org
# Contract Addresses deployed on the respective chains
CONTRACT_ADDRESS=0x7393Ad72e87A0Ec51Bc9fCB783DBc8F24FE63847, 0xd1Cd760135F6f58b6466B95651a97eFcF52Ab2C3
# Starting block numbers for each chain
STRART_BLOCK_NUMBER=45940422, 18388180
# Number of block confirmations for each chain
CONFIRM_BLOCKs=80, 120
# Filler private key for the operations
FILLER_PK=your_private_key_here
A comma-separated list of supported chain IDs that the application will interact with.
A comma-separated list of RPC URLs for the chains. These URLs are used for querying the chain's state.
A comma-separated list of across contract addresses deployed on the supported chains. The application interacts with these contracts for cross-chain operations.
A comma-separated list of starting block numbers for each chain. These are the blocks from which the application will start monitoring.
A comma-separated list of the number of block confirmations required before considering a transaction as confirmed on each chain.
The private key of the filler wallet used for transactions. Important: Keep this key secure and do not expose it in public repositories.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.