Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + const BlockBodiesMsg + const BlockHashesMsg + const BlockHeadersMsg + const BlocksMsg + const ErrDecode + const ErrExtraStatusMsg + const ErrGenesisBlockMismatch + const ErrInvalidMsgCode + const ErrMsgTooLarge + const ErrNetworkIdMismatch + const ErrNoStatusMsg + const ErrProtocolVersionMismatch + const ErrSuspendedPeer + const GetBlockBodiesMsg + const GetBlockHashesFromNumberMsg + const GetBlockHashesMsg + const GetBlockHeadersMsg + const GetBlocksMsg + const GetNodeDataMsg + const GetReceiptsMsg + const NetworkId + const NewBlockHashesMsg + const NewBlockMsg + const NodeDataMsg + const ProtocolMaxMsgSize + const ReceiptsMsg + const StatusMsg + const TxMsg + var ProtocolLengths = []uint64 + var ProtocolName = "eth" + var ProtocolVersions = []uint + func GPUBench(gpuid uint64) + func PrintOpenCLDevices() + type CallArgs struct + Data string + From common.Address + Gas rpc.HexNumber + GasPrice rpc.HexNumber + To common.Address + Value rpc.HexNumber + type Config struct + AccountManager *accounts.Manager + AutoDAG bool + BlockChainVersion int + DatabaseCache int + DocRoot string + Etherbase common.Address + ExtraData []byte + FastSync bool + GasPrice *big.Int + Genesis string + GpoFullBlockRatio int + GpoMaxGasPrice *big.Int + GpoMinGasPrice *big.Int + GpobaseCorrectionFactor int + GpobaseStepDown int + GpobaseStepUp int + MinerThreads int + NatSpec bool + NetworkId int + PowTest bool + SkipBcVersionCheck bool + SolcPath string + TestGenesisBlock *types.Block + TestGenesisState ethdb.Database + type EthNodeInfo struct + Difficulty *big.Int + Genesis common.Hash + Head common.Hash + Network int + type Ethereum struct + AutoDAG bool + GpoFullBlockRatio int + GpoMaxGasPrice *big.Int + GpoMinGasPrice *big.Int + GpobaseCorrectionFactor int + GpobaseStepDown int + GpobaseStepUp int + MinerThreads int + Mining bool + NatSpec bool + PowTest bool + SolcPath string + func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) + func (s *Ethereum) APIs() []rpc.API + func (s *Ethereum) AccountManager() *accounts.Manager + func (s *Ethereum) BlockChain() *core.BlockChain + func (s *Ethereum) ChainDb() ethdb.Database + func (s *Ethereum) DappDb() ethdb.Database + func (s *Ethereum) Downloader() *downloader.Downloader + func (s *Ethereum) EthVersion() int + func (s *Ethereum) Etherbase() (eb common.Address, err error) + func (s *Ethereum) EventMux() *event.TypeMux + func (s *Ethereum) IsListening() bool + func (s *Ethereum) IsMining() bool + func (s *Ethereum) Miner() *miner.Miner + func (s *Ethereum) NetVersion() int + func (s *Ethereum) Protocols() []p2p.Protocol + func (s *Ethereum) ResetWithGenesisBlock(gb *types.Block) + func (s *Ethereum) Start(srvr *p2p.Server) error + func (s *Ethereum) StartMining(threads int, gpus string) error + func (s *Ethereum) Stop() error + func (s *Ethereum) StopMining() + func (s *Ethereum) TxPool() *core.TxPool + func (s *Ethereum) WaitForShutdown() + func (self *Ethereum) HTTPClient() *httpclient.HTTPClient + func (self *Ethereum) SetEtherbase(etherbase common.Address) + func (self *Ethereum) SetSolc(solcPath string) (*compiler.Solidity, error) + func (self *Ethereum) Solc() (*compiler.Solidity, error) + func (self *Ethereum) StartAutoDAG() + func (self *Ethereum) StopAutoDAG() + type GasPriceOracle struct + func NewGasPriceOracle(eth *Ethereum) *GasPriceOracle + func (self *GasPriceOracle) SuggestPrice() *big.Int + type NewBlocksArgs struct + IncludeTransactions bool + TransactionDetails bool + type PeerInfo struct + Difficulty *big.Int + Head string + Version int + type PrivateAccountAPI struct + func NewPrivateAccountAPI(am *accounts.Manager) *PrivateAccountAPI + func (s *PrivateAccountAPI) ListAccounts() ([]common.Address, error) + func (s *PrivateAccountAPI) LockAccount(addr common.Address) bool + func (s *PrivateAccountAPI) NewAccount(password string) (common.Address, error) + func (s *PrivateAccountAPI) UnlockAccount(addr common.Address, password string, duration int) bool + type PrivateAdminAPI struct + func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI + func (api *PrivateAdminAPI) ExportChain(file string) (bool, error) + func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) + func (api *PrivateAdminAPI) SetSolc(path string) (string, error) + type PrivateDebugAPI struct + func NewPrivateDebugAPI(eth *Ethereum) *PrivateDebugAPI + func (api *PrivateDebugAPI) ProcessBlock(number uint64) (bool, error) + func (api *PrivateDebugAPI) SetHead(number uint64) + type PrivateMinerAPI struct + func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI + func (s *PrivateMinerAPI) MakeDAG(blockNr rpc.BlockNumber) (bool, error) + func (s *PrivateMinerAPI) SetEtherbase(etherbase common.Address) bool + func (s *PrivateMinerAPI) SetExtra(extra string) (bool, error) + func (s *PrivateMinerAPI) SetGasPrice(gasPrice rpc.Number) bool + func (s *PrivateMinerAPI) Start(threads rpc.HexNumber) (bool, error) + func (s *PrivateMinerAPI) StartAutoDAG() bool + func (s *PrivateMinerAPI) Stop() bool + func (s *PrivateMinerAPI) StopAutoDAG() bool + type ProtocolManager struct + SubProtocols []p2p.Protocol + func NewProtocolManager(fastSync bool, networkId int, mux *event.TypeMux, txpool txPool, pow pow.PoW, ...) (*ProtocolManager, error) + func (pm *ProtocolManager) BroadcastBlock(block *types.Block, propagate bool) + func (pm *ProtocolManager) BroadcastTx(hash common.Hash, tx *types.Transaction) + func (pm *ProtocolManager) Start() + func (pm *ProtocolManager) Stop() + func (self *ProtocolManager) NodeInfo() *EthNodeInfo + type PublicAccountAPI struct + func NewPublicAccountAPI(am *accounts.Manager) *PublicAccountAPI + func (s *PublicAccountAPI) Accounts() ([]accounts.Account, error) + type PublicBlockChainAPI struct + func NewPublicBlockChainAPI(bc *core.BlockChain, m *miner.Miner, chainDb ethdb.Database, ...) *PublicBlockChainAPI + func (s *PublicBlockChainAPI) BlockNumber() *big.Int + func (s *PublicBlockChainAPI) Call(args CallArgs, blockNr rpc.BlockNumber) (string, error) + func (s *PublicBlockChainAPI) EstimateGas(args CallArgs) (*rpc.HexNumber, error) + func (s *PublicBlockChainAPI) GetBalance(address common.Address, blockNr rpc.BlockNumber) (*big.Int, error) + func (s *PublicBlockChainAPI) GetBlockByHash(blockHash common.Hash, fullTx bool) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetBlockByNumber(blockNr rpc.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetCode(address common.Address, blockNr rpc.BlockNumber) (string, error) + func (s *PublicBlockChainAPI) GetData(address common.Address, blockNr rpc.BlockNumber) (string, error) + func (s *PublicBlockChainAPI) GetStorageAt(address common.Address, key string, blockNr rpc.BlockNumber) (string, error) + func (s *PublicBlockChainAPI) GetUncleByBlockHashAndIndex(blockHash common.Hash, index rpc.HexNumber) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetUncleByBlockNumberAndIndex(blockNr rpc.BlockNumber, index rpc.HexNumber) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetUncleCountByBlockHash(blockHash common.Hash) *rpc.HexNumber + func (s *PublicBlockChainAPI) GetUncleCountByBlockNumber(blockNr rpc.BlockNumber) *rpc.HexNumber + func (s *PublicBlockChainAPI) NewBlocks(args NewBlocksArgs) (rpc.Subscription, error) + type PublicDebugAPI struct + func NewPublicDebugAPI(eth *Ethereum) *PublicDebugAPI + func (api *PublicDebugAPI) DumpBlock(number uint64) (state.World, error) + func (api *PublicDebugAPI) GetBlockRlp(number uint64) (string, error) + func (api *PublicDebugAPI) PrintBlock(number uint64) (string, error) + func (api *PublicDebugAPI) SeedHash(number uint64) (string, error) + type PublicEthereumAPI struct + func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI + func (s *PublicEthereumAPI) Coinbase() (common.Address, error) + func (s *PublicEthereumAPI) CompileSolidity(source string) (map[string]*compiler.Contract, error) + func (s *PublicEthereumAPI) Etherbase() (common.Address, error) + func (s *PublicEthereumAPI) GasPrice() *big.Int + func (s *PublicEthereumAPI) GetCompilers() ([]string, error) + func (s *PublicEthereumAPI) Hashrate() *rpc.HexNumber + func (s *PublicEthereumAPI) ProtocolVersion() *rpc.HexNumber + func (s *PublicEthereumAPI) Syncing() (interface{}, error) + type PublicNetAPI struct + func NewPublicNetAPI(net *p2p.Server, networkVersion int) *PublicNetAPI + func (s *PublicNetAPI) Listening() bool + func (s *PublicNetAPI) PeerCount() *rpc.HexNumber + func (s *PublicNetAPI) Version() string + type PublicTransactionPoolAPI struct + func NewPublicTransactionPoolAPI(txPool *core.TxPool, m *miner.Miner, chainDb ethdb.Database, ...) *PublicTransactionPoolAPI + func (s *PublicTransactionPoolAPI) GetBlockTransactionCountByHash(blockHash common.Hash) *rpc.HexNumber + func (s *PublicTransactionPoolAPI) GetBlockTransactionCountByNumber(blockNr rpc.BlockNumber) *rpc.HexNumber + func (s *PublicTransactionPoolAPI) GetTransactionByBlockHashAndIndex(blockHash common.Hash, index rpc.HexNumber) (*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) GetTransactionByBlockNumberAndIndex(blockNr rpc.BlockNumber, index rpc.HexNumber) (*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) GetTransactionByHash(txHash common.Hash) (*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) GetTransactionCount(address common.Address, blockNr rpc.BlockNumber) (*rpc.HexNumber, error) + func (s *PublicTransactionPoolAPI) GetTransactionReceipt(txHash common.Hash) (map[string]interface{}, error) + func (s *PublicTransactionPoolAPI) NewPendingTransactions() (rpc.Subscription, error) + func (s *PublicTransactionPoolAPI) PendingTransactions() ([]*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) Resend(tx *Tx, gasPrice, gasLimit *rpc.HexNumber) (common.Hash, error) + func (s *PublicTransactionPoolAPI) SendRawTransaction(encodedTx string) (string, error) + func (s *PublicTransactionPoolAPI) SendTransaction(args SendTxArgs) (common.Hash, error) + func (s *PublicTransactionPoolAPI) Sign(address common.Address, data string) (string, error) + func (s *PublicTransactionPoolAPI) SignTransaction(args *SignTransactionArgs) (*SignTransactionResult, error) + type PublicTxPoolAPI struct + func NewPublicTxPoolAPI(e *Ethereum) *PublicTxPoolAPI + func (s *PublicTxPoolAPI) Status() map[string]*rpc.HexNumber + type RPCTransaction struct + BlockHash common.Hash + BlockNumber *rpc.HexNumber + From common.Address + Gas *rpc.HexNumber + GasPrice *rpc.HexNumber + Hash common.Hash + Input string + Nonce *rpc.HexNumber + To *common.Address + TransactionIndex *rpc.HexNumber + Value *rpc.HexNumber + type SendTxArgs struct + Data string + From common.Address + Gas *rpc.HexNumber + GasPrice *rpc.HexNumber + Nonce *rpc.HexNumber + To common.Address + Value *rpc.HexNumber + type SignTransactionArgs struct + BlockNumber int64 + Data string + From common.Address + Gas *rpc.HexNumber + GasPrice *rpc.HexNumber + Nonce *rpc.HexNumber + To common.Address + Value *rpc.HexNumber + type SignTransactionResult struct + Raw string + Tx *Tx + type Tx struct + Data string + From common.Address + GasLimit *rpc.HexNumber + GasPrice *rpc.HexNumber + Hash common.Hash + Nonce *rpc.HexNumber + To *common.Address + Value *rpc.HexNumber + func (tx *Tx) UnmarshalJSON(b []byte) (err error)