Versions in this module Expand all Collapse all v0 v0.0.1 Dec 23, 2020 Changes in this version + type AccountStatus struct + Address string + Balance *big.Int + Nonce []byte + NonceType int + TotalBalance *big.Int + type ApiSDK interface + Broadcast func(txHex string) (string, error) + GetBalance func(address string, chainId uint16, assetsId uint16) (*AccountStatus, error) + GetNodeStatus func() (*NodeStatus, error) + GetTxJson func(txHash string) (string, error) + ValidateTx func(txHex string) (string, error) + func GetApiSDK(apiURL string, chainId uint16, prefix string) ApiSDK + type NerveApiSDK struct + func (sdk *NerveApiSDK) ApiRequest(param *rpc.RequestParam) (*rpc.RequestResult, error) + func (sdk *NerveApiSDK) Broadcast(txHex string) (string, error) + func (sdk *NerveApiSDK) GetBalance(address string, chainId uint16, assetsId uint16) (*AccountStatus, error) + func (sdk *NerveApiSDK) GetNodeStatus() (*NodeStatus, error) + func (sdk *NerveApiSDK) GetTxJson(txHash string) (string, error) + func (sdk *NerveApiSDK) ValidateTx(txhex string) (string, error) + type NervePSSDK struct + func (sdk *NervePSSDK) GetNode(psApiURL string, nodeHash string) (*NodeInfo, error) + type NodeInfo struct + Amount *big.Int + CreditVal float64 + IsBank bool + NodeAddress string + NodeAlias string + NodeHash string + NodeId string + PackingAddress string + RewardAddress string + type NodeStatus struct + InCount int + LocalBestHeight uint64 + NetBestHeight uint64 + OutCount int + type PSSDK interface + GetNode func(psApiURL string, nodeHash string) (*NodeInfo, error) + func GetPSSDK(chainId uint16, prefix string) PSSDK