Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-25T18:30:15.000Z (5 months ago)
- Last Synced: 2024-12-11T02:08:57.149Z (2 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
[![Bun Badge](https://img.shields.io/badge/Bun-000?logo=bun&logoColor=fff&style=for-the-badge)](https://bun.sh/)
[![Elysia Badge](https://img.shields.io/badge/ElysiaJS-000?logo=bun&logoColor=fff&style=for-the-badge)](https://elysiajs.com/)
[![Ethers Badge](https://img.shields.io/badge/Ethers-2535A0?logo=ethers&logoColor=fff&style=for-the-badge)](https://docs.ethers.org/v6/)
[![Hardhat Badge](https://img.shields.io/badge/Hardhat-3C3C3D?logo=ethereum&logoColor=fff&style=for-the-badge)](https://hardhat.org/)
[![Solidity Badge](https://img.shields.io/badge/Solidity-363636?logo=solidity&logoColor=fff&style=for-the-badge)](https://soliditylang.org/)
[![TypeScript Badge](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=fff&style=for-the-badge)](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
```