Documentation ¶
Index ¶
- Constants
- func CreateAccountHandler(cu *custodial.Custodial) func(echo.Context) error
- func EthChecksumValidator(fl validator.FieldLevel) bool
- func SignTransferHandler(cu *custodial.Custodial) func(echo.Context) error
- func TxStatus(store store.Store) func(echo.Context) error
- type ErrResp
- type H
- type OkResp
- type Validator
Constants ¶
View Source
const ( INTERNAL_ERROR = "ERR_INTERNAL" VALIDATION_ERROR = "ERR_VALIDATE" DUPLICATE_ERROR = "ERR_DUPLICATE" )
Variables ¶
This section is empty.
Functions ¶
func CreateAccountHandler ¶
CreateAccountHandler route. POST: /api/account/create Returns the public key.
func EthChecksumValidator ¶
func EthChecksumValidator(fl validator.FieldLevel) bool
func SignTransferHandler ¶
SignTxHandler 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.
Types ¶
Click to show internal directories.
Click to hide internal directories.