Documentation ¶
Index ¶
- func BuildBlobTx(txData *TxMetadata, blobRefs [][]string) (*types.BlobTx, error)
- func DynFeeTx(txData *TxMetadata) (*types.DynamicFeeTx, error)
- type BlobCommitment
- type Client
- func (client *Client) AwaitNextBlock(lastBlockHeight uint64) (uint64, error)
- func (client *Client) AwaitTransaction(tx *types.Transaction) (*types.Receipt, uint64, error)
- func (client *Client) AwaitWalletNonce(wallet common.Address, nonce uint64, blockHeight uint64) (uint64, error)
- func (client *Client) GetBalanceAt(wallet common.Address) (*big.Int, error)
- func (client *Client) GetBlockHeight() (uint64, error)
- func (client *Client) GetChainId() (*big.Int, error)
- func (client *Client) GetName() string
- func (client *Client) GetNonceAt(wallet common.Address) (uint64, error)
- func (client *Client) GetPendingNonceAt(wallet common.Address) (uint64, error)
- func (client *Client) GetRPCHost() string
- func (client *Client) GetSuggestedFee() (*big.Int, *big.Int, error)
- func (client *Client) GetTransactionReceipt(txHash []byte) *types.Receipt
- func (client *Client) SendTransaction(tx *types.Transaction) error
- func (client *Client) SubmitTransaction(txBytes []byte) *common.Hash
- func (client *Client) UpdateWallet(wallet *Wallet) error
- type TxMetadata
- type Wallet
- func (wallet *Wallet) AddBalance(amount *big.Int)
- func (wallet *Wallet) BuildBlobTx(txData *types.BlobTx) (*types.Transaction, error)
- func (wallet *Wallet) BuildDynamicFeeTx(txData *types.DynamicFeeTx) (*types.Transaction, error)
- func (wallet *Wallet) GetAddress() common.Address
- func (wallet *Wallet) GetBalance() *big.Int
- func (wallet *Wallet) GetChainId() *big.Int
- func (wallet *Wallet) GetNonce() uint64
- func (wallet *Wallet) ReplaceBlobTx(txData *types.BlobTx, nonce uint64) (*types.Transaction, error)
- func (wallet *Wallet) ReplaceDynamicFeeTx(txData *types.DynamicFeeTx, nonce uint64) (*types.Transaction, error)
- func (wallet *Wallet) SetBalance(balance *big.Int)
- func (wallet *Wallet) SetChainId(chainid *big.Int)
- func (wallet *Wallet) SetNonce(nonce uint64)
- func (wallet *Wallet) SubBalance(amount *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBlobTx ¶
func BuildBlobTx(txData *TxMetadata, blobRefs [][]string) (*types.BlobTx, error)
func DynFeeTx ¶
func DynFeeTx(txData *TxMetadata) (*types.DynamicFeeTx, error)
Types ¶
type BlobCommitment ¶
type BlobCommitment struct { Blob kzg4844.Blob Commitment kzg4844.Commitment Proof kzg4844.Proof VersionedHash common.Hash }
func EncodeBlob ¶
func EncodeBlob(data []byte) (*BlobCommitment, error)
type Client ¶
func (*Client) AwaitNextBlock ¶
func (*Client) AwaitTransaction ¶
func (*Client) AwaitWalletNonce ¶
func (*Client) GetBalanceAt ¶
func (*Client) GetBlockHeight ¶
func (*Client) GetPendingNonceAt ¶
func (*Client) GetRPCHost ¶
func (*Client) GetSuggestedFee ¶
func (*Client) GetTransactionReceipt ¶
func (*Client) SendTransaction ¶
func (client *Client) SendTransaction(tx *types.Transaction) error
func (*Client) SubmitTransaction ¶
func (*Client) UpdateWallet ¶
type TxMetadata ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) AddBalance ¶
func (*Wallet) BuildBlobTx ¶
func (*Wallet) BuildDynamicFeeTx ¶
func (wallet *Wallet) BuildDynamicFeeTx(txData *types.DynamicFeeTx) (*types.Transaction, error)
func (*Wallet) GetAddress ¶
func (*Wallet) GetBalance ¶
func (*Wallet) GetChainId ¶
func (*Wallet) ReplaceBlobTx ¶
func (*Wallet) ReplaceDynamicFeeTx ¶
func (wallet *Wallet) ReplaceDynamicFeeTx(txData *types.DynamicFeeTx, nonce uint64) (*types.Transaction, error)
func (*Wallet) SetBalance ¶
func (*Wallet) SetChainId ¶
func (*Wallet) SubBalance ¶
Click to show internal directories.
Click to hide internal directories.