curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createwitness \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "41b487cdb2d8dc7b2a8e5e7e7b4e3e8b8b8b8b8b",
"url": "https://mywitness.example.com"
}'
{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": [
"<any>"
],
"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/createwitness \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "41b487cdb2d8dc7b2a8e5e7e7b4e3e8b8b8b8b8b",
"url": "https://mywitness.example.com"
}'
{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": [
"<any>"
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}
owner_address
— address of the account that will become a witness in hexadecimal formaturl
— witness website URL providing information about the witness (must be a valid URL)visible
— boolean indicating whether addresses are in visible formattxID
— unique transaction ID for the witness creation transactionraw_data
— raw transaction data containing:
contract
— array with witness creation 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/createwitness
method is used for:
wallet/broadcasttransaction
to complete the witness registration. Becoming an active block producer requires receiving votes from TRX holders.Witness creation transaction
The response is of type object
.
Was this page helpful?