Skip to main content
Write and read compact JSON data (or file references) via lifecycle ROS 2 services. For high-throughput telemetry with IPFS, see Verifiable Storage.

Write data (/storage/add)

ros2 service call /peaq_core_node/storage/add \
  peaq_ros2_interfaces/srv/StoreAddData \
  '{key: "DEMO", value_json: "{\"ok\": true}", confirmation_mode: "FAST"}'
Expected output (abridged):
status: submitted
message: "Storage transaction initiated"
tx_hash: 0xabc123...

Read data (/storage/read)

ros2 service call /peaq_core_node/storage/read \
  peaq_ros2_interfaces/srv/StoreReadData \
  '{key: "DEMO"}'
Example response:
exists: true
value_json: '{"ok": true}'
cid: Qm...
Subsections
  • Add: submit JSON data with /storage/add
  • Read: retrieve JSON data with /storage/read
  • Telemetry & Configuration: see Verifiable Storage for IPFS setup and retry policies
Tips
  • Pair service calls with ros2 topic echo /peaq/tx_status to monitor confirmation phases (PENDING, IN_BLOCK, FINALIZED).
  • Use confirmation_mode: FINAL in production for stronger guarantees.
  • For files, publish via the peaq/storage/ingest topic handled by the storage bridge.