Skip to content

Commit b521e1e

Browse files
authored
Merge pull request #84 from paritytech/jsdw-index-as-integer
Use integer, not string for block index in `chainHead_follow` events
2 parents aae7190 + 9c07626 commit b521e1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/transaction_unstable_submitAndWatch.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If multiple `broadcasted` events happen in a row, the JSON-RPC server is allowed
6969
"event": "bestChainBlockIncluded",
7070
"block": {
7171
"hash": "...",
72-
"index": "..."
72+
"index": ...
7373
}
7474
}
7575
```
@@ -87,7 +87,7 @@ The `bestChainBlockIncluded` event indicates which block of the best chain the t
8787

8888
`null` can be sent back in case the block is no longer in any block of the best chain. This is the state a transaction starts in.
8989

90-
`hash` is a string containing the hexadecimal-encoded hash of the header of the block. `index` is a string containing an integer indicating the 0-based index of this transaction within the body of this block.
90+
`hash` is a string containing the hexadecimal-encoded hash of the header of the block. `index` is an integer indicating the 0-based index of this transaction within the body of this block.
9191

9292
If multiple `bestChainBlockIncluded` events happen in a row, the JSON-RPC server is allowed to skip all but the last.
9393

@@ -100,14 +100,14 @@ If multiple `bestChainBlockIncluded` events happen in a row, the JSON-RPC server
100100
"event": "finalized",
101101
"block": {
102102
"hash": "...",
103-
"index": "..."
103+
"index": ...
104104
}
105105
}
106106
```
107107

108108
The `finalized` event indicates that this transaction is present in a block of the chain that is finalized.
109109

110-
`hash` is a string containing the hexadecimal-encoded hash of the header of the block. `index` is a string containing an integer indicating the 0-based index of this transaction within the body of this block.
110+
`hash` is a string containing the hexadecimal-encoded hash of the header of the block. `index` is an integer indicating the 0-based index of this transaction within the body of this block.
111111

112112
No more event will be generated about this transaction.
113113

0 commit comments

Comments
 (0)