Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lklimek opened this issue Oct 22, 2024 · 0 comments
Open

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

lklimek opened this issue Oct 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lklimek
Copy link
Collaborator

lklimek commented Oct 22, 2024

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

Add filtering by Tx hash:

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

Alternatives Considered

We can create new endpoint, but we don't see any need for it.

Additional Context

Required for dashpay/platform#2261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant