Skip to content

Commit bffb46d

Browse files
authored
RPC API: Remove/Add deprecations, update examples (#1703)
1 parent d8bc868 commit bffb46d

4 files changed

Lines changed: 22 additions & 37 deletions

File tree

openrpc/src/stellar-rpc/methods/getVersionInfo.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"version": {
1616
"type": "string",
1717
"description": "The version of the RPC server.",
18-
"example": "21.1.0"
18+
"example": "23.0.1"
1919
},
2020
"commitHash": {
2121
"type": "string",
@@ -25,21 +25,19 @@
2525
"buildTimestamp": {
2626
"type": "string",
2727
"description": "The build timestamp of the RPC server.",
28-
"example": "2024-05-10T11:18:38"
28+
"example": "2025-05-10T11:18:38"
2929
},
3030
"captiveCoreVersion": {
3131
"type": "string",
3232
"description": "The version of the Captive Core.",
33-
"example": "stellar-core 21.0.0.rc2 (c6f474133738ae5f6d11b07963ca841909210273)"
33+
"example": "stellar-core 23.0.1 (050eacf11a15afb2e95560dfb5723dfdcf78070f)"
3434
},
3535
"protocolVersion": {
3636
"type": "integer",
3737
"description": "The protocol version.",
38-
"example": 21
38+
"example": 23
3939
}
40-
41-
},
42-
"required": ["version", "commit_hash", "build_time_stamp", "captive_core_version", "protocol_version"]
40+
}
4341
}
4442
},
4543
"examples": [
@@ -50,11 +48,11 @@
5048
"result": {
5149
"name": "getVersionInfoResult",
5250
"value": {
53-
"version": "21.1.0",
51+
"version": "23.0.1",
5452
"commit_hash": "fcd2f0523f04279bae4502f3e3fa00ca627e6f6a",
55-
"build_time_stamp": "2024-05-10T11:18:38",
56-
"captive_core_version": "stellar-core 21.0.0.rc2 (c6f474133738ae5f6d11b07963ca841909210273)",
57-
"protocol_version": 21
53+
"build_time_stamp": "2025-05-10T11:18:38",
54+
"captive_core_version": "stellar-core 23.0.1 (050eacf11a15afb2e95560dfb5723dfdcf78070f)",
55+
"protocol_version": 23
5856
}
5957
}
6058
}

openrpc/src/stellar-rpc/schemas/Event.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
"id": {
2121
"$ref": "#/components/schemas/EventId"
2222
},
23-
"pagingToken": {
24-
"description": "Duplicate of `id` field. This field is deprecated, please use the `cursor` field at the top level of the getEvents response for pagination.",
25-
"$ref": "#/components/schemas/EventId"
26-
},
2723
"inSuccessfulContractCall": {
2824
"description": "If true the event was emitted during a successful contract call.",
25+
"deprecated": true,
2926
"type": "boolean"
3027
},
3128
"topic": {

openrpc/src/stellar-rpc/schemas/TransactionEvents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"ContractEvent": {
2323
"type": "array",
24-
"description": "Base64-encoded contract events emitted by a single operation within the transaction.",
24+
"description": "Base64-encoded [xdr.ContractEvent]([xdr.ContractEvent](https://github.com/stellar/stellar-xdr/blob/v23.0/Stellar-ledger.x#L371-L390) emitted by a single operation within the transaction.",
2525
"items": {
2626
"type": "string"
2727
}

static/stellar-rpc.openrpc.json

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,9 @@
188188
"description": "Unique identifier for this event, based on the [TOID](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0035.md#specification) format. It combines a 19-character TOID and a 10-character, zero-padded event index, separated by a hyphen. \n\n- For example: `0000000000000123456-0000000001`",
189189
"type": "string"
190190
},
191-
"pagingToken": {
192-
"description": "Duplicate of `id` field. This field is deprecated, please use the `cursor` field at the top level of the getEvents response for pagination.",
193-
"type": "string"
194-
},
195191
"inSuccessfulContractCall": {
196192
"description": "If true the event was emitted during a successful contract call.",
193+
"deprecated": true,
197194
"type": "boolean"
198195
},
199196
"topic": {
@@ -1203,7 +1200,7 @@
12031200
"description": "A nested array of base64-encoded [xdr.ContractEvent](https://github.com/stellar/stellar-xdr/blob/v23.0/Stellar-ledger.x#L371-L390). Each inner array represents the contract events emitted by a single operation within the transaction.",
12041201
"items": {
12051202
"type": "array",
1206-
"description": "Base64-encoded contract events emitted by a single operation within the transaction.",
1203+
"description": "Base64-encoded [xdr.ContractEvent]([xdr.ContractEvent](https://github.com/stellar/stellar-xdr/blob/v23.0/Stellar-ledger.x#L371-L390) emitted by a single operation within the transaction.",
12071204
"items": {
12081205
"type": "string"
12091206
}
@@ -1448,7 +1445,7 @@
14481445
"description": "A nested array of base64-encoded [xdr.ContractEvent](https://github.com/stellar/stellar-xdr/blob/v23.0/Stellar-ledger.x#L371-L390). Each inner array represents the contract events emitted by a single operation within the transaction.",
14491446
"items": {
14501447
"type": "array",
1451-
"description": "Base64-encoded contract events emitted by a single operation within the transaction.",
1448+
"description": "Base64-encoded [xdr.ContractEvent]([xdr.ContractEvent](https://github.com/stellar/stellar-xdr/blob/v23.0/Stellar-ledger.x#L371-L390) emitted by a single operation within the transaction.",
14521449
"items": {
14531450
"type": "string"
14541451
}
@@ -1916,18 +1913,11 @@
19161913
"name": "getVersionInfoResult",
19171914
"schema": {
19181915
"type": "object",
1919-
"required": [
1920-
"version",
1921-
"commit_hash",
1922-
"build_time_stamp",
1923-
"captive_core_version",
1924-
"protocol_version"
1925-
],
19261916
"properties": {
19271917
"version": {
19281918
"type": "string",
19291919
"description": "The version of the RPC server.",
1930-
"example": "21.1.0"
1920+
"example": "23.0.1"
19311921
},
19321922
"commitHash": {
19331923
"type": "string",
@@ -1937,17 +1927,17 @@
19371927
"buildTimestamp": {
19381928
"type": "string",
19391929
"description": "The build timestamp of the RPC server.",
1940-
"example": "2024-05-10T11:18:38"
1930+
"example": "2025-05-10T11:18:38"
19411931
},
19421932
"captiveCoreVersion": {
19431933
"type": "string",
19441934
"description": "The version of the Captive Core.",
1945-
"example": "stellar-core 21.0.0.rc2 (c6f474133738ae5f6d11b07963ca841909210273)"
1935+
"example": "stellar-core 23.0.1 (050eacf11a15afb2e95560dfb5723dfdcf78070f)"
19461936
},
19471937
"protocolVersion": {
19481938
"type": "integer",
19491939
"description": "The protocol version.",
1950-
"example": 21
1940+
"example": 23
19511941
}
19521942
}
19531943
}
@@ -1960,11 +1950,11 @@
19601950
"result": {
19611951
"name": "getVersionInfoResult",
19621952
"value": {
1963-
"version": "21.1.0",
1953+
"version": "23.0.1",
19641954
"commit_hash": "fcd2f0523f04279bae4502f3e3fa00ca627e6f6a",
1965-
"build_time_stamp": "2024-05-10T11:18:38",
1966-
"captive_core_version": "stellar-core 21.0.0.rc2 (c6f474133738ae5f6d11b07963ca841909210273)",
1967-
"protocol_version": 21
1955+
"build_time_stamp": "2025-05-10T11:18:38",
1956+
"captive_core_version": "stellar-core 23.0.1 (050eacf11a15afb2e95560dfb5723dfdcf78070f)",
1957+
"protocol_version": 23
19681958
}
19691959
}
19701960
}

0 commit comments

Comments
 (0)