mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
rpc: paginate mempool /unconfirmed_txs endpoint (#7612)
This commit changes the behaviour of the /unconfirmed_txs endpoint by replacing limit with a page and perPage parameter for pagination. The test case for unconfirmed_txs have been accommodated to properly test this change and the documentation for the API as well.
This commit is contained in:
@@ -1062,13 +1062,21 @@ paths:
|
||||
operationId: unconfirmed_txs
|
||||
parameters:
|
||||
- in: query
|
||||
name: limit
|
||||
description: Maximum number of unconfirmed transactions to return (max 100)
|
||||
name: page
|
||||
description: "Page number (1-based)"
|
||||
required: false
|
||||
schema:
|
||||
type: integer
|
||||
default: 30
|
||||
default: 1
|
||||
example: 1
|
||||
- in: query
|
||||
name: per_page
|
||||
description: "Number of entries per page (max: 100)"
|
||||
required: false
|
||||
schema:
|
||||
type: integer
|
||||
example: 100
|
||||
default: 30
|
||||
tags:
|
||||
- Info
|
||||
description: |
|
||||
|
||||
Reference in New Issue
Block a user