-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: supports Astar zkEVM and zKyoto for transfer query (#151)
* fix: removed duplicated service in the container * fix: added Astar zkEVM into TxQueryService * fix: updated readme
- Loading branch information
1 parent
20ad9e4
commit 4c66c15
Showing
6 changed files
with
1,761 additions
and
14 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,18 +1,35 @@ | ||
# Astar Token API | ||
# Astar-Token-API | ||
|
||
### Scripts | ||
This repository provides an API that offers various information about the Astar network. | ||
|
||
## Getting Started | ||
|
||
### API Route | ||
|
||
You can find the API documentation and explore available endpoints using the Swagger UI at [api.astar.network](https://api.astar.network/). | ||
|
||
### Running the Application | ||
|
||
To start the app locally, follow these steps: | ||
|
||
1. Install dependencies: | ||
|
||
```bash | ||
# install all the dependencies | ||
yarn | ||
``` | ||
|
||
# starts the server app in node.js environment | ||
yarn start | ||
# or you can use `yarn serve` | ||
2. Serve the app using Firebase: | ||
|
||
# starts a development server with ts-node | ||
yarn dev | ||
```bash | ||
yarn serve:firebase | ||
``` | ||
|
||
3. Now you can send requests to the local server. For instance: | ||
|
||
# transpile the project for production | ||
yarn build | ||
```bash | ||
http://localhost:5001/astar-token-api/us-central1/app/api/v1/token/price/ASTR | ||
``` | ||
|
||
## Notes | ||
|
||
- **No Hot-Reload**: This application does not support hot-reloading. After making changes to the code, you will need to restart the local server for the changes to take effect. |
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 |
---|---|---|
|
@@ -39,6 +39,11 @@ | |
"ASTR", | ||
"SDN" | ||
] | ||
}, | ||
{ | ||
"name": "currency", | ||
"in": "query", | ||
"type": "string" | ||
} | ||
], | ||
"responses": { | ||
|
Oops, something went wrong.