Documentation ¶
Index ¶
- Variables
- func EthChecksumValidator(fl validator.FieldLevel) bool
- func HandleAccountCreate(c echo.Context) error
- func HandleSignTransfer(c echo.Context) error
- func HandleTrackTx(c echo.Context) error
- func NewBadRequestError(message ...interface{}) *echo.HTTPError
- type ErrResp
- type H
- type OkResp
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidJSON = errors.New("Invalid JSON structure.")
)
Functions ¶
func EthChecksumValidator ¶
func EthChecksumValidator(fl validator.FieldLevel) bool
func HandleAccountCreate ¶
func HandleAccountCreate(c echo.Context) error
CreateAccountHandler route. POST: /api/account/create Returns the public key.
func HandleSignTransfer ¶
func HandleSignTransfer(c echo.Context) error
HandleSignTransfer route. POST: /api/sign/transfer JSON Body: from -> ETH address to -> ETH address voucherAddress -> ETH address amount -> int (6 d.p. precision) e.g. 1000000 = 1 VOUCHER Returns the task id.
func HandleTrackTx ¶
func HandleTrackTx(c echo.Context) error
HandleTxStatus route. GET: /api/track/:trackingId Route param: trackingId -> tracking UUID Returns array of tx status.
func NewBadRequestError ¶
func NewBadRequestError(message ...interface{}) *echo.HTTPError
Types ¶
Click to show internal directories.
Click to hide internal directories.