mempool

package
v0.0.0-...-3eec7cb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MempoolBaseURL = "https://mempool.dipdup.net/v1/graphql"
)

urls

Variables

This section is empty.

Functions

This section is empty.

Types

type Mempool

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

Mempool -

func NewMempool

func NewMempool(url string) *Mempool

NewMempool -

func (*Mempool) Get

func (m *Mempool) Get(ctx context.Context, address string) (result PendingOperations, err error)

Get -

func (*Mempool) GetByHash

func (m *Mempool) GetByHash(ctx context.Context, hash string) (result PendingOperations, err error)

GetByHash -

type PendingOperations

type PendingOperations struct {
	Transactions []PendingTransaction `json:"transactions"`
	Originations []PendingOrigination `json:"originations"`
}

PendingOperations -

type PendingOrigination

type PendingOrigination struct {
	Balance         string          `json:"balance"`
	Branch          string          `json:"branch"`
	CreatedAt       int64           `json:"created_at"`
	Delegate        string          `json:"delegate"`
	Errors          json.RawMessage `json:"errors"`
	ExpirationLevel *int64          `json:"expiration_level,omitempty"`
	Fee             int64           `json:"fee"`
	GasLimit        int64           `json:"gas_limit"`
	Kind            string          `json:"kind"`
	Level           *int64          `json:"level,omitempty"`
	Signature       string          `json:"signature"`
	Source          string          `json:"source"`
	Status          string          `json:"status"`
	Storage         json.RawMessage `json:"storage"`
	StorageLimit    int64           `json:"storage_limit"`
	UpdatedAt       int64           `json:"updated_at"`
	Network         string          `json:"network"`
	Hash            string          `json:"hash"`
	Counter         int64           `json:"counter"`
	Raw             json.RawMessage `json:"raw"`
	Protocol        string          `json:"protocol"`
}

PendingOrigination -

type PendingTransaction

type PendingTransaction struct {
	Amount          json.Number     `json:"amount"`
	Branch          string          `json:"branch"`
	CreatedAt       int64           `json:"created_at"`
	Errors          json.RawMessage `json:"errors"`
	ExpirationLevel *int64          `json:"expiration_level,omitempty"`
	Fee             int64           `json:"fee"`
	GasLimit        int64           `json:"gas_limit"`
	Kind            string          `json:"kind"`
	Level           *int64          `json:"level,omitempty"`
	Parameters      json.RawMessage `json:"parameters"`
	Signature       string          `json:"signature"`
	Source          string          `json:"source"`
	Status          string          `json:"status"`
	StorageLimit    int64           `json:"storage_limit"`
	UpdatedAt       int64           `json:"updated_at"`
	Destination     string          `json:"destination"`
	Network         string          `json:"network"`
	Hash            string          `json:"hash"`
	Counter         int64           `json:"counter"`
	Raw             json.RawMessage `json:"raw"`
	Protocol        string          `json:"protocol"`
}

PendingTransaction -

Jump to

Keyboard shortcuts

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