Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicit guarantees on the finalized event of submitAndWatch #76

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/api/transaction_unstable_submitAndWatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ If multiple `bestChainBlockIncluded` events happen in a row, the JSON-RPC server
}
```

The `finalized` event indicates that this transaction is present in a block of the chain that is finalized.
The `finalized` event indicates that the latest block that was previously reported with `bestChainBlockIncluded` is now finalized.

`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.

No more event will be generated about this transaction.

**Note**: Please note that when this event occurs, the `bestChainBlockIncluded` event always precedes the `finalized` event of `chainHead_unstable_follow`, which includes the block hash from `bestChainBlockIncluded` in its list of `finalizedBlockHashes`.

### error

```json
Expand Down