Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultGasPrice is default gas price for evm transactions DefaultGasPrice = 20000000000 // DefaultRPCGasLimit is default gas limit for RPC call operations DefaultRPCGasLimit = 10000000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublicEthAPI ¶
type PublicEthAPI interface { Accounts() ([]common.Address, error) BlockNumber() (hexutil.Uint64, error) Call(args rpctypes.CallArgs, blockNr gethrpc.BlockNumber) (hexutil.Bytes, error) ChainId() hexutil.Uint64 Coinbase() (common.Address, error) EstimateGas(args rpctypes.CallArgs) (hexutil.Uint64, error) GasPrice() *hexutil.Big GetBalance(addr common.Address, blockNum gethrpc.BlockNumber) (*hexutil.Big, error) GetBlockByHash(hash common.Hash, fullTx bool) (map[string]interface{}, error) GetBlockByNumber(blockNum gethrpc.BlockNumber, fullTx bool) (map[string]interface{}, error) GetBlockTransactionCountByHash(hash common.Hash) *hexutil.Uint GetBlockTransactionCountByNumber(blockNum gethrpc.BlockNumber) *hexutil.Uint GetCode(addr common.Address, blockNum gethrpc.BlockNumber) (hexutil.Bytes, error) GetStorageAt(addr common.Address, key string, blockNum gethrpc.BlockNumber) (hexutil.Bytes, error) GetTransactionByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) (*rpctypes.Transaction, error) GetTransactionByBlockNumberAndIndex(blockNum gethrpc.BlockNumber, idx hexutil.Uint) (*rpctypes.Transaction, error) GetTransactionByHash(hash common.Hash) (*rpctypes.Transaction, error) GetTransactionCount(addr common.Address, blockNum gethrpc.BlockNumber) (*hexutil.Uint64, error) GetTransactionReceipt(hash common.Hash) (map[string]interface{}, error) GetUncleByBlockHashAndIndex(hash common.Hash, idx hexutil.Uint) map[string]interface{} GetUncleByBlockNumberAndIndex(number hexutil.Uint, idx hexutil.Uint) map[string]interface{} GetUncleCountByBlockHash(_ common.Hash) hexutil.Uint GetUncleCountByBlockNumber(_ gethrpc.BlockNumber) hexutil.Uint ProtocolVersion() hexutil.Uint SendRawTransaction(data hexutil.Bytes) (common.Hash, error) // ? SendTransaction(args rpctypes.SendTxArgs) (common.Hash, error) Syncing() (interface{}, error) }
type PublicNetAPI ¶
type PublicTxPoolAPI ¶ added in v0.1.6
type PublicWeb3API ¶
type SbchAPI ¶
type SbchAPI interface { GetStandbyTxQueue() QueryTxBySrc(addr gethcmn.Address, startHeight, endHeight gethrpc.BlockNumber, limit hexutil.Uint64) ([]*rpctypes.Transaction, error) QueryTxByDst(addr gethcmn.Address, startHeight, endHeight gethrpc.BlockNumber, limit hexutil.Uint64) ([]*rpctypes.Transaction, error) QueryTxByAddr(addr gethcmn.Address, startHeight, endHeight gethrpc.BlockNumber, limit hexutil.Uint64) ([]*rpctypes.Transaction, error) QueryLogs(addr gethcmn.Address, topics []gethcmn.Hash, startHeight, endHeight gethrpc.BlockNumber, limit hexutil.Uint64) ([]*gethtypes.Log, error) GetTxListByHeight(height gethrpc.BlockNumber) ([]map[string]interface{}, error) GetTxListByHeightWithRange(height gethrpc.BlockNumber, start, end hexutil.Uint64) ([]map[string]interface{}, error) GetAddressCount(kind string, addr gethcmn.Address) hexutil.Uint64 GetSep20AddressCount(kind string, contract, addr gethcmn.Address) hexutil.Uint64 GetEpochs(start, end hexutil.Uint64) ([]*types.Epoch, error) }
type TendermintAPI ¶ added in v0.1.2
type TendermintAPI interface { NodeInfo() json.RawMessage ValidatorsInfo() json.RawMessage }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.