https://github.com/tr1sm0s1n/elysia-ethers-api
Simple Elysia API for interaction with the Ethereum blockchain.
https://github.com/tr1sm0s1n/elysia-ethers-api
api bun dapp elysia ethereum ethersjs hardhat smart-contracts solidity typescript
Last synced: 3 months ago
JSON representation
Simple Elysia API for interaction with the Ethereum blockchain.
- Host: GitHub
- URL: https://github.com/tr1sm0s1n/elysia-ethers-api
- Owner: tr1sm0s1n
- Created: 2023-07-26T16:53:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T18:30:15.000Z (10 months ago)
- Last Synced: 2024-12-11T02:08:57.149Z (7 months ago)
- Topics: api, bun, dapp, elysia, ethereum, ethersjs, hardhat, smart-contracts, solidity, typescript
- Language: TypeScript
- Homepage:
- Size: 251 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elysia-Ethers-API
Simple Elysia API for interaction with the Ethereum blockchain.
## 🛠 Built With
[](https://bun.sh/)
[](https://elysiajs.com/)
[](https://docs.ethers.org/v6/)
[](https://hardhat.org/)
[](https://soliditylang.org/)
[](https://www.typescriptlang.org/)## ⚙️ Run Locally
Clone the project:
```bash
git clone https://github.com/tr1sm0s1n/elysia-ethers-api.git
cd elysia-ethers-api
```Install Bun:
```bash
curl -fsSL https://bun.sh/install | bash
```Install dependencies:
```bash
bun install
```Run Hardhat simulated node on port **8545**:
```bash
bun run node
```Deploy the contract (new terminal):
```bash
bun run deploy
```Start the application:
```bash
bun run dev
```Issue a certificate (new terminal):
```bash
curl -X POST http://localhost:3000/issue -H "Content-Type: application/json" -d '{"id": 9, "name": "Langley", "course": "MBCC", "grade": "A", "date": "01-02-03"}'
```Fetch a certificate:
```bash
curl http://localhost:3000/fetch/9
```