A Node.js application with Express.js framework and ethers.js for Ethereum interactions.
- Express.js web server
- JSON API endpoints
- Health check endpoint
- Environment variable support
- Ethers.js integration for Ethereum blockchain interactions
- EIP-712 typed data signing support
- Node.js (version 14 or higher)
- npm
- Clone the repository or navigate to the project directory
- Install dependencies:
npm install
Start the development server:
npm startOr run directly with Node:
node index.jsThe application will be available at http://localhost:3000
GET /- Welcome messageGET /health- Health check endpointPOST /ethereum/wallet- Create a new Ethereum walletPOST /ethereum/sign-typed-data- Sign EIP-712 typed data
npm start- Start the applicationnpm test- Run tests (to be implemented)npm run dev- Start in development mode with nodemon
PORT- Server port (default: 3000)PRIVATE_KEY- Ethereum private key for signing (optional)
- express - Web framework
- ethers - Ethereum library for interacting with the blockchain
eip712/
├── index.js # Main application file
├── package.json # Project configuration
├── README.md # Project documentation
└── .gitignore # Git ignore file
This project includes ethers.js for:
- Creating and managing Ethereum wallets
- Signing EIP-712 typed data
- Interacting with smart contracts
- Sending transactions
- Reading blockchain data