Categorygithub.com/EXCCoin/exccwebapi
modulepackage
0.0.0-20230411100700-b26a26f15dcd
Repository: https://github.com/exccoin/exccwebapi.git
Documentation: pkg.go.dev

# README

exccwebapi

Build Status ISC License

exccwebapi implements a simple HTTP API which provides summary data about the ExchangeCoin blockchain and ecosystem. Some data such as a list of Voting Service Providers is hard-coded, and some is collected from external sources such as GitHub and exccdata.

Voting Service Providers

Data from exccwebapi is used to populate the VSP list of both decred.org and Exilibrium.

To add a new VSP to the API, VSP operators must open a pull request on this repository after following the operator guidelines and coordinating with the ExchangeCoin community.

API

API calls are documented in api.md.

Docker

To build the image:

docker build -t exccco/exccwebapi .

By default, the container exposes port 8080. To run the image:

docker run --rm -d -p [local port]:8080 exccco/exccwebapi

License

exccwebapi is licensed under the copyfree ISC License.

# Functions

NewService creates a new dcrwebapi service.
NormalizeBuildString returns the passed string stripped of all characters which are not valid according to the semantic versioning guidelines for build metadata strings.

# Constants

StakepoolAPICurrentVersion is the current stakepool API version.
StakepoolAPIInitialVersion is the initial stakepool API version.

# Structs

Service represents a dcrweb service.
Stakepool represents a decred stakepool solely for voting delegation.
Vsp contains information about a single Voting Service Provider.

# Type aliases

StakepoolSet represents a collection of stakepools.