hcs_write_record
Write a tamper-evident record to any open HCS topic on Hedera. Use this to write entries to your agent's own topic for continuity, memory, or history. topic_id is required — pass your agent topic ID. Returns record ID and tx proof. 0.1 HBAR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The compliance data to record (any JSON object) | |
| api_key | Yes | Your HederaIntel API key | |
| topic_id | Yes | HCS topic ID to write the record to. Must be an open topic you own or have access to. | |
| entity_id | Yes | ID of the entity this record relates to | |
| record_type | Yes | Type of compliance record (e.g. transaction, approval, audit_event) |