An open API service indexing awesome lists of open source software.

https://github.com/maxstalker/flow-public-endpoints

Call public functions and return public field values stored on Flow Blockchain contracts
https://github.com/maxstalker/flow-public-endpoints

Last synced: 10 months ago
JSON representation

Call public functions and return public field values stored on Flow Blockchain contracts

Awesome Lists containing this project

README

          

# Introduction

Sometimes your app simply needs to read a value from one or several contracts and display it in UI.
Flow Public Endpoints provide you this information by pulling it from chain using available Access
nodes.

Terminals can be used to fetch value without installing any extra dependencies.

# How to use

Send `POST` request with following fields in the body:

- ~~network~~ _(currently only mainnet supported)_
- contract name
- address
- list of arguments

## Flovatar `getComponent`

```bash
curl --request POST \
--url https://flow-public-endpoints.onrender.com/mainnet/0x921ea449dffec68a/FlovatarComponent/getComponent \
--header 'Content-Type: application/json' \
--data '{
"args": [
{
"type": "Address",
"value": "0x309c72eaa414cdc5"
},
{
"type": "UInt64",
"value": "62028"
}
]
}'
```

## FlovatarComponent `totalSupply`
```bash
curl --request POST \
--url https://flow-public-endpoints.onrender.com/mainnet/0x921ea449dffec68a/FlovatarComponent/totalSupply \
--header 'Content-Type: application/json' \
--data '{}'
```