Documentation ¶
Index ¶
- Variables
- func HandleAccountCreate(cu *custodial.Custodial) func(echo.Context) error
- func HandleNetworkAccountStatus(cu *custodial.Custodial) func(echo.Context) error
- func HandleSignTransfer(cu *custodial.Custodial) func(echo.Context) error
- func HandleTrackTx(cu *custodial.Custodial) func(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 HandleAccountCreate ¶
HandleAccountCreate godoc @Summary Create a new custodial account. @Description Create a new custodial account. @Accept */* @Produce json @Success 200 {object} map[string]interface{} @Router / [post]
func HandleSignTransfer ¶
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 ¶
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.