POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
createwitness
wallet/createwitness
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>"
}
TRON API method that creates a transaction to register an account as a witness (validator) on the TRON network. Witnesses participate in block production and network governance through the Delegated Proof of Stake (DPoS) consensus mechanism.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • owner_address — address of the account that will become a witness in hexadecimal format
  • url — witness website URL providing information about the witness (must be a valid URL)

Response

  • visible — boolean indicating whether addresses are in visible format
  • txID — unique transaction ID for the witness creation transaction
  • raw_data — raw transaction data containing:
    • contract — array with witness creation contract details
    • ref_block_bytes — reference block bytes for transaction validation
    • ref_block_hash — hash of the reference block
    • expiration — transaction expiration timestamp
    • timestamp — transaction creation timestamp
  • raw_data_hex — complete transaction data encoded in hexadecimal format

Use case

The wallet/createwitness method is used for:
  • Registering an account as a witness to participate in TRON network governance.
  • Setting up block production capabilities for earning rewards from the network.
  • Establishing a public presence for community voting and trust building.
  • Preparing to compete for one of the 27 Super Representative positions.
  • Contributing to network security and decentralization through validation services.
  • Building reputation and credibility within the TRON ecosystem.
This method only creates the witness registration transaction. You must sign the transaction and use wallet/broadcasttransaction to complete the witness registration. Becoming an active block producer requires receiving votes from TRX holders.

Body

application/json

Response

200 - application/json

Witness creation transaction

The response is of type object.