Documentation ¶
Index ¶
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccountIsExist ¶
CheckAccountIsExist check Account is exist.
func ClientCall ¶
ClientCall Wrapper rpc call api.
func GetAccountBalanceByID ¶
GetAccountBalanceByID get balance by name ,assetID and number.
func GetAccountByName ¶
func GetAccountByName(name common.Name) (*accountmanager.Account, error)
func GetAssetInfoByName ¶
func GetAssetInfoByName(assetName string) (*asset.AssetObject, error)
GetAssetInfoByName get assetINfo by accountName
func GetBlockAndResult ¶ added in v0.0.7
func GetBlockAndResult(blockNr rpc.BlockNumber) (*types.BlockAndResult, error)
func GetBlockByNumber ¶
GetBlockByNumber returns the requested block.
func GetCurrentBlock ¶
GetCurrentBlock returns cureent block.
func GetObjectFeeByName ¶ added in v0.0.8
func GetObjectFeeResult ¶ added in v0.0.8
func GetObjectFeeResult(startObjectFeeID uint64, count uint64, time uint64) (*feemanager.ObjectFeeResult, error)
func GetTransBatch ¶ added in v0.0.27
func GetTransBatch(hashes []common.Hash) ([]*types.RPCTransaction, error)
GetTransBatch returns the transactions for the given hashes
func GetTransactionByHash ¶
func GetTransactionByHash(hash common.Hash) (*types.RPCTransaction, error)
GetTransactionByHash returns the transaction for the given hash
func GetTxsByAccount ¶ added in v0.0.27
func SetDefultURL ¶
func SetDefultURL(rpchost string)
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account
func NewAccount ¶
func (*Account) CreateAccount ¶
func (acc *Account) CreateAccount(to common.Name, value *big.Int, id uint64, gas uint64, pubkey common.PubKey) []byte
CreateAccount
func (*Account) RegCandidate ¶ added in v0.0.8
func (acc *Account) RegCandidate(to common.Name, value *big.Int, id uint64, gas uint64, info string, state *big.Int) []byte
RegCandidate
func (*Account) UnRegCandidate ¶ added in v0.0.8
UnRegCandidate
Click to show internal directories.
Click to hide internal directories.