nonce

package
v0.0.0-...-25c641e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// GetNonce returns the nonce which will be associated with an account.
	GetNonce(ctx context.Context, address *common.Address) (*big.Int, error)
}

Provider defines method to get a nonce value

func NewFixedNonceProvider

func NewFixedNonceProvider(nonce *big.Int) Provider

NewFixedNonceProvider utility method to create a nonce provider which will return a fixed nonce value

func NewNetworkNonceProvider

func NewNetworkNonceProvider(client *ethclient.Client) Provider

NewNetworkNonceProvider utility method to create a nonce provider which will interrogate the network for the nonce value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL