Documentation
¶
Index ¶
- type Client
- func (c *Client) BlockByNumber(ctx context.Context, blockNumber uint64) (*zktypes.Block, error)
- func (c *Client) CheckTxPendingByHash(txHash common.Hash) (*configs.RPCResponse, bool, error)
- func (c *Client) ExecuteETHTransact(prkHex string, from common.Address, to common.Address, value *big.Int, ...) (*types.Receipt, error)
- func (c *Client) GetChainID() (uint64, error)
- func (c *Client) GetETHClient() (*ethclient.Client, error)
- func (c *Client) GetGasPrice() (*big.Int, error)
- func (c *Client) GetPaymasterParams() (*zktypes.PaymasterParams, error)
- func (c *Client) GetPaymasterParamsWithFee(fee *big.Int) (*zktypes.PaymasterParams, error)
- func (c *Client) GetZkClient() (clients.Client, error)
- func (c *Client) PaymasterParams() *zktypes.PaymasterParams
- func (c *Client) PopulateTransaction(ctx context.Context, address common.Address, tx accounts.Transaction) (*zktypes.Transaction712, error)
- func (c *Client) SendETHTransact(client *ethclient.Client, prkHex string, from common.Address, ...) (common.Hash, error)
- func (c *Client) SendETHTransactWithLock(client *ethclient.Client, prkHex string, from common.Address, ...) (common.Hash, error)
- func (c *Client) SetPaymasterParams(tx *accounts.Transaction) error
- func (c *Client) SignTransaction(signer accounts.Signer, tx *zktypes.Transaction712) ([]byte, error)
- func (c *Client) Transact(prkHex string, from common.Address, to common.Address, value *big.Int, ...) (*zktypes.Receipt, error)
- func (c *Client) WaitMined(ctx context.Context, txHash common.Hash) (*zktypes.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string PaymasterFeeZero bool PaymasterAddress string PaymasterToken string // contains filtered or unexported fields }
func NewZkClient ¶
func (*Client) BlockByNumber ¶
func (*Client) CheckTxPendingByHash ¶
func (*Client) ExecuteETHTransact ¶
func (*Client) GetChainID ¶
func (*Client) GetPaymasterParams ¶
func (c *Client) GetPaymasterParams() (*zktypes.PaymasterParams, error)
func (*Client) GetPaymasterParamsWithFee ¶
func (*Client) PaymasterParams ¶
func (c *Client) PaymasterParams() *zktypes.PaymasterParams
func (*Client) PopulateTransaction ¶
func (c *Client) PopulateTransaction(ctx context.Context, address common.Address, tx accounts.Transaction) (*zktypes.Transaction712, error)
func (*Client) SendETHTransact ¶
func (c *Client) SendETHTransact(client *ethclient.Client, prkHex string, from common.Address, to common.Address, value *big.Int, input []byte) (common.Hash, error)
Copy from the function `(c *BoundContract) createDynamicTx` in the `eth` package.
func (*Client) SendETHTransactWithLock ¶
func (*Client) SetPaymasterParams ¶
func (c *Client) SetPaymasterParams(tx *accounts.Transaction) error
func (*Client) SignTransaction ¶
Click to show internal directories.
Click to hide internal directories.