backend

command module
v0.0.0-...-2bd1979 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 14 Imported by: 0

README

Rei Airdrop Backend

Docker

$ make docker

Deploy

$ make deploy

APIs

  • List
$ http post https://airdrop.reichain.io/api/list address=ADDRESS
HTTP/1.1 200 OK
Content-Length: XXX
Content-Type: application/json; charset=utf-8
Vary: Accept-Encoding

{
    "ok": true,
    "result": {
        "address": "ADDRESS",
        "orders": [
            {
                "address": "ADDRESS",
                "amount": "AMOUNT IN WEI",
                "detail": "AIRDROP DETAIL",
                "expires_at": "RFC3339 TIMESTAMP",
                "id": "ID",
                "unlock_at": "RFC3339 TIMESTAMP"
            }
        ]
    }
}
  • Claim
http post https://airdrop.reichain.io/api/claim address=ADDRESS id=ID
HTTP/1.1 200 OK
Content-Length: XXX
Content-Type: application/json; charset=utf-8
Vary: Accept-Encoding

{
    "ok": true,
    "result": {
        "address": "ADDRESS",
        "amount": "AMOUNT IN WEI",
        "deadline": UNIX TIME,
        "id": "ID",
        "signature": "SIGNATURE"
    }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL