protx_update_service {disallowed} - Dash

Example code for the protx_update_service {disallowed} json-rpc method. Сomplete guide on how to use protx_update_service {disallowed} json-rpc in GetBlock.io Web3 documentation.

Parameters

submethod - string

None

proTxHash - string (hex)

The hash of the provider transaction as hex in RPC byte order.

ipAndPort - string

IP and port in the form IP:PORT.

Must be unique on the network. Can be set to 0, which will require a ProUpServTx afterwards.

operatorPubKey - string (hex)

The operator public key. The private key does not have to be known. It has to match the private key which is later used when operating the masternode.

If set to an empty string, the currently active operator BLS public key is reused.

operatorPayoutAddress - string (hex)

Optional.

The Dash address used for operator reward payments. Only allowed when the ProRegTx had a non-zero operatorReward value.

If set to an empty string, the currently active payout address is reused.

feeSourceAddress - string

Optional.

If specified, the wallet will only use coins from this address to fund the ProTx. If not specified, payoutAddress will be used. The private key belonging to this address must be known in your wallet.

Request

curl --location --request POST 'https://dash.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "protx",
"params": ["update_service", null, null, null, null, null],
"id": "getblock.io"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

Last updated

© 2019-2024 GetBlock LLC. All rights reserved ID: 21835790. Address: Belgrade, Serbia.