Add correlation_id to TransactionCreateRequest and TransactionHeader

Callers can set correlation_id when creating transactions to link
related transactions together (e.g. all transactions in a workflow).
The field propagates through the PRIME pipeline and child transactions.
This commit is contained in:
2026-03-31 06:17:05 -05:00
parent ee3c6941ee
commit 1fd2dd50ce

View File

@@ -9,6 +9,7 @@ type TransactionCreateRequest struct {
TxnType string `json:"txn_type"`
Payload string `json:"payload"`
Tag string `json:"tag,omitempty"`
CorrelationId string `json:"correlation_id,omitempty"`
}
type TransactionCreateResponse struct {
@@ -42,6 +43,7 @@ type TransactionHeader struct {
BlockId string `json:"block_id"`
TxnType string `json:"txn_type"`
Timestamp string `json:"timestamp"`
CorrelationId string `json:"correlation_id,omitempty"`
}
type TransactionProof struct {