Skip to content

Commit e0e61e4

Browse files
majectymergify[bot]
authored andcommitted
Add the spec of chain_getMetadataSeq
1 parent 544bcce commit e0e61e4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

spec/JSON-RPC.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,35 @@ Errors: `Invalid Params`
14671467

14681468
[Back to **List of methods**](#list-of-methods)
14691469

1470+
# chain_getMetadataSeq
1471+
Gets the sequence of metadata.
1472+
It returns null if the block number parameter is larger than the current best block.
1473+
1474+
### Params
1475+
1. block number - `number` | `null`
1476+
1477+
### Returns
1478+
`number` | `null`
1479+
1480+
### Request Example
1481+
```
1482+
curl \
1483+
-H 'Content-Type: application/json' \
1484+
-d '{"jsonrpc": "2.0", "method": "chain_getMeatadataSeq", "params": [53], "id": 7}' \
1485+
localhost:8080
1486+
```
1487+
1488+
### Response Example
1489+
```
1490+
{
1491+
"jsonrpc":"2.0",
1492+
"result":43,
1493+
"id":7
1494+
}
1495+
```
1496+
1497+
[Back to **List of methods**](#list-of-methods)
1498+
14701499
## chain_executeTransaction
14711500
Executes the transactions and returns whether the execution is successful.
14721501

0 commit comments

Comments
 (0)