Documentation ¶
Index ¶
- type Asset
- type Blockchain
- type Call
- type Client
- type EthClient
- type FlatCall
- type InfoClient
- func (c *InfoClient) BlockchainID(ctx context.Context, alias string) (string, error)
- func (c *InfoClient) IsBootstrapped(ctx context.Context, chain string) (bool, error)
- func (c *InfoClient) NetworkID(ctx context.Context) (string, error)
- func (c *InfoClient) NetworkName(ctx context.Context) (string, error)
- func (c *InfoClient) NodeID(ctx context.Context) (string, error)
- func (c *InfoClient) NodeVersion(ctx context.Context) (string, error)
- func (c *InfoClient) Peers(ctx context.Context) ([]Peer, error)
- type Peer
- type RPC
- type TxAccountMap
- type TxNonceMap
- type TxPoolContent
- type TxPoolStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Client ¶
type Client interface { IsBootstrapped(context.Context, string) (bool, error) ChainID(context.Context) (*big.Int, error) BlockByHash(context.Context, ethcommon.Hash) (*ethtypes.Block, error) BlockByNumber(context.Context, *big.Int) (*ethtypes.Block, error) HeaderByHash(context.Context, ethcommon.Hash) (*ethtypes.Header, error) HeaderByNumber(context.Context, *big.Int) (*ethtypes.Header, error) TransactionByHash(context.Context, ethcommon.Hash) (*ethtypes.Transaction, bool, error) TransactionReceipt(context.Context, ethcommon.Hash) (*ethtypes.Receipt, error) TraceTransaction(context.Context, string) (*Call, []*FlatCall, error) SendTransaction(context.Context, *ethtypes.Transaction) error BalanceAt(context.Context, ethcommon.Address, *big.Int) (*big.Int, error) NonceAt(context.Context, ethcommon.Address, *big.Int) (uint64, error) SuggestGasPrice(context.Context) (*big.Int, error) TxPoolStatus(context.Context) (*TxPoolStatus, error) TxPoolContent(context.Context) (*TxPoolContent, error) NetworkName(context.Context) (string, error) Peers(context.Context) ([]Peer, error) NodeVersion(context.Context) (string, error) }
type EthClient ¶
EthClient provides access to Coreth API
func NewEthClient ¶
NewEthClient returns a new EVM client
func (*EthClient) TraceTransaction ¶
TraceTransaction returns a transaction trace
func (*EthClient) TxPoolContent ¶
func (c *EthClient) TxPoolContent(ctx context.Context) (*TxPoolContent, error)
TxPoolContent returns the tx pool content
func (*EthClient) TxPoolStatus ¶
func (c *EthClient) TxPoolStatus(ctx context.Context) (*TxPoolStatus, error)
TxPoolStatus return the current tx pool status
type InfoClient ¶
type InfoClient struct {
// contains filtered or unexported fields
}
InfoClient is a client for the Info API
func NewInfoClient ¶
func NewInfoClient(endpoint string) (*InfoClient, error)
NewInfoClient returns a new client to Info API
func (*InfoClient) BlockchainID ¶
BlockchainID returns the current blockchain identifier
func (*InfoClient) IsBootstrapped ¶
IsBootstrapped returns true if a chans is bootstrapped
func (*InfoClient) NetworkID ¶
func (c *InfoClient) NetworkID(ctx context.Context) (string, error)
NetworkID returns the current network identifier
func (*InfoClient) NetworkName ¶
func (c *InfoClient) NetworkName(ctx context.Context) (string, error)
NetworkName returns the current network name
func (*InfoClient) NodeID ¶
func (c *InfoClient) NodeID(ctx context.Context) (string, error)
NodeID return the current node identifier
func (*InfoClient) NodeVersion ¶
func (c *InfoClient) NodeVersion(ctx context.Context) (string, error)
NodeVersion returns the current node version
type Peer ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC is a generic client
type TxAccountMap ¶
type TxAccountMap map[string]TxNonceMap
type TxNonceMap ¶
type TxPoolContent ¶
type TxPoolContent struct { Pending TxAccountMap `json:"pending"` Queued TxAccountMap `json:"queued"` }
type TxPoolStatus ¶
Click to show internal directories.
Click to hide internal directories.