Skip to content

Repository to try and play with FastAPI and Smart Contracts

Notifications You must be signed in to change notification settings

adricu/fastapi-play

Repository files navigation

FastAPI framework tests

codecov

This is a toy project to play with FastAPI and some standard smart contracts that can be found in this other GitHub repository.

To make the project work it can point to these already deployed Smart Contracts:

 ERC20 with transparent proxy

It has been deployed to Avalanche test network Fuji and can be found here.

ERC721 with public mint and whitelisting

It has been deployed to Avalanche test network Fuji and can be found here.

Run the server

You have to install all the dependencies with Pipenv and then run:

uvicorn app.main:app --reload

OpenAPI docs

For each version of the API an OpenAPI UI will be exposed in different endpoints. For example the version 1 of the API can be found at:

http://127.0.0.1:8000/api/v1/docs

The general docs that points to the diferent API available versions is at:

http://127.0.0.1:8000/docs

About

Repository to try and play with FastAPI and Smart Contracts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published