Versions in this module Expand all Collapse all v1 v1.5.1 Nov 16, 2016 Changes in this version + func GetAPIs(apiBackend Backend, solcPath string) []rpc.API + type Backend interface + AccountManager func() *accounts.Manager + BlockByNumber func(ctx context.Context, blockNr rpc.BlockNumber) (*types.Block, error) + ChainConfig func() *params.ChainConfig + ChainDb func() ethdb.Database + CurrentBlock func() *types.Block + Downloader func() *downloader.Downloader + EventMux func() *event.TypeMux + GetBlock func(ctx context.Context, blockHash common.Hash) (*types.Block, error) + GetPoolNonce func(ctx context.Context, addr common.Address) (uint64, error) + GetPoolTransaction func(txHash common.Hash) *types.Transaction + GetPoolTransactions func() types.Transactions + GetReceipts func(ctx context.Context, blockHash common.Hash) (types.Receipts, error) + GetTd func(blockHash common.Hash) *big.Int + GetVMEnv func(ctx context.Context, msg core.Message, state State, header *types.Header) (vm.Environment, func() error, error) + HeaderByNumber func(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) + ProtocolVersion func() int + RemoveTx func(txHash common.Hash) + SendTx func(ctx context.Context, signedTx *types.Transaction) error + SetHead func(number uint64) + StateAndHeaderByNumber func(ctx context.Context, blockNr rpc.BlockNumber) (State, *types.Header, error) + Stats func() (pending int, queued int) + SuggestPrice func(ctx context.Context) (*big.Int, error) + TxPoolContent func() (map[common.Address]types.Transactions, map[common.Address]types.Transactions) + type CallArgs struct + Data string + From common.Address + Gas rpc.HexNumber + GasPrice rpc.HexNumber + To *common.Address + Value rpc.HexNumber + type CompilerAdminAPI compilerAPI + func (api *CompilerAdminAPI) SetSolc(path string) (string, error) + type ExecutionResult struct + Gas *big.Int + ReturnValue string + StructLogs []StructLogRes + type JavascriptTracer struct + func NewJavascriptTracer(code string) (*JavascriptTracer, error) + func (jst *JavascriptTracer) CaptureState(env vm.Environment, pc uint64, op vm.OpCode, gas, cost *big.Int, ...) error + func (jst *JavascriptTracer) GetResult() (result interface{}, err error) + func (jst *JavascriptTracer) Stop(err error) + type PrivateAccountAPI struct + func NewPrivateAccountAPI(b Backend) *PrivateAccountAPI + func (s *PrivateAccountAPI) EcRecover(ctx context.Context, message string, signature string) (common.Address, error) + func (s *PrivateAccountAPI) ImportRawKey(privkey string, password string) (common.Address, error) + func (s *PrivateAccountAPI) ListAccounts() []common.Address + func (s *PrivateAccountAPI) LockAccount(addr common.Address) bool + func (s *PrivateAccountAPI) NewAccount(password string) (common.Address, error) + func (s *PrivateAccountAPI) SendTransaction(ctx context.Context, args SendTxArgs, passwd string) (common.Hash, error) + func (s *PrivateAccountAPI) Sign(ctx context.Context, message string, addr common.Address, passwd string) (string, error) + func (s *PrivateAccountAPI) SignAndSendTransaction(ctx context.Context, args SendTxArgs, passwd string) (common.Hash, error) + func (s *PrivateAccountAPI) UnlockAccount(addr common.Address, password string, duration *rpc.HexNumber) (bool, error) + type PrivateDebugAPI struct + func NewPrivateDebugAPI(b Backend) *PrivateDebugAPI + func (api *PrivateDebugAPI) ChaindbCompact() error + func (api *PrivateDebugAPI) ChaindbProperty(property string) (string, error) + func (api *PrivateDebugAPI) SetHead(number rpc.HexNumber) + type PublicAccountAPI struct + func NewPublicAccountAPI(am *accounts.Manager) *PublicAccountAPI + func (s *PublicAccountAPI) Accounts() []accounts.Account + type PublicBlockChainAPI struct + func NewPublicBlockChainAPI(b Backend) *PublicBlockChainAPI + func (s *PublicBlockChainAPI) BlockNumber() *big.Int + func (s *PublicBlockChainAPI) Call(ctx context.Context, args CallArgs, blockNr rpc.BlockNumber) (string, error) + func (s *PublicBlockChainAPI) EstimateGas(ctx context.Context, args CallArgs) (*rpc.HexNumber, error) + func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*big.Int, error) + func (s *PublicBlockChainAPI) GetBlockByHash(ctx context.Context, blockHash common.Hash, fullTx bool) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetBlockByNumber(ctx context.Context, blockNr rpc.BlockNumber, fullTx bool) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetCode(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (string, error) + func (s *PublicBlockChainAPI) GetStorageAt(ctx context.Context, address common.Address, key string, ...) (string, error) + func (s *PublicBlockChainAPI) GetUncleByBlockHashAndIndex(ctx context.Context, blockHash common.Hash, index rpc.HexNumber) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetUncleByBlockNumberAndIndex(ctx context.Context, blockNr rpc.BlockNumber, index rpc.HexNumber) (map[string]interface{}, error) + func (s *PublicBlockChainAPI) GetUncleCountByBlockHash(ctx context.Context, blockHash common.Hash) *rpc.HexNumber + func (s *PublicBlockChainAPI) GetUncleCountByBlockNumber(ctx context.Context, blockNr rpc.BlockNumber) *rpc.HexNumber + type PublicCompilerAPI compilerAPI + func (api *PublicCompilerAPI) CompileSolidity(source string) (map[string]*compiler.Contract, error) + func (api *PublicCompilerAPI) GetCompilers() ([]string, error) + type PublicDebugAPI struct + func NewPublicDebugAPI(b Backend) *PublicDebugAPI + func (api *PublicDebugAPI) GetBlockRlp(ctx context.Context, number uint64) (string, error) + func (api *PublicDebugAPI) PrintBlock(ctx context.Context, number uint64) (string, error) + func (api *PublicDebugAPI) SeedHash(ctx context.Context, number uint64) (string, error) + type PublicEthereumAPI struct + func NewPublicEthereumAPI(b Backend) *PublicEthereumAPI + func (s *PublicEthereumAPI) GasPrice(ctx context.Context) (*big.Int, error) + 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(b Backend) *PublicTransactionPoolAPI + func (s *PublicTransactionPoolAPI) GetBlockTransactionCountByHash(ctx context.Context, blockHash common.Hash) *rpc.HexNumber + func (s *PublicTransactionPoolAPI) GetBlockTransactionCountByNumber(ctx context.Context, blockNr rpc.BlockNumber) *rpc.HexNumber + func (s *PublicTransactionPoolAPI) GetRawTransactionByBlockHashAndIndex(ctx context.Context, blockHash common.Hash, index rpc.HexNumber) (rpc.HexBytes, error) + func (s *PublicTransactionPoolAPI) GetRawTransactionByBlockNumberAndIndex(ctx context.Context, blockNr rpc.BlockNumber, index rpc.HexNumber) (rpc.HexBytes, error) + func (s *PublicTransactionPoolAPI) GetRawTransactionByHash(ctx context.Context, txHash common.Hash) (rpc.HexBytes, error) + func (s *PublicTransactionPoolAPI) GetTransactionByBlockHashAndIndex(ctx context.Context, blockHash common.Hash, index rpc.HexNumber) (*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) GetTransactionByBlockNumberAndIndex(ctx context.Context, blockNr rpc.BlockNumber, index rpc.HexNumber) (*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) GetTransactionByHash(ctx context.Context, txHash common.Hash) (*RPCTransaction, error) + func (s *PublicTransactionPoolAPI) GetTransactionCount(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*rpc.HexNumber, error) + func (s *PublicTransactionPoolAPI) GetTransactionReceipt(txHash common.Hash) (map[string]interface{}, error) + func (s *PublicTransactionPoolAPI) PendingTransactions() []*RPCTransaction + func (s *PublicTransactionPoolAPI) Resend(ctx context.Context, tx Tx, gasPrice, gasLimit *rpc.HexNumber) (common.Hash, error) + func (s *PublicTransactionPoolAPI) SendRawTransaction(ctx context.Context, encodedTx string) (string, error) + func (s *PublicTransactionPoolAPI) SendTransaction(ctx context.Context, args SendTxArgs) (common.Hash, error) + func (s *PublicTransactionPoolAPI) Sign(addr common.Address, message string) (string, error) + func (s *PublicTransactionPoolAPI) SignTransaction(ctx context.Context, args SignTransactionArgs) (*SignTransactionResult, error) + type PublicTxPoolAPI struct + func NewPublicTxPoolAPI(b Backend) *PublicTxPoolAPI + func (s *PublicTxPoolAPI) Content() map[string]map[string]map[string]*RPCTransaction + func (s *PublicTxPoolAPI) Inspect() map[string]map[string]map[string]string + 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 rpc.HexBytes + Nonce *rpc.HexNumber + R *rpc.HexNumber + S *rpc.HexNumber + To *common.Address + TransactionIndex *rpc.HexNumber + V *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 State interface + GetBalance func(ctx context.Context, addr common.Address) (*big.Int, error) + GetCode func(ctx context.Context, addr common.Address) ([]byte, error) + GetNonce func(ctx context.Context, addr common.Address) (uint64, error) + GetState func(ctx context.Context, a common.Address, b common.Hash) (common.Hash, error) + type StructLogRes struct + Depth int + Error error + Gas *big.Int + GasCost *big.Int + Memory []string + Op string + Pc uint64 + Stack []string + Storage map[string]string + func FormatLogs(structLogs []vm.StructLog) []StructLogRes + 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)