hcs_write_record
Write tamper-evident compliance records to the Hedera blockchain for transactions, approvals, or audit events, providing record IDs and transaction proofs.
Instructions
Write a tamper-evident compliance record to the Hedera blockchain. Returns a record ID and transaction proof. If no topic_id is provided, writes to the shared HederaIntel platform topic. Costs 2 HBAR.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"record_type": "<record_type>",
"entity_id": "<entity_id>",
"data": "<data>"
},
"name": "hcs_write_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your HederaIntel API key | |
| record_type | Yes | Type of compliance record (e.g. transaction, approval, audit_event) | |
| entity_id | Yes | ID of the entity this record relates to | |
| data | Yes | The compliance data to record (any JSON object) | |
| topic_id | No | HCS topic ID to write the record to. Defaults to the HederaIntel platform topic. |