curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createwitness \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"url": "https://mywitness.example.com",
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"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": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"url": "https://mywitness.example.com",
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"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. Use base58 with visible: true, or hex with visible: false.url — witness website URL providing information about the witness (must be a valid URL)visible — optional boolean. When true, addresses are base58; when false, hex. Default is true.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.curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createwitness' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
"url": "https://mywitness.example.com",
"visible": true
}'
INVALID hex String? Provide a base58 address with visible: true, or a 21‑byte hex address (starts with 41…) with visible: false.Witness creation transaction
Whether addresses are in visible format
Transaction ID for witness creation
Raw transaction data in hex format
Was this page helpful?