Skip to content

feat(rpc): filter unconfirmed txs by tx hash #963

@lklimek

Description

@lklimek

Expected Behavior

We want to check if one particular tx is still in a mempool

Current Behavior

We can only retrieve all txs in mempool (paginated)

Possible Solution

We can create new endpoint to fetch unconfirmed tx by hash.

Alternatives Considered

Add filtering to RequestUnconfirmedTxsby Tx hash:

type RequestUnconfirmedTxs struct {
	Page    *Int64          `json:"page"`
	PerPage *Int64          `json:"per_page"`
	TxHash    *bytes.HexBytes `json:"tx_hash"`
}

Additional Context

Required for dashpay/platform#2261

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions