Documentation ¶
Index ¶
- Variables
- func GetAccountByID(id uint64) (string, error)
- func GetAccountByName(name string) (*types.Account, error)
- func GetAssetInfoById(assetid uint64) (*types.AssetObject, error)
- func GetAssetInfoByName(assetName string) (*types.AssetObject, error)
- func GetBlockAndResult(number int64) (*types.BlockAndResult, error)
- func GetBlockByNumber(height uint64) (*types.RpcBlock, error)
- func GetCandidatesCount() (uint64, error)
- func GetChainConfig() (*types.ChainConfig, error)
- func GetCode(name string) (hexutil.Bytes, error)
- func GetCurrentBlockInfo() (*types.RpcBlock, error)
- func GetData(method string, outData interface{}, params ...interface{}) error
- func GetDposIrreversible() (*types.DposIrreversible, error)
- func GetFeeResultByTime(time uint64, startFeeID uint64, count uint64) (*types.ObjectFeeResult, error)
- func SendRPCRequest(rpcRequest *RPCRequest) (gc *gabs.Container, err error)
- func SendRPCRequstWithAuth(host string, username string, password string, rpcRequest *RPCRequest) (*gabs.Container, error)
- func SendRawTransaction(rawData string) (types.Hash, error)
- type RPCRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNull = errors.New("result is null")
)
Functions ¶
func GetAccountByID ¶
func GetAssetInfoById ¶
func GetAssetInfoById(assetid uint64) (*types.AssetObject, error)
func GetAssetInfoByName ¶
func GetAssetInfoByName(assetName string) (*types.AssetObject, error)
func GetBlockAndResult ¶
func GetBlockAndResult(number int64) (*types.BlockAndResult, error)
func GetCandidatesCount ¶
func GetChainConfig ¶
func GetChainConfig() (*types.ChainConfig, error)
func GetCurrentBlockInfo ¶
func GetDposIrreversible ¶
func GetDposIrreversible() (*types.DposIrreversible, error)
func GetFeeResultByTime ¶
func SendRPCRequest ¶
func SendRPCRequest(rpcRequest *RPCRequest) (gc *gabs.Container, err error)
func SendRPCRequstWithAuth ¶
Types ¶
type RPCRequest ¶
type RPCRequest struct { JsonRpc string `json:"jsonrpc"` Method string `json:"method"` Params []interface{} `json:"params"` ID int `json:"id"` }
func NewRPCRequest ¶
func NewRPCRequest(jsonRpc string, method string, param ...interface{}) *RPCRequest
Click to show internal directories.
Click to hide internal directories.