Documentation ¶
Overview ¶
Package apis
@author: xwc1125
Package apis ¶
@author: xwc1125
Package apis ¶
@author: xwc1125
Package apis ¶
@author: xwc1125
Package apis ¶
@author: xwc1125
Package apis ¶
@author: xwc1125
Package apis ¶
@author: xwc1125
Package apis ¶
@author: xwc1125
Index ¶
- func NewApis(rootCtx context.Context, opts ...option) (protocol.APIs, error)
- func RPCMarshalBlock(b *models.Block) (map[string]interface{}, error)
- func WithBlockDB(blockDB protocol.DatabaseReader) option
- func WithBlockReader(f protocol.APIs, blockReader protocol.BlockReader)
- func WithStateDB(stateDB protocol.DatabaseReader) option
- func WithTxPools(f protocol.APIs, txPools protocol.TxPools)
- type API
- func (a *API) GetTransaction(ctx context.Context, hash types.Hash) models.Transaction
- func (a *API) GetTransactionLogs(ctx context.Context, hash types.Hash) ([]*statetype.Log, error)
- func (a *API) GetTransactionReceipt(ctx context.Context, hash types.Hash) (models.Transaction, error)
- func (a *API) SendRawTransaction(ctx context.Context, txType types.TxType, rawTx hexutil.Bytes) (types.Hash, error)
- type AddressStatus
- type NonceHashInfo
- type NonceHashList
- type RPCTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBlockDB ¶
func WithBlockDB(blockDB protocol.DatabaseReader) option
func WithBlockReader ¶
func WithBlockReader(f protocol.APIs, blockReader protocol.BlockReader)
func WithStateDB ¶
func WithStateDB(stateDB protocol.DatabaseReader) option
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetTransaction ¶
func (*API) GetTransactionLogs ¶
func (*API) GetTransactionReceipt ¶
type AddressStatus ¶
type AddressStatus struct { Pending NonceHashList `json:"pending"` Count uint64 `json:"count"` }
AddressStatus 地址状态
type NonceHashInfo ¶
NonceHashInfo TODO
Click to show internal directories.
Click to hide internal directories.