Documentation
¶
Index ¶
- type Config
- type Node
- func (n *Node) BalanceAt(ctx context.Context, address string) (*big.Int, error)
- func (n *Node) BlockNumber(ctx context.Context) (*uint64, error)
- func (n *Node) ChainID(ctx context.Context) (*big.Int, error)
- func (n *Node) DeployContract(ctx context.Context, contract *[]byte, from string, key *ecdsa.PrivateKey, ...) (*string, error)
- func (n *Node) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (n *Node) Metadata() *services.MetadataService
- func (n *Node) Name() string
- func (n *Node) NonceAt(ctx context.Context, address string) (*uint64, error)
- func (n *Node) OnReady(_ context.Context, callback func(ctx context.Context) error)
- func (n *Node) ReadContract(ctx context.Context, contractAddress string, callData []byte, ...) ([]byte, error)
- func (n *Node) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (n *Node) SignTransaction(ctx context.Context, tx *types.Transaction, key *ecdsa.PrivateKey) (*types.Transaction, error)
- func (n *Node) Start(ctx context.Context) error
- func (n *Node) Stop() error
- func (n *Node) SuggestFees(ctx context.Context) (gasTipCap, gasFeeCap *big.Int, err error)
- func (n *Node) TransactionByHash(ctx context.Context, hash string) (*types.Transaction, bool, error)
- func (n *Node) TransactionReceipt(ctx context.Context, hash string) (*types.Receipt, error)
- func (n *Node) WriteContract(ctx context.Context, contractAddress string, callData []byte, from string, ...) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) DeployContract ¶
func (*Node) FeeHistory ¶
func (*Node) Metadata ¶
func (n *Node) Metadata() *services.MetadataService
func (*Node) ReadContract ¶
func (*Node) SendTransaction ¶
func (*Node) SignTransaction ¶
func (n *Node) SignTransaction(ctx context.Context, tx *types.Transaction, key *ecdsa.PrivateKey) (*types.Transaction, error)
func (*Node) SuggestFees ¶
func (*Node) TransactionByHash ¶
func (*Node) TransactionReceipt ¶
Click to show internal directories.
Click to hide internal directories.