-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
0 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.