Versions in this module Expand all Collapse all v1 v1.10.3 Dec 16, 2024 v1.10.2 Dec 15, 2024 Changes in this version + const APIVersion + const BeaconInSync + const Block + const Call + const ClientVersion + const DefaultRateLimiterWaitTimeout + const DoEvmCall + const EpochLastBlock + const FailedNumber + const GetAccountNonce + const GetAllDelegationInformation + const GetAllValidatorAddresses + const GetAllValidatorInformation + const GetAllValidatorInformationByBlockNumber + const GetAvailableRedelegationBalance + const GetBalanceByBlockNumber + const GetBlockByHash + const GetBlockByHashNew + const GetBlockByNumber + const GetBlockByNumberNew + const GetBlockReceipts + const GetBlockSignerKeys + const GetBlockSigners + const GetBlockStakingTransactionCountByHash + const GetBlockStakingTransactionCountByNumber + const GetBlockTransactionCountByHash + const GetBlockTransactionCountByNumber + const GetBlocks + const GetCXReceiptByHash + const GetCirculatingSupply + const GetCode + const GetCurrentBadBlocks + const GetCurrentStakingErrorSink + const GetCurrentTransactionErrorSink + const GetCurrentUtilityMetrics + const GetDelegationByDelegatorAndValidator + const GetDelegationsByDelegator + const GetDelegationsByDelegatorByBlockNumber + const GetDelegationsByValidator + const GetElectedValidatorAddresses + const GetEpoch + const GetFilterChanges + const GetFilterLogs + const GetHeaderByNumber + const GetHeaderByNumberRLPHex + const GetLastCrossLinks + const GetLatestChainHeaders + const GetLeader + const GetLogs + const GetMedianRawStakeSnapshot + const GetPendingCXReceipts + const GetPoolStats + const GetProof + const GetShardingStructure + const GetSignedBlocks + const GetStakingNetworkInfo + const GetStakingTransactionByBlockHashAndIndex + const GetStakingTransactionByBlockNumberAndIndex + const GetStakingTransactionByHash + const GetStakingTransactionsCount + const GetStakingTransactionsHistory + const GetStorageAt + const GetSuperCommittees + const GetTotalStaking + const GetTotalSupply + const GetTransactionByBlockHashAndIndex + const GetTransactionByBlockNumberAndIndex + const GetTransactionByHash + const GetTransactionCount + const GetTransactionReceipt + const GetTransactionsCount + const GetTransactionsHistory + const GetValidatorInformation + const GetValidatorInformationByBlockNumber + const GetValidatorKeys + const GetValidatorSelfDelegation + const GetValidatorTotalDelegation + const GetValidators + const GetValidatorsStakeByBlockNumber + const HTTPPortOffset + const InSync + const IsBlockSigner + const IsLastBlock + const LatestBlockNumber + const LatestHeader + const LogTag + const Logs + const NetVersion + const NewBlockFilter + const NewFilter + const NewHeads + const NewPendingTransactionFilter + const NewPendingTransactions + const PeerCount + const PendingBlockNumber + const PendingStakingTransactions + const PendingTransactions + const QueryNumber + const RateLimitedNumber + const ResendCx + const RpcEstimateGas + const SendRawStakingTransaction + const SendRawTransaction + const SetNodeToBackupMode + const TraceBlock + const TraceBlockByHash + const TraceBlockByNumber + const TraceCall + const TraceChain + const TraceTransaction + const Transaction + const UninstallFilter + const WSPortOffset + var ErrIncorrectChainID = errors.New("incorrect chain id") + var ErrInvalidChainID = errors.New("invalid chain id for signer") + var ErrInvalidLogLevel = errors.New("invalid log level") + var ErrNotAvailable = errors.New("RPC not available yet") + var ErrNotBeaconShard = errors.New("cannot call this rpc on non beaconchain node") + var ErrRequestedBlockTooHigh = errors.New("requested block number greater than current block number") + var ErrTransactionNotFound = errors.New("transaction not found") + var ErrUnknownRPCVersion = errors.New("API service has an unknown version") + var HTTPModules = []string + var WSModules = []string + func DoEVMCall(ctx context.Context, itc *itc.Intelchain, args CallArgs, ...) (core.ExecutionResult, error) + func DoMetricRPCQueryInfo(rpcName string, infoType string) + func DoMetricRPCRequest(rpcName string) *prometheus.Timer + func DoRPCRequestDuration(rpcName string, timer *prometheus.Timer) + func EstimateGas(ctx context.Context, itc *itc.Intelchain, args CallArgs, ...) (uint64, error) + func NewPreimagesAPI(itc *itc.Intelchain, version string) rpc.API + func NewPrivateDebugAPI(itc *itc.Intelchain, version Version) rpc.API + func NewPublicBlockchainAPI(itc *itc.Intelchain, version Version, limiterEnable bool, limit int) rpc.API + func NewPublicContractAPI(itc *itc.Intelchain, version Version, limiterEnable bool, limit int, ...) rpc.API + func NewPublicDebugAPI(itc *itc.Intelchain, version Version) rpc.API + func NewPublicIntelchainAPI(itc *itc.Intelchain, version Version) rpc.API + func NewPublicNetAPI(net p2p.Host, chainID uint64, version Version) rpc.API + func NewPublicPoolAPI(itc *itc.Intelchain, version Version, limiterEnable bool, limit int) rpc.API + func NewPublicStakingAPI(itc *itc.Intelchain, version Version) rpc.API + func NewPublicTraceAPI(itc *itc.Intelchain, version Version) rpc.API + func NewPublicTransactionAPI(itc *itc.Intelchain, version Version) rpc.API + func NewPublicWeb3API() rpc.API + func StartServers(itc *itc.Intelchain, apis []rpc.API, config nodeconfig.RPCServerConfig, ...) error + func StopServers() error + type AccountResult struct + AccountProof []string + Address common.Address + Balance *hexutil.Big + CodeHash common.Hash + Nonce hexutil.Uint64 + StorageHash common.Hash + StorageProof []StorageResult + type AddressOrList struct + Address *common.Address + AddressList []common.Address + func (aol *AddressOrList) UnmarshalJSON(data []byte) (err error) + type BlockNumber rpc.BlockNumber + func (bn *BlockNumber) UnmarshalJSON(data []byte) error + func (bn BlockNumber) EthBlockNumber() rpc.BlockNumber + func (bn BlockNumber) Int64() int64 + type CallArgs struct + Data *hexutil.Bytes + From *common.Address + Gas *hexutil.Uint64 + GasPrice *hexutil.Big + To *common.Address + Value *hexutil.Big + func (args *CallArgs) ToMessage(globalGasCap *big.Int) types.Message + type Delegation struct + Amount *big.Int + DelegatorAddress string + Reward *big.Int + Undelegations []Undelegation + ValidatorAddress string + func (d Delegation) IntoStructuredResponse() StructuredResponse + type HeaderInformation struct + BlockHash common.Hash + BlockNumber uint64 + CrossLinks *types.CrossLinks + Epoch uint64 + LastCommitBitmap string + LastCommitSig string + Leader string + ShardID uint32 + Timestamp string + UnixTime uint64 + VRF string + VRFProof string + ViewID uint64 + func NewHeaderInformation(header *block.Header, leader string) *HeaderInformation + type PreimagesService struct + func (s *PreimagesService) Export(ctx context.Context, path string) error + func (s *PreimagesService) Verify(ctx context.Context) (uint64, error) + type PrivateDebugService struct + func (s *PrivateDebugService) ConsensusCurViewID(ctx context.Context) uint64 + func (s *PrivateDebugService) ConsensusViewChangingID(ctx context.Context) uint64 + func (s *PrivateDebugService) GetConfig(ctx context.Context) (StructuredResponse, error) + func (s *PrivateDebugService) GetConsensusMode(ctx context.Context) string + func (s *PrivateDebugService) GetConsensusPhase(ctx context.Context) string + func (s *PrivateDebugService) GetLastSigningPower(ctx context.Context) (float64, error) + func (s *PrivateDebugService) GetLastSigningPower2(ctx context.Context) (float64, error) + type PublicBlockchainService struct + func (s *PublicBlockchainService) Accounts() []common.Address + func (s *PublicBlockchainService) BeaconInSync(ctx context.Context) (bool, error) + func (s *PublicBlockchainService) BlockNumber(ctx context.Context) (interface{}, error) + func (s *PublicBlockchainService) ChainId(ctx context.Context) (interface{}, error) + func (s *PublicBlockchainService) EpochLastBlock(ctx context.Context, epoch uint64) (uint64, error) + func (s *PublicBlockchainService) GetBalanceByBlockNumber(ctx context.Context, address string, blockNumber BlockNumber) (interface{}, error) + func (s *PublicBlockchainService) GetBlockByHash(ctx context.Context, blockHash common.Hash, opts interface{}) (response interface{}, err error) + func (s *PublicBlockchainService) GetBlockByHashNew(ctx context.Context, blockHash common.Hash, blockArgs *rpc_common.BlockArgs) (interface{}, error) + func (s *PublicBlockchainService) GetBlockByNumber(ctx context.Context, blockNumber BlockNumber, opts interface{}) (response interface{}, err error) + func (s *PublicBlockchainService) GetBlockByNumberNew(ctx context.Context, blockNum BlockNumber, blockArgs *rpc_common.BlockArgs) (interface{}, error) + func (s *PublicBlockchainService) GetBlockReceipts(ctx context.Context, blockHash common.Hash) ([]StructuredResponse, error) + func (s *PublicBlockchainService) GetBlockSignerKeys(ctx context.Context, blockNumber BlockNumber) ([]string, error) + func (s *PublicBlockchainService) GetBlockSigners(ctx context.Context, blockNumber BlockNumber) ([]string, error) + func (s *PublicBlockchainService) GetBlocks(ctx context.Context, blockNumberStart BlockNumber, blockNumberEnd BlockNumber, ...) ([]interface{}, error) + func (s *PublicBlockchainService) GetCirculatingSupply(ctx context.Context) (numeric.Dec, error) + func (s *PublicBlockchainService) GetCurrentBadBlocks(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicBlockchainService) GetCurrentUtilityMetrics(ctx context.Context) (StructuredResponse, error) + func (s *PublicBlockchainService) GetEpoch(ctx context.Context) (interface{}, error) + func (s *PublicBlockchainService) GetFullHeader(ctx context.Context, blockNumber BlockNumber) (response StructuredResponse, err error) + func (s *PublicBlockchainService) GetHeaderByNumber(ctx context.Context, blockNumber BlockNumber) (StructuredResponse, error) + func (s *PublicBlockchainService) GetHeaderByNumberRLPHex(ctx context.Context, blockNumber BlockNumber) (string, error) + func (s *PublicBlockchainService) GetLastCrossLinks(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicBlockchainService) GetLatestChainHeaders(ctx context.Context) (StructuredResponse, error) + func (s *PublicBlockchainService) GetLeader(ctx context.Context) (string, error) + func (s *PublicBlockchainService) GetProof(ctx context.Context, address common.Address, storageKeys []string, ...) (ret *AccountResult, err error) + func (s *PublicBlockchainService) GetShardID(ctx context.Context) (int, error) + func (s *PublicBlockchainService) GetShardingStructure(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicBlockchainService) GetSignedBlocks(ctx context.Context, address string) (interface{}, error) + func (s *PublicBlockchainService) GetStakingNetworkInfo(ctx context.Context) (StructuredResponse, error) + func (s *PublicBlockchainService) GetSuperCommittees(ctx context.Context) (StructuredResponse, error) + func (s *PublicBlockchainService) GetTotalSupply(ctx context.Context) (numeric.Dec, error) + func (s *PublicBlockchainService) InSync(ctx context.Context) (bool, error) + func (s *PublicBlockchainService) IsBlockSigner(ctx context.Context, blockNumber BlockNumber, address string) (bool, error) + func (s *PublicBlockchainService) IsLastBlock(ctx context.Context, blockNum uint64) (bool, error) + func (s *PublicBlockchainService) LatestHeader(ctx context.Context) (StructuredResponse, error) + func (s *PublicBlockchainService) SetNodeToBackupMode(ctx context.Context, isBackup bool) (bool, error) + type PublicContractService struct + func (s *PublicContractService) Call(ctx context.Context, args CallArgs, blockNrOrHash rpc.BlockNumberOrHash) (hexutil.Bytes, error) + func (s *PublicContractService) GetCode(ctx context.Context, addr string, blockNrOrHash rpc.BlockNumberOrHash) (hexutil.Bytes, error) + func (s *PublicContractService) GetStorageAt(ctx context.Context, addr string, key string, ...) (hexutil.Bytes, error) + type PublicDebugService struct + func (s *PublicDebugService) SetLogVerbosity(ctx context.Context, level int) (map[string]interface{}, error) + type PublicIntelchainService struct + func (s *PublicIntelchainService) GasPrice(ctx context.Context) (interface{}, error) + func (s *PublicIntelchainService) GetNodeMetadata(ctx context.Context) (StructuredResponse, error) + func (s *PublicIntelchainService) GetNumPendingCrossLinks() (int, error) + func (s *PublicIntelchainService) GetPeerInfo(ctx context.Context) (StructuredResponse, error) + func (s *PublicIntelchainService) ProtocolVersion(ctx context.Context) (interface{}, error) + func (s *PublicIntelchainService) Syncing(ctx context.Context) (interface{}, error) + type PublicNetService struct + func (s *PublicNetService) Listening() bool + func (s *PublicNetService) PeerCount(ctx context.Context) (interface{}, error) + func (s *PublicNetService) Version(ctx context.Context) interface{} + type PublicParityTracerService struct + func (s *PublicParityTracerService) Block(ctx context.Context, number rpc.BlockNumber) (interface{}, error) + func (s *PublicParityTracerService) Transaction(ctx context.Context, hash common.Hash) (interface{}, error) + type PublicPoolService struct + func (s *PublicPoolService) GetCurrentStakingErrorSink(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicPoolService) GetCurrentTransactionErrorSink(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicPoolService) GetNumPendingCXReceipts(ctx context.Context) (int, error) + func (s *PublicPoolService) GetPendingCXReceipts(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicPoolService) GetPoolStats(ctx context.Context) (StructuredResponse, error) + func (s *PublicPoolService) PendingStakingTransactions(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicPoolService) PendingTransactions(ctx context.Context) ([]StructuredResponse, error) + func (s *PublicPoolService) SendRawStakingTransaction(ctx context.Context, encodedTx hexutil.Bytes) (common.Hash, error) + func (s *PublicPoolService) SendRawTransaction(ctx context.Context, encodedTx hexutil.Bytes) (common.Hash, error) + type PublicStakingService struct + func (s *PublicStakingService) GetAllDelegationInformation(ctx context.Context, page int) ([][]StructuredResponse, error) + func (s *PublicStakingService) GetAllValidatorAddresses(ctx context.Context) ([]string, error) + func (s *PublicStakingService) GetAllValidatorInformation(ctx context.Context, page int) (interface{}, error) + func (s *PublicStakingService) GetAllValidatorInformationByBlockNumber(ctx context.Context, page int, blockNumber BlockNumber) (interface{}, error) + func (s *PublicStakingService) GetAvailableRedelegationBalance(ctx context.Context, address string) (*big.Int, error) + func (s *PublicStakingService) GetDelegationByDelegatorAndValidator(ctx context.Context, address string, validator string) (StructuredResponse, error) + func (s *PublicStakingService) GetDelegationsByDelegator(ctx context.Context, address string) ([]StructuredResponse, error) + func (s *PublicStakingService) GetDelegationsByDelegatorByBlockNumber(ctx context.Context, aol AddressOrList, blockNumber BlockNumber) (interface{}, error) + func (s *PublicStakingService) GetDelegationsByValidator(ctx context.Context, address string) ([]StructuredResponse, error) + func (s *PublicStakingService) GetElectedValidatorAddresses(ctx context.Context) ([]string, error) + func (s *PublicStakingService) GetMedianRawStakeSnapshot(ctx context.Context) (StructuredResponse, error) + func (s *PublicStakingService) GetTotalStaking(ctx context.Context) (*big.Int, error) + func (s *PublicStakingService) GetValidatorInformation(ctx context.Context, address string) (StructuredResponse, error) + func (s *PublicStakingService) GetValidatorInformationByBlockNumber(ctx context.Context, address string, blockNumber BlockNumber) (StructuredResponse, error) + func (s *PublicStakingService) GetValidatorKeys(ctx context.Context, epoch int64) ([]string, error) + func (s *PublicStakingService) GetValidatorSelfDelegation(ctx context.Context, address string) (interface{}, error) + func (s *PublicStakingService) GetValidatorTotalDelegation(ctx context.Context, address string) (interface{}, error) + func (s *PublicStakingService) GetValidators(ctx context.Context, epoch int64) (StructuredResponse, error) + func (s *PublicStakingService) GetValidatorsStakeByBlockNumber(ctx context.Context, blockNumber BlockNumber) (StructuredResponse, error) + type PublicTracerService struct + func (s *PublicTracerService) TraceBlock(ctx context.Context, blob []byte, config *itc.TraceConfig) ([]*itc.TxTraceResult, error) + func (s *PublicTracerService) TraceBlockByHash(ctx context.Context, hash common.Hash, config *itc.TraceConfig) ([]*itc.TxTraceResult, error) + func (s *PublicTracerService) TraceBlockByNumber(ctx context.Context, number rpc.BlockNumber, config *itc.TraceConfig) ([]*itc.TxTraceResult, error) + func (s *PublicTracerService) TraceCall(ctx context.Context, args CallArgs, blockNr rpc.BlockNumber, ...) (interface{}, error) + func (s *PublicTracerService) TraceChain(ctx context.Context, start, end rpc.BlockNumber, config *itc.TraceConfig) (*rpc.Subscription, error) + func (s *PublicTracerService) TraceTransaction(ctx context.Context, hash common.Hash, config *itc.TraceConfig) (interface{}, error) + type PublicTransactionService struct + func (s *PublicTransactionService) EstimateGas(ctx context.Context, args CallArgs, blockNrOrHash *rpc.BlockNumberOrHash) (hexutil.Uint64, error) + func (s *PublicTransactionService) GetAccountNonce(ctx context.Context, address string, blockNumber BlockNumber) (uint64, error) + func (s *PublicTransactionService) GetBlockStakingTransactionCountByHash(ctx context.Context, blockHash common.Hash) (interface{}, error) + func (s *PublicTransactionService) GetBlockStakingTransactionCountByNumber(ctx context.Context, blockNumber BlockNumber) (interface{}, error) + func (s *PublicTransactionService) GetBlockTransactionCountByHash(ctx context.Context, blockHash common.Hash) (interface{}, error) + func (s *PublicTransactionService) GetBlockTransactionCountByNumber(ctx context.Context, blockNumber BlockNumber) (interface{}, error) + func (s *PublicTransactionService) GetCXReceiptByHash(ctx context.Context, hash common.Hash) (StructuredResponse, error) + func (s *PublicTransactionService) GetStakingTransactionByBlockHashAndIndex(ctx context.Context, blockHash common.Hash, index TransactionIndex) (StructuredResponse, error) + func (s *PublicTransactionService) GetStakingTransactionByBlockNumberAndIndex(ctx context.Context, blockNumber BlockNumber, index TransactionIndex) (StructuredResponse, error) + func (s *PublicTransactionService) GetStakingTransactionByHash(ctx context.Context, hash common.Hash) (StructuredResponse, error) + func (s *PublicTransactionService) GetStakingTransactionsCount(ctx context.Context, address, txType string) (count uint64, err error) + func (s *PublicTransactionService) GetStakingTransactionsHistory(ctx context.Context, args TxHistoryArgs) (StructuredResponse, error) + func (s *PublicTransactionService) GetTransactionByBlockHashAndIndex(ctx context.Context, blockHash common.Hash, index TransactionIndex) (StructuredResponse, error) + func (s *PublicTransactionService) GetTransactionByBlockNumberAndIndex(ctx context.Context, blockNumber BlockNumber, index TransactionIndex) (StructuredResponse, error) + func (s *PublicTransactionService) GetTransactionByHash(ctx context.Context, hash common.Hash) (StructuredResponse, error) + func (s *PublicTransactionService) GetTransactionCount(ctx context.Context, addr string, blockNrOrHash rpc.BlockNumberOrHash) (response interface{}, err error) + func (s *PublicTransactionService) GetTransactionReceipt(ctx context.Context, hash common.Hash) (StructuredResponse, error) + func (s *PublicTransactionService) GetTransactionsCount(ctx context.Context, address, txType string) (count uint64, err error) + func (s *PublicTransactionService) GetTransactionsHistory(ctx context.Context, args TxHistoryArgs) (StructuredResponse, error) + func (s *PublicTransactionService) ResendCx(ctx context.Context, txID common.Hash) (bool, error) + type PublicWeb3Service struct + func (s *PublicWeb3Service) ClientVersion(ctx context.Context) interface{} + type StakingNetworkInfo struct + CirculatingSupply numeric.Dec + EpochLastBlock uint64 + MedianRawStake numeric.Dec + TotalStaking *big.Int + TotalSupply numeric.Dec + type StorageResult struct + Key string + Proof []string + Value *hexutil.Big + type StructuredResponse = map[string]interface + func NewStructuredResponse(input interface{}) (StructuredResponse, error) + type TransactionIndex uint64 + func (i *TransactionIndex) UnmarshalJSON(data []byte) (err error) + type TxHistoryArgs struct + Address string + FullTx bool + Order string + PageIndex uint32 + PageSize uint32 + TxType string + func (ta *TxHistoryArgs) UnmarshalFromInterface(blockArgs interface{}) error + type Undelegation struct + Amount *big.Int + Epoch *big.Int + type Version int + const Debug + const Eth + const Trace + const V1 + const V2 + func (n Version) Namespace() string