Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/functionland/fula-contract-api
Fula API endpoint that interacts with contract api and sugarfunge-api uses
https://github.com/functionland/fula-contract-api
blockchain fula
Last synced: 1 day ago
JSON representation
Fula API endpoint that interacts with contract api and sugarfunge-api uses
- Host: GitHub
- URL: https://github.com/functionland/fula-contract-api
- Owner: functionland
- Created: 2023-07-19T21:43:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-12T18:22:21.000Z (7 months ago)
- Last Synced: 2024-04-13T02:20:33.107Z (7 months ago)
- Topics: blockchain, fula
- Language: Rust
- Homepage: https://contract-api.functionyard.fx.land
- Size: 211 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FULA CONTRACT API
This is the end point that interacts with Fula blockchain contract
## Set up the .env file
Using the .env.example create the .env file and fill the needed values
## LAUNCH THE FULA CONTRACT API
Run the following command
```
cargo run -- --validator-seed ${Validator_seed}
```### Read endpoints
Supply: Consult the total supply of the token
paths: "goerli/supply", "mumbai/supply"Allowance: Consult the current allowance of the given accounts
paths: "goerli/allowance", "mumbai/allowance"### Write endpoints
Mint: Mint tokens to the given account
paths: "goerli/mint", "mumbai/mint"Burn: Burn tokens from the given account if the necessary allowance
paths: "goerli/burn", "mumbai/burn"
Transfer: Transfer the tokens from the given account if the necessary allowance
paths: "goerli/transfer", "mumbai/transfer"
Increase_allowance: Increase the amount of tokens to be able to burn or transfer
paths: "goerli/increase_allowance", "mumbai/increase_allowance"
Decrease_allowance: Decrease the amount of tokens to be able to burn or transfer
paths: "goerli/decrease_allowance", "mumbai/decrease_allowance"