Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RPC = struct { StatsService struct{ DatabaseStats string } UnpackService struct{ GetTransaction string } }{ StatsService: struct{ DatabaseStats string }{ DatabaseStats: "databasestats", }, UnpackService: struct{ GetTransaction string }{ GetTransaction: "gettransaction", }, }
Functions ¶
Types ¶
type Log ¶
type Log struct { Address *utils.NamedAddr `json:"address"` Topics []common.Hash `json:"topics"` Removed bool `json:"removed"` Signature common.Hash `json:"signature"` EventSignature string `json:"eventSignature"` Name string `json:"name"` Type utils.LogEventType `json:"type"` Abi string `json:"abi"` DecodedTopics []bytecode.Topic `json:"decodedTopics"` RawData string `json:"rawData"` Data map[string]interface{} `json:"data"` Anonymous bool `json:"anonymous"` AST *ir.Event `json:"ast"` }
type Receipt ¶
type Receipt struct { BlockNumber *big.Int `json:"blockNumber"` BlockHash common.Hash `json:"blockHash"` ContractAddress common.Address `json:"contractAddress"` TransactionIndex uint `json:"transactionIndex"` GasUsed uint64 `json:"gasUsed"` CumulativeGasUsed uint64 `json:"cumulativeGasUsed"` EffectiveGasPrice *big.Int `json:"effectiveGasPrice"` BlobGasUsed uint64 `json:"blobGasUsed"` BlobGasPrice *big.Int `json:"blobGasPrice"` Status uint64 `json:"status"` Bloom types.Bloom `json:"bloom"` PostState string `json:"postState"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) RegisterNamespaces ¶
type StatsResponse ¶
type StatsResponse struct {
ContractsCount uint64 `json:"contractsCount"`
}
type StatsService ¶
type StatsService struct { zenrpc.Service // contains filtered or unexported fields }
StatsService provides statistics from the database related to blockchain elements.
func (StatsService) DatabaseStats ¶
func (s StatsService) DatabaseStats(ctx context.Context) (*models.DbStats, *zenrpc.Error)
DatabaseStats retrieves comprehensive statistical data on blockchain-related entities stored within the database. This data includes counts of contracts, metadata, and various analytical constructs used in smart contract development.
zenrpc:1000 get db stats error zenrpc:return models.DbStats | nil
func (StatsService) Invoke ¶
func (s StatsService) Invoke(ctx context.Context, method string, params json.RawMessage) zenrpc.Response
Invoke is as generated code from zenrpc cmd
func (StatsService) SMD ¶
func (StatsService) SMD() smd.ServiceInfo
type Transaction ¶
type Transaction struct { Hash common.Hash `json:"hash"` Type uint8 `json:"type"` Sender *utils.NamedAddr `json:"sender"` Recipient *utils.NamedAddr `json:"recipient"` AccessList types.AccessList `json:"accessList"` Nonce uint64 `json:"nonce"` Protected bool `json:"protected"` IsPending bool `json:"isPending"` Value *big.Int `json:"value"` Cost *big.Int `json:"cost"` Gas uint64 `json:"gas"` GasPrice *big.Int `json:"gasPrice"` GasFeeCap *big.Int `json:"gasFeeCap"` GasTipCap *big.Int `json:"gasTipCap"` BlobGas uint64 `json:"blobGas"` BlobGasFeeCap *big.Int `json:"blobGasFeeCap"` BlobHashes []common.Hash `json:"blobHashes"` BlobTxSidecar *types.BlobTxSidecar `json:"blobTxSidecar"` RawSignature *TransactionRawSignature `json:"rawSignature"` Signature string `json:"signature"` FunctionName string `json:"functionName"` FunctionSignature string `json:"functionSignature"` Implemented bool `json:"implemented"` StateMutability string `json:"stateMutability"` Visibility string `json:"visibility"` Virtual bool `json:"virtual"` MethodType utils.TransactionMethodType `json:"methodType"` MethodPayload map[string]interface{} `json:"methodPayload"` MethodAbi string `json:"methodAbi"` Data string `json:"data"` Time time.Time `json:"time"` Receipt *Receipt `json:"receipt"` Logs []Log `json:"logs"` AST *ir.Function `json:"ast"` }
type TransactionRawSignature ¶
type UnpackService ¶
type UnpackService struct { zenrpc.Service // contains filtered or unexported fields }
UnpackService
func (UnpackService) GetTransaction ¶
func (s UnpackService) GetTransaction(ctx context.Context, networkId utils.NetworkID, hash common.Hash, showAst bool) (*Transaction, *zenrpc.Error)
func (UnpackService) Invoke ¶
func (s UnpackService) Invoke(ctx context.Context, method string, params json.RawMessage) zenrpc.Response
Invoke is as generated code from zenrpc cmd
func (UnpackService) SMD ¶
func (UnpackService) SMD() smd.ServiceInfo
Click to show internal directories.
Click to hide internal directories.