Skip to content

Commit

Permalink
feat(jellyfish-api-core): Add updatemasternode RPC typings (#1847)
Browse files Browse the repository at this point in the history
<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:

- Add RPC updatemasternode

#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes part of #1842

Signed-off-by: Mark Tan <[email protected]>
Co-authored-by: Shoham Chakraborty <[email protected]>
Co-authored-by: Dilshan Madushanka <[email protected]>
Co-authored-by: Kven Ho <[email protected]>
  • Loading branch information
4 people authored Nov 29, 2022
1 parent 698a93d commit 68d604a
Show file tree
Hide file tree
Showing 3 changed files with 617 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/node/CATEGORIES/11-masternode.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ interface UTXO {
}
```

## updatemasternode

Creates (and submits to local node and network) a masternode update transaction which update the masternode operator addresses, spending the given inputs..
The last optional argument (may be empty array) is an array of specific UTXOs to spend.

```ts title="client.masternode.updatemasternode()"
interface masternode {
updateMasternode(masternodeId: string, values: UpdateMasternodeValues, utxos: UTXO[] = []): Promise<string>
}

interface UpdateMasternodeValues {
ownerAddress?: string
operatorAddress?: string
rewardAddress?: string
}
```

## setGov

Set special governance variables
Expand Down
Loading

0 comments on commit 68d604a

Please sign in to comment.