diff --git a/src/topic/TopicMessageSubmitTransaction.js b/src/topic/TopicMessageSubmitTransaction.js index d223053f3..a9fd97359 100644 --- a/src/topic/TopicMessageSubmitTransaction.js +++ b/src/topic/TopicMessageSubmitTransaction.js @@ -80,12 +80,16 @@ export default class TopicMessageSubmitTransaction extends Transaction { /** * @private * @type {number} + * The maximum number of chunks a topic message can be split into. + * Default max chunk size: 20 + * This value can be overridden with `setMaxChunks` */ this._maxChunks = 20; /** * @private * @type {number} + * The size of each chunk for a given topic message in bytes. */ this._chunkSize = CHUNK_SIZE; diff --git a/src/transaction/Transaction.js b/src/transaction/Transaction.js index a3412b1ad..dcbb66f10 100644 --- a/src/transaction/Transaction.js +++ b/src/transaction/Transaction.js @@ -59,6 +59,8 @@ export const DEFAULT_RECORD_THRESHOLD = Hbar.fromTinybars( // 120 seconds const DEFAULT_TRANSACTION_VALID_DURATION = 120; +// The default message chunk size in bytes when splitting a given message. +// This value can be overriden using `setChunkSize` when preparing to submit a messsage via `TopicMessageSubmitTransaction`. export const CHUNK_SIZE = 1024; /**