Skip to content

getrawmempool rpc response is incompatible with bitcoin core response #2310

@lnliz

Description

@lnliz

getrawmempool rpc response is missing multiple fields like fees that make it impossible to use the rpc client with a vanilla bitcoin core node.
fees were added in bitcoin 0.17.0 almost 7 years ago: https://bitcoincore.org/en/releases/0.17.0/

i can look into creating a PR to make this parity but wanted to ask first if it's desired.

current response struct:

type GetRawMempoolVerboseResult struct {
Size int32 `json:"size"`
Vsize int32 `json:"vsize"`
Weight int32 `json:"weight"`
Fee float64 `json:"fee"`
Time int64 `json:"time"`
Height int64 `json:"height"`
StartingPriority float64 `json:"startingpriority"`
CurrentPriority float64 `json:"currentpriority"`
Depends []string `json:"depends"`
}

bitcoin core:
https://bitcoincore.org/en/doc/28.0.0/rpc/blockchain/getrawmempool/

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions