Skip to content

Commit 454cc4b

Browse files
authored
fix: set include_mempool not mandatory and default to false. (#115)
1 parent 9a0729c commit 454cc4b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

api/src/main/resources/rosetta-specifications-1.4.15/api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,8 +1654,7 @@
16541654
"type": "object",
16551655
"required": [
16561656
"network_identifier",
1657-
"account_identifier",
1658-
"include_mempool"
1657+
"account_identifier"
16591658
],
16601659
"properties": {
16611660
"network_identifier": {
@@ -1666,6 +1665,7 @@
16661665
},
16671666
"include_mempool": {
16681667
"type": "boolean",
1668+
"default": false,
16691669
"description": "Include state from the mempool when looking up an account's unspent coins. Note, using this functionality breaks any guarantee of idempotency."
16701670
},
16711671
"currencies": {

api/src/main/resources/rosetta-specifications-1.4.15/api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,14 +1113,14 @@ components:
11131113
required:
11141114
- network_identifier
11151115
- account_identifier
1116-
- include_mempool
11171116
properties:
11181117
network_identifier:
11191118
$ref: '#/components/schemas/NetworkIdentifier'
11201119
account_identifier:
11211120
$ref: '#/components/schemas/AccountIdentifier'
11221121
include_mempool:
11231122
type: boolean
1123+
default: false
11241124
description: Include state from the mempool when looking up an account's unspent coins. Note, using this functionality breaks any guarantee of idempotency.
11251125
currencies:
11261126
type: array

docs/cardano-specific-api-additions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ To support all of these operations extra metadata in addition to the Rosetta Spe
4141
"poolRegistrationParams": { "type": "PoolRegistrationParams"} // Extra Parameters for a pool registration. Only use if it's a pool registration operation.
4242
"voteRegistrationMetadata": { "type": "VoteRegistrationMetadata"} // Metadata to register votes. Only use if it's a vote registration operation.
4343
```
44+
45+
### ``/account/coins``
46+
`include_mempool` is an optional parameter that can be used to include mempool transactions in the response.
47+
If not set, it will be ignored. Default is false, since mempool tracking is not activated by default as well.
48+
4449
### ``/construction/derive``
4550
Following the rosetta specification this endpoint returns an Enterprise address.
4651
In addition to that Cardano Rosetta Java allows the creation of Reward and Base addresses, which aren't supported in the Rosetta specification.

0 commit comments

Comments
 (0)