Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 478 Bytes

api.md

File metadata and controls

34 lines (23 loc) · 478 Bytes

API documentation

Following is a brief description about the api endpoints available on the faucet, the expected bodies, and the expected responses.

Request coins

endpoint: /api/v1/coins method: POST

Request body

type: application/json data:

{
	"address": "UnlockHash string",
	"amount": "Amount of tokens (unsigned int)| optional (default 300)"
}

Response body

type: application/json data:

{
	"txid": "Transaction ID"
}