Versions in this module Expand all Collapse all v0 v0.0.1 Jun 11, 2020 Changes in this version + func CheckAccountIsExist(name common.Name) (bool, error) + func ClientCall(method string, result interface{}, args ...interface{}) error + func DefultURL() string + func GasPrice() (*big.Int, error) + func GetAccountBalanceByID(accountName common.Name, assetID uint64) (*big.Int, error) + func GetAccountByName(name common.Name) (*accountmanager.Account, error) + func GetAssetInfoByName(assetName string) (*asset.AssetObject, error) + func GetBlockAndResult(blockNr rpc.BlockNumber) (*types.BlockAndResult, error) + func GetBlockByNumber(number uint64, fullTx bool) (map[string]interface{}, error) + func GetCurrentBlock(fullTx bool) (map[string]interface{}, error) + func GetDposAccount(name common.Name) (map[string]interface{}, error) + func GetNonce(accountname common.Name) (uint64, error) + func GetObjectFeeByName(objectName common.Name, objectType uint64) (*feemanager.ObjectFee, error) + func GetObjectFeeResult(startObjectFeeID uint64, count uint64, time uint64) (*feemanager.ObjectFeeResult, error) + func GetTransBatch(hashes []common.Hash) ([]*types.RPCTransaction, error) + func GetTransactionByHash(hash common.Hash) (*types.RPCTransaction, error) + func GetTxsByAccount(acctName common.Name, blockNr, lookforwardNum uint64) (*types.AccountTxs, error) + func MustRPCClient() *rpc.Client + func SendRawTx(rawTx []byte) (common.Hash, error) + func SetDefultURL(rpchost string) + type Account struct + func NewAccount(name common.Name, priv *ecdsa.PrivateKey, feeid uint64, nonce uint64, ...) *Account + func (acc *Account) CreateAccount(to common.Name, value *big.Int, id uint64, gas uint64, pubkey common.PubKey) []byte + func (acc *Account) PubKey() common.PubKey + func (acc *Account) RegCandidate(to common.Name, value *big.Int, id uint64, gas uint64, info string, ...) []byte + func (acc *Account) Transfer(to common.Name, value *big.Int, id uint64, gas uint64) []byte + func (acc *Account) UnRegCandidate(to common.Name, value *big.Int, id uint64, gas uint64) []byte + func (acc *Account) UpdateCandidate(to common.Name, value *big.Int, id uint64, gas uint64, info string, ...) []byte + func (acc *Account) VoteCandidate(to common.Name, value *big.Int, id uint64, gas uint64, candidate string, ...) []byte