curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/updatewitness \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
"update_url": "https://example.com/witness",
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": [
{
"type": "UpdateWitnessContract",
"parameter": {
"type_url": "type.googleapis.com/protocol.UpdateWitnessContract",
"value": {
"owner_address": "<string>",
"update_url": "<string>"
}
}
}
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/updatewitness \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
"update_url": "https://example.com/witness",
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": [
{
"type": "UpdateWitnessContract",
"parameter": {
"type_url": "type.googleapis.com/protocol.UpdateWitnessContract",
"value": {
"owner_address": "<string>",
"update_url": "<string>"
}
}
}
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}owner_address — hexadecimal address of the witness account to updateupdate_url — new URL string for the witness (maximum 256 bytes)visible — boolean indicating whether addresses should be in visible format (Base58Check)visible — boolean indicating whether addresses are in visible formattxID — unique transaction ID for the witness update transactionraw_data — raw transaction data containing:
contract — array with witness update contract detailsref_block_bytes — reference block bytes for transaction validationref_block_hash — hash of the reference blockexpiration — transaction expiration timestamptimestamp — transaction creation timestampraw_data_hex — complete transaction data encoded in hexadecimal formatwallet/updatewitness method is used for:
Was this page helpful?