go-webapi

command module
v0.0.0-...-69654f0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 9 Imported by: 0

README

Build

make build

Run

make run

or

.go-webapi --config ./go-webapi.config.json

Test

go test ./...

or

curl --location --request POST 'http://localhost:2322/api/v1/sign_transaction/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "gate": "bitcoin",
    "tx": {
        "toAddress": "1Bp9U1ogV3A14FMvKbRJms7ctyso4Z4Tcx",
        "changeAddress": "1FQc5LdgGHMHEN9nwkjmz6tWkxhPpxBvBU",
        "byteFee": 1,
        "amount": 1000000,
        "utxo" : {
            "hash" : "fff7f7881a8099afa6940d42d1e7f6362bec38171ea3edf433541db4e4ad969f",
            "index": 0,
            "sequence": 4294967295,
            "amount": 625000000
        }
    }
}
'

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