Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) RPC ¶
RPC is the main entrypoint for the LDVM. https://ethereum.org/en/developers/docs/apis/json-rpc
type EncodeReply ¶
type EncodeReply struct {
Bytes string `json:"bytes"`
Encoding formatting.Encoding `json:"encoding"` // hex
Length int `json:"length"`
}
func (*EncodeReply) SetTxData ¶
func (r *EncodeReply) SetTxData(tx TxData) error
type PrevDataParams ¶
type TransactionArgs ¶
type TransactionArgs struct {
Type uint16 `json:"type"`
ChainID uint64 `json:"chainID"`
Nonce uint64 `json:"nonce"`
GasTip uint64 `json:"gasTip"`
GasFeeCap uint64 `json:"gasFeeCap"`
From ids.Address `json:"from"`
To *ids.Address `json:"to"`
Token *ids.TokenSymbol `json:"token"`
Amount *big.Int `json:"amount"`
Data json.RawMessage `json:"data"`
}
type VMAPI ¶
type VMAPI struct{}
func (*VMAPI) EncodeTx ¶
func (api *VMAPI) EncodeTx(_ *http.Request, args *TransactionArgs, reply *EncodeReply) error
Click to show internal directories.
Click to hide internal directories.