embed_document
Prepare documents for Bitcoin blockchain storage by encoding content and metadata for OP_RETURN transactions, enabling on-chain data preservation up to 100KB.
Instructions
Prepare a document for on-chain storage.
Args:
content: Document content
content_type: MIME type of the content (default: 'text/plain')
encoding: Content encoding ('utf-8' or 'hex')
Returns:
Dictionary with prepared document data for embedding.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| content_type | No | text/plain | |
| encoding | No | utf-8 |