iota_object
Fetch on-chain object data from the IOTA blockchain by ID to retrieve owner, type, version, and content details for analysis or verification.
Instructions
Fetch on-chain object data by ID. Returns owner, type, version, and content.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_id | Yes | IOTA object ID (0x...) |
Implementation Reference
- src/index.ts:237-250 (handler)Handler implementation for the 'iota_object' tool, which calls the 'iota_getObject' RPC method to retrieve object details.
server.tool( "iota_object", "Fetch on-chain object data by ID. Returns owner, type, version, and content.", { object_id: z.string().describe("IOTA object ID (0x...)"), }, async ({ object_id }) => text( await rpc("iota_getObject", [ object_id, { showContent: true, showOwner: true, showType: true }, ]) ) );