Update a topic
A transaction that updates the properties of an existing topic. This includes the topic memo, admin key, submit key, auto renew account, and auto renew period.
Topic Properties
Field | Description |
---|---|
Topic ID | Update the topic ID |
Admin Key | Set a new admin key that authorizes update topic and delete topic transactions. |
Submit Key | Set a new submit key for a topic that authorizes sending messages to this topic. |
Topic Memo | Set a new short publicly visible memo on the new topic and is stored with the topic. (100 bytes) |
Auto Renew Account | Set a new auto-renew account ID for this topic (once autoRenew functionality is supported by HAPI). |
Auto Renew Period | Set a new auto -enew period for this topic (once autoRenew functionality is supported by HAPI). |
Transaction Signing Requirements
If an admin key is updated, the transaction must be signed by the pre-update admin key and post-update admin key.
If the admin key was set during the creation of the topic, the admin key must sign the transaction to update any of the topic's properties
If no adminKey was defined during the creation of the topic, you can only extend the expirationTime.
Transaction Fees
Please see the transaction and query fees table for base transaction fee
Please use the Hedera fee estimator to estimate your transaction fee cost
Constructor | Description |
---|---|
| Initializes the ConsensusTopicUpdateTransaction object |
Methods
Method | Type | Requirements |
---|---|---|
| TopicId | Required |
| Key | Optional |
| Key | Optional |
| Instant | Optional |
| String | Optional |
| AccountId | Optional |
| Duration | Optional |
| Optional | |
| Optional | |
| Optional | |
| Optional |
Get transaction values
Method | Type | Requirements |
---|---|---|
| TopicId | Optional |
| Key | Optional |
| Key | Optional |
| String | Optional |
| AccountId | Disabled |
| Duration | Disabled |
Last updated