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

docs(rpc): add new rpcs #97

Merged
merged 13 commits into from
Feb 8, 2024
Prev Previous commit
Next Next commit
docs: add submitchainlock rpc
thephez committed Feb 5, 2024
commit 3ac62cca5b5038d9c2a0e0db1e6fa0226d4a30e0
32 changes: 32 additions & 0 deletions docs/api/remote-procedure-calls-evo.md
Original file line number Diff line number Diff line change
@@ -4065,6 +4065,38 @@ Result:
true
```

## SubmitChainlock

The [`submitchainlock` RPC](../api/remote-procedure-calls-evo.md#submitchainlock) is used to submit a ChainLock signature if the node does not yet have it.

*Parameters*

| Name | Type | Presence | Description |
| --------- | ------ | -------- | ----------- |
| blockHash | string | Required | The block hash of the ChainLock |
| signature | string | Required | The signature of the ChainLock |
| blockHeight | numeric | Required | The height of the ChainLock |

*Result---The height of the current best ChainLock*

| Name | Type | Presence | Description |
| ------ | ------- | ----------------------- | ----------- |
| Result | numeric | Required (Exactly 1) | The height of the current best ChainLock. If an error occurs, `-1` is returned. |

*Example from Dash Core 20.1.0*

```bash
dash-cli submitchainlock "000000f7e552718cf326024ba0b0110695300b730873de1942a4106b665fc034" "3045022100a59e3b0f..." 964445
```

Result:

```text
964445
```

*See also: none*

## VerifyChainLock

> 👍