Documentation ¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetDifficulty() string
- func (x *Block) GetExtraData() []byte
- func (x *Block) GetGasLimit() uint64
- func (x *Block) GetGasUsed() uint64
- func (x *Block) GetHash() string
- func (x *Block) GetMiner() string
- func (x *Block) GetNonce() string
- func (x *Block) GetNumber() uint64
- func (x *Block) GetParentHash() string
- func (x *Block) GetReceiptRootHash() string
- func (x *Block) GetSize() float64
- func (x *Block) GetStateRootHash() string
- func (x *Block) GetTime() uint64
- func (x *Block) GetTransactionRootHash() string
- func (x *Block) GetTransactions() []*Transaction
- func (x *Block) GetUncleHash() string
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetBlockHash() string
- func (x *Event) GetData() []byte
- func (x *Event) GetIndex() uint32
- func (x *Event) GetOrigin() string
- func (x *Event) GetTopics() []string
- func (x *Event) GetTransactionHash() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetBlockHash() string
- func (x *Transaction) GetContract() string
- func (x *Transaction) GetCost() string
- func (x *Transaction) GetData() []byte
- func (x *Transaction) GetEvents() []*Event
- func (x *Transaction) GetFrom() string
- func (x *Transaction) GetGas() uint64
- func (x *Transaction) GetGasPrice() string
- func (x *Transaction) GetHash() string
- func (x *Transaction) GetNonce() uint64
- func (x *Transaction) GetState() uint64
- func (x *Transaction) GetTo() string
- func (x *Transaction) GetValue() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_block_proto protoreflect.FileDescriptor
View Source
var File_event_proto protoreflect.FileDescriptor
View Source
var File_transaction_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` ParentHash string `protobuf:"bytes,4,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` Difficulty string `protobuf:"bytes,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"` GasUsed uint64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` GasLimit uint64 `protobuf:"varint,7,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` Nonce string `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"` Miner string `protobuf:"bytes,9,opt,name=miner,proto3" json:"miner,omitempty"` Size float64 `protobuf:"fixed64,10,opt,name=size,proto3" json:"size,omitempty"` StateRootHash string `protobuf:"bytes,11,opt,name=state_root_hash,json=stateRootHash,proto3" json:"state_root_hash,omitempty"` UncleHash string `protobuf:"bytes,12,opt,name=uncle_hash,json=uncleHash,proto3" json:"uncle_hash,omitempty"` TransactionRootHash string `protobuf:"bytes,13,opt,name=transaction_root_hash,json=transactionRootHash,proto3" json:"transaction_root_hash,omitempty"` ReceiptRootHash string `protobuf:"bytes,14,opt,name=receipt_root_hash,json=receiptRootHash,proto3" json:"receipt_root_hash,omitempty"` ExtraData []byte `protobuf:"bytes,15,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` Transactions []*Transaction `protobuf:"bytes,16,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetDifficulty ¶
func (*Block) GetExtraData ¶ added in v1.7.0
func (*Block) GetGasLimit ¶
func (*Block) GetGasUsed ¶
func (*Block) GetParentHash ¶
func (*Block) GetReceiptRootHash ¶
func (*Block) GetStateRootHash ¶ added in v1.7.0
func (*Block) GetTransactionRootHash ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*Transaction
func (*Block) GetUncleHash ¶ added in v1.7.0
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type Event ¶
type Event struct { BlockHash string `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"` Topics []string `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` TransactionHash string `protobuf:"bytes,6,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetBlockHash ¶
func (*Event) GetTransactionHash ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` Gas uint64 `protobuf:"varint,7,opt,name=gas,proto3" json:"gas,omitempty"` GasPrice string `protobuf:"bytes,8,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` Cost string `protobuf:"bytes,9,opt,name=cost,proto3" json:"cost,omitempty"` Nonce uint64 `protobuf:"varint,10,opt,name=nonce,proto3" json:"nonce,omitempty"` State uint64 `protobuf:"varint,11,opt,name=state,proto3" json:"state,omitempty"` BlockHash string `protobuf:"bytes,12,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` Events []*Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetBlockHash ¶
func (x *Transaction) GetBlockHash() string
func (*Transaction) GetContract ¶
func (x *Transaction) GetContract() string
func (*Transaction) GetCost ¶
func (x *Transaction) GetCost() string
func (*Transaction) GetData ¶
func (x *Transaction) GetData() []byte
func (*Transaction) GetEvents ¶
func (x *Transaction) GetEvents() []*Event
func (*Transaction) GetFrom ¶
func (x *Transaction) GetFrom() string
func (*Transaction) GetGas ¶
func (x *Transaction) GetGas() uint64
func (*Transaction) GetGasPrice ¶
func (x *Transaction) GetGasPrice() string
func (*Transaction) GetHash ¶
func (x *Transaction) GetHash() string
func (*Transaction) GetNonce ¶
func (x *Transaction) GetNonce() uint64
func (*Transaction) GetState ¶
func (x *Transaction) GetState() uint64
func (*Transaction) GetTo ¶
func (x *Transaction) GetTo() string
func (*Transaction) GetValue ¶
func (x *Transaction) GetValue() string
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
Click to show internal directories.
Click to hide internal directories.