txpool

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxAccountMap

type TxAccountMap map[string]TxNonceMap

type TxNonceMap

type TxNonceMap map[string]*rpc.RPCTransaction

type TxPoolClient

type TxPoolClient struct {
	// contains filtered or unexported fields
}

TxPoolClient defines typed wrappers for the TxPool RPC API.

func NewClient

func NewClient(c *rpc.Client) *TxPoolClient

NewClient creates a client that uses the given RPC client.

func (*TxPoolClient) Content

func (tpc *TxPoolClient) Content(ctx context.Context) (*TxPoolContent, error)
{
  pending: {
    0x0216d5032f356960cd3749c31ab34eeff21b3395: {
      806: RPCTransaction,
    },
    0x24d407e5a0b506e1cb2fae163100b5de01f5193c: {
      34: RPCTransaction,
    }
  },
  queued: {
    0x976a3fc5d6f7d259ebfb4cc2ae75115475e9867c: {
      3: RPCTransaction,
    },
    0x9b11bf0459b0c4b2f87f8cebca4cfc26f294b63a: {
      2: RPCTransaction,
      6: RPCTransaction,
    }
  }
}

type TxPoolContent

type TxPoolContent map[string]TxAccountMap

Jump to

Keyboard shortcuts

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