Documentation
¶
Index ¶
- func CreateCrossTxRequestMsg(ctx context.Context, ac1 *accounts.Account, ac2 *accounts.Account, ...) ([]byte, error)
- func CreateTransaction(ctx context.Context, tx TransactionDetails, ac *accounts.Account) (*types.Transaction, []byte, error)
- func CreateTransactionWithNonce(ctx context.Context, tx TransactionDetails, ac *accounts.Account, nonce uint64) (*types.Transaction, []byte, error)
- func DistributeEth(ctx context.Context, sponsor *accounts.Account, recipients []*accounts.Account, ...) error
- func GenerateRandomSessionID() *big.Int
- func GetTransactionDetails(ctx context.Context, txHash common.Hash, rollup *rollup.Rollup) (*types.Transaction, *types.Receipt, error)
- func SendCrossTxRequestMsg(ctx context.Context, rpcURL string, encodedPayload []byte) error
- func SendTransaction(ctx context.Context, tx *types.Transaction, rpcURL string) (common.Hash, error)
- type TransactionDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCrossTxRequestMsg ¶
func CreateTransaction ¶
func CreateTransaction(ctx context.Context, tx TransactionDetails, ac *accounts.Account) (*types.Transaction, []byte, error)
func CreateTransactionWithNonce ¶
func CreateTransactionWithNonce(ctx context.Context, tx TransactionDetails, ac *accounts.Account, nonce uint64) (*types.Transaction, []byte, error)
func DistributeEth ¶
func DistributeEth(ctx context.Context, sponsor *accounts.Account, recipients []*accounts.Account, amount *big.Int) error
DistributeEth distributes ETH to the given recipients. Used for distributing ETH from one account to multiple accounts.
func GenerateRandomSessionID ¶
generateRandomSessionID returns a random big.Int in the range [0, 2^63-1]
func GetTransactionDetails ¶
func GetTransactionDetails(ctx context.Context, txHash common.Hash, rollup *rollup.Rollup) (*types.Transaction, *types.Receipt, error)
GetTransactionDetails retrieves transaction details from the blockchain using the transaction hash and RPC URL It will wait and retry every 600 milliseconds if the transaction is pending until it's confirmed or fails
func SendCrossTxRequestMsg ¶
func SendTransaction ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.