Documentation ¶
Index ¶
- func DefaultHandler(method, pattern string, params map[string]int, handlers ...apiHandle) hr.Handle
- func InitSmartContract(sc *smart.SmartContract, data []byte) error
- func Route(route *hr.Router)
- func VDEContract(contractData []byte, data *apiData) (result *contractResult, err error)
- type EncryptKey
- type GetBlockInfoResult
- type GetMaxBlockIDResult
- type JWTClaims
- type SignRes
- type TxSignJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHandler ¶
DefaultHandler is a common handle function for api requests
func InitSmartContract ¶
func InitSmartContract(sc *smart.SmartContract, data []byte) error
InitSmartContract is initializes smart contract
func VDEContract ¶
VDEContract is init VDE contract
Types ¶
type EncryptKey ¶
type EncryptKey struct { Encrypted string `json:"encrypted"` //hex Public string `json:"public"` //hex WalletID int64 `json:"wallet_id"` Address string `json:"address"` Error string `json:"error"` }
EncryptKey is a structure for the answer of ajax_encrypt_key ajax request
type GetBlockInfoResult ¶
type GetMaxBlockIDResult ¶
type GetMaxBlockIDResult struct {
MaxBlockID int64 `json:"max_block_id"`
}
type JWTClaims ¶
type JWTClaims struct { UID string `json:"uid,omitempty"` EcosystemID string `json:"ecosystem_id,omitempty"` KeyID string `json:"key_id,omitempty"` jwt.StandardClaims }
JWTClaims is storing jwt claims
Source Files ¶
- api.go
- auth.go
- balance.go
- block.go
- content.go
- contract.go
- contracts.go
- data.go
- ecosystemparam.go
- ecosystemparams.go
- ecosystems.go
- errors.go
- getcontract.go
- getuid.go
- history.go
- install.go
- list.go
- login.go
- node.go
- options.go
- prepare.go
- refresh.go
- route.go
- row.go
- smart.go
- systemparams.go
- table.go
- tables.go
- test.go
- txstatus.go
- vde.go
Click to show internal directories.
Click to hide internal directories.