Files
sonr/docs/reference/queries/query-dwn-ipfs-status.mdx
T

42 lines
1.0 KiB
Plaintext

---
title: Query IPFS Node Status
description: Check connectivity and status of the distributed storage layer
seo:
title: "IPFS Node Information"
---
:::info
IPFS provides distributed storage for large objects, vault exports, and encrypted backups.
:::
## IPFS Integration
### Node Information
- **Peer ID**: Unique identifier for the IPFS node
- **Peer Name**: Human-readable node name
- **Peer Type**: Node configuration (gateway, full, light)
- **Version**: IPFS daemon version
### Use Cases
- **Large Files**: Store files exceeding `maxRecordSize`
- **Vault Exports**: Backup encrypted vault data
- **Protocol Assets**: Store protocol-related media
- **Public Content**: Distribute public records efficiently
:::tip
Store only metadata and CIDs on-chain for gas efficiency, with actual data in IPFS.
:::
## Common Patterns
```bash
# Upload to IPFS first
ipfs add large_file.pdf
# Store CID in DWN record
snrd tx dwn records-write --data-cid <cid>
```
:::warning
Ensure IPFS node is running and accessible before storing large objects.
:::