Versions in this module Expand all Collapse all v1 v1.0.0 Jul 13, 2019 Changes in this version + func DataEncoder(bytes []byte) hexutil.Bytes + func GetAPIs(apiBackend Backend) []rpc.API + func IDDecoder(bytes []byte) (ethCommon.Hash, uint32, error) + func IDEncoder(hashByte []byte, fullShardKey uint32) hexutil.Bytes + type Backend interface + AddTransaction func(tx *types.Transaction) error + CreateTransactions func(numTxPerShard, xShardPercent uint32, tx *types.Transaction) error + CurrentBlock func() *types.RootBlock + EstimateGas func(tx *types.Transaction, address *account.Address) (uint32, error) + ExecuteTransaction func(tx *types.Transaction, address *account.Address, height *uint64) ([]byte, error) + GasPrice func(branch account.Branch) (uint64, error) + GetAccountData func(address *account.Address, height *uint64) (map[uint32]*qkcRPC.AccountBranchData, error) + GetBlockCount func() (map[uint32]map[account.Recipient]uint32, error) + GetClusterConfig func() *config.ClusterConfig + GetCode func(address *account.Address, height *uint64) ([]byte, error) + GetLastMinorBlockByFullShardID func(fullShardId uint32) (uint64, error) + GetLogs func(branch account.Branch, address []account.Address, topics [][]common.Hash, ...) ([]*types.Log, error) + GetMinorBlockByHash func(blockHash common.Hash, branch account.Branch) (*types.MinorBlock, error) + GetMinorBlockByHeight func(height *uint64, branch account.Branch) (*types.MinorBlock, error) + GetPeers func() []qkcRPC.PeerInfoForDisPlay + GetPrimaryAccountData func(address *account.Address, blockHeight *uint64) (*qkcRPC.AccountBranchData, error) + GetRootBlockByHash func(hash common.Hash) (*types.RootBlock, error) + GetRootBlockByNumber func(blockNr *uint64) (*types.RootBlock, error) + GetSlavePoolLen func() int + GetStats func() (map[string]interface{}, error) + GetStorageAt func(address *account.Address, key common.Hash, height *uint64) (common.Hash, error) + GetTransactionByHash func(txHash common.Hash, branch account.Branch) (*types.MinorBlock, uint32, error) + GetTransactionReceipt func(txHash common.Hash, branch account.Branch) (*types.MinorBlock, uint32, *types.Receipt, error) + GetTransactionsByAddress func(address *account.Address, start []byte, limit uint32) ([]*qkcRPC.TransactionDetail, []byte, error) + GetWork func(branch account.Branch) (*consensus.MiningWork, error) + IsMining func() bool + IsSyncing func() bool + NetWorkInfo func() map[string]interface{} + SetMining func(mining bool) + SetTargetBlockTime func(rootBlockTime *uint32, minorBlockTime *uint32) error + SubmitWork func(branch account.Branch, headerHash common.Hash, nonce uint64, ...) (bool, error) + type CallArgs struct + Data hexutil.Bytes + From *account.Address + Gas hexutil.Big + GasPrice hexutil.Big + To *account.Address + Value hexutil.Big + type CreateTxArgs struct + Data hexutil.Bytes + FromFullShardKey hexutil.Uint + Gas *hexutil.Big + GasPrice *hexutil.Big + NumTxPreShard hexutil.Uint + To common.Address + Value *hexutil.Big + XShardPrecent hexutil.Uint + type FilterQuery struct + Addresses []account.Address + FromBlock *big.Int + ToBlock *big.Int + Topics [][]common.Hash + func (args *FilterQuery) UnmarshalJSON(data []byte) error + type PrivateBlockChainAPI struct + func NewPrivateBlockChainAPI(b Backend) *PrivateBlockChainAPI + func (p *PrivateBlockChainAPI) CreateTransactions(NumTxPreShard hexutil.Uint) error + func (p *PrivateBlockChainAPI) GetBlockCount() (map[string]interface{}, error) + func (p *PrivateBlockChainAPI) GetJrpcCalls() + func (p *PrivateBlockChainAPI) GetNextblocktomine() + func (p *PrivateBlockChainAPI) GetPeers() map[string]interface{} + func (p *PrivateBlockChainAPI) GetStats() (map[string]interface{}, error) + func (p *PrivateBlockChainAPI) GetSyncStats() + func (p *PrivateBlockChainAPI) SetMining(flag bool) + func (p *PrivateBlockChainAPI) SetTargetBlockTime(rootBlockTime *uint32, minorBlockTime *uint32) error + type PublicBlockChainAPI struct + func NewPublicBlockChainAPI(b Backend) *PublicBlockChainAPI + func (p *PublicBlockChainAPI) Call(data CallArgs, blockNr *rpc.BlockNumber) (hexutil.Bytes, error) + func (p *PublicBlockChainAPI) CallOrEstimateGas(args *CallArgs, height *uint64, isCall bool) (hexutil.Bytes, error) + func (p *PublicBlockChainAPI) EchoData(data hexutil.Big) *hexutil.Big + func (p *PublicBlockChainAPI) Echoquantity(data hexutil.Big) *hexutil.Big + func (p *PublicBlockChainAPI) EstimateGas(data CallArgs) ([]byte, error) + func (p *PublicBlockChainAPI) GasPrice(fullShardKey uint32) (hexutil.Uint64, error) + func (p *PublicBlockChainAPI) GetAccountData(address account.Address, blockNr *rpc.BlockNumber, includeShards *bool) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetBalances(address account.Address, blockNr *rpc.BlockNumber) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetCode(address account.Address, blockNr *rpc.BlockNumber) (hexutil.Bytes, error) + func (p *PublicBlockChainAPI) GetLogs(args *FilterQuery, fullShardKey hexutil.Uint) ([]map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetMinorBlockByHeight(fullShardKeyInput hexutil.Uint, heightInput *hexutil.Uint64, includeTxs *bool) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetMinorBlockById(blockID hexutil.Bytes, includeTxs *bool) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetRootBlockByHash(hash common.Hash) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetRootBlockByHeight(heightInput *hexutil.Uint64) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetStorageAt(address account.Address, key common.Hash, blockNr *rpc.BlockNumber) (hexutil.Bytes, error) + func (p *PublicBlockChainAPI) GetTransactionById(txID hexutil.Bytes) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetTransactionCount(address account.Address, blockNr *rpc.BlockNumber) (hexutil.Uint64, error) + func (p *PublicBlockChainAPI) GetTransactionReceipt(txID hexutil.Bytes) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetTransactionsByAddress(address account.Address, start *hexutil.Bytes, limit *hexutil.Uint) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) GetWork(fullShardKey *hexutil.Uint) ([]common.Hash, error) + func (p *PublicBlockChainAPI) NetVersion() hexutil.Uint + func (p *PublicBlockChainAPI) NetworkInfo() map[string]interface{} + func (p *PublicBlockChainAPI) QkcCall() + func (p *PublicBlockChainAPI) QkcEstimategas() + func (p *PublicBlockChainAPI) QkcGetbalance() + func (p *PublicBlockChainAPI) QkcGetblockbynumber(blockNumber rpc.BlockNumber, includeTx bool) (map[string]interface{}, error) + func (p *PublicBlockChainAPI) QkcGetcode() + func (p *PublicBlockChainAPI) QkcGetlogs() + func (p *PublicBlockChainAPI) QkcGetstorageat() + func (p *PublicBlockChainAPI) QkcGettransactioncount() + func (p *PublicBlockChainAPI) QkcGettransactionreceipt() + func (p *PublicBlockChainAPI) QkcQkcGasprice(fullShardKey uint32) (hexutil.Uint64, error) + func (p *PublicBlockChainAPI) QkcSendrawtransaction() + func (p *PublicBlockChainAPI) SendRawTransaction(encodedTx hexutil.Bytes) (hexutil.Bytes, error) + func (p *PublicBlockChainAPI) SendTransaction(args SendTxArgs) (hexutil.Bytes, error) + func (p *PublicBlockChainAPI) SubmitWork(fullShardKey *hexutil.Uint, headHash common.Hash, nonce hexutil.Uint64, ...) (bool, error) + type SendTxArgs struct + Data *hexutil.Bytes + From common.Address + FromFullShardKey *hexutil.Uint + Gas *hexutil.Big + GasPrice *hexutil.Big + NetWorkID *hexutil.Uint + Nonce *hexutil.Uint64 + R *hexutil.Big + S *hexutil.Big + To *common.Address + ToFullShardKey *hexutil.Uint + V *hexutil.Big + Value *hexutil.Big