---
title: "inspect module · RUAL Documentation"
description: "Says what a WebAssembly module offers: its ABI, its callable exports, its memory and its SHA-256. A RUAL webassembly block in the modules group."
canonical: https://docs.rual.nl/block-types/webassembly/wasm_inspect
language: en
---

# inspect module

This block is part of the [`webassembly`](https://docs.rual.nl/block-types/webassembly) group and was last modified in core [`v15.0.3`](https://docs.rual.nl/core-versions/150003).

Says what a WebAssembly module offers: its ABI, its callable exports, its memory and its SHA-256.

- module `file` required `v15.0.3` The `.wasm` file: a file pin (an uploaded or stored file of this app) or a path in the app's files.

- exports `array` `v15.0.3` The names wasm_call can name.

- abi `value` `v15.0.3` rual_json_v1 or wasi_command.

- memory pages `number` `v15.0.3` Initial memory, in 64 KiB pages.

- sha256 `value` `v15.0.3` The module's id: the SHA-256 of its bytes, hex.

- size `number` `v15.0.3` Bytes.

- success `condition` `v15.0.3`

- error `value` `v15.0.3` A fixed code when the module could not be inspected.

Compiles (or finds compiled) the module file without running it. abi is rual_json_v1 or wasi_command; exports lists, sorted, the exports wasm_call can name on a rual_json_v1 module (those of signature (i32, i32) -> i64, without rual_alloc, rual_free, _initialize) and is empty for a command module, which dispatches on its argument; memory_pages is the initial linear memory in 64 KiB pages; sha256 (hex) is the id the module is cached under on every node; size is its bytes. sha256 and size are answered whenever the file was read, also when it does not compile. On failure success=false and error is one of MODULE_NOT_FOUND, MODULE_INVALID, MODULE_TOO_LARGE, MODULE_LIMIT (it declares more locals, tables, table entries, functions or the like than the runner admits), ABI_UNSUPPORTED (an import other than wasi_snapshot_preview1, or neither ABI), MEMORY_LIMIT (it declares more memory than the ceiling), TIMEOUT (still compiling; it is cached when done), WASM_BUSY, WASM_NOT_ENABLED. No flow pins. Runs in simulations.

| `webassembly` |
| --- |
| `wasm` |

## Version history

Introduced in [`v15.0.3`](https://docs.rual.nl/core-versions/150003).

- [Back to `webassembly`](https://docs.rual.nl/block-types/webassembly): Return to the main group to view all sub-groups

- [Back to `modules`](https://docs.rual.nl/block-types/webassembly?group=modules): Return to the group to view all blocks within this group
