Skip to content

Commit

Permalink
removed unused routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Aug 31, 2024
1 parent b1ec6a6 commit 467125c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 86 deletions.
24 changes: 0 additions & 24 deletions app/api/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
# Build Onchain API Routes

## Supported Chains /api/chains/supported

**Method**: GET

**Response**: JSON encoded viem chain object

```json
[{"id":5,"network":"sepolia","name":"Sepolia"]
```

## Current Block Number /api/chain/blockNumber?chainId=5

Gets the current blocknumber from the backend. This might be used to ensure
your frontend has consistency with the backend (e.g what if the drift
between FE and BE).

**Method**: GET

**Response**: JSON encoded block number

```json
{ "block": "13948678" }
```
39 changes: 0 additions & 39 deletions app/api/chain/currentBlockNumber/route.ts

This file was deleted.

23 changes: 0 additions & 23 deletions app/api/chains/supported/route.ts

This file was deleted.

0 comments on commit 467125c

Please sign in to comment.