Docs · Reference
Reference
Addresses, the Solidity interface, the WMDL format, error codes.
Addresses (Robinhood Chain, 4663)
| Contract | Address |
|---|---|
| Registry | 0x320D078b873912cf8dDe00f750fd16240C457ca7 |
| Runtime | 0xc4719faa2e54d0763cec9b5392a85666a4c38a7e |
| Arena | 0x2723b2c2eb008b6d1800cdc58a436865336231c6 |
| USDG | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
RPC https://rpc.mainnet.chain.robinhood.com · explorer https://robinhoodchain.blockscout.com · API https://www.usewired.net/api/v1.
Solidity interface
Copy this file next to your contract:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// Registry on Robinhood Chain (4663): 0x320D078b873912cf8dDe00f750fd16240C457ca7
interface IWired {
struct Model {
address owner;
uint32 inputLen;
uint32 outputLen;
uint64 registeredAt;
uint64 decisions;
string name;
string uri;
address[] blobs;
}
function infer(bytes32 id, bytes calldata input) external view returns (int256[] memory);
function classify(bytes32 id, bytes calldata input) external view returns (uint256 label, int256[] memory logits);
function decide(bytes32 id, bytes calldata input) external returns (uint256 label, int256[] memory logits);
function model(bytes32 id) external view returns (Model memory);
function modelId(address[] calldata blobs) external view returns (bytes32);
function count() external view returns (uint256);
function idAt(uint256 i) external view returns (bytes32);
event Decision(bytes32 indexed id, address indexed caller, bytes32 inputHash, uint256 label, bytes32 logitsHash, uint64 n);
}WMDL v2
A model is a stream of 32-byte words (byte 0 is the most significant):
| Part | Content |
|---|---|
| Model header | "WIRD", version 2, layer count, input length (u16), output length (u16) |
| Layer header | op 1 (dense), inputs (u16), outputs (u16), activation, shift, multiplier (u32), input offset |
| Corrections | one int32 per output: bias - xoff·Σw' + 128·xoff·in |
| Weights | for each block of 32 outputs, for each input: one word whose byte k is w[block·32 + k][input] + 128 |
Activation 0 is the raw last layer, 1 is ReLU then requantization to int8, 2 is requantization only.
Runtime errors
BadModel(code):
| Code | Meaning |
|---|---|
| 1 | Bad magic |
| 2 | Unknown version |
| 3 | Input length does not match the model |
| 4 | Unknown layer type |
| 5 | Layer shape does not chain |
| 6 | Unknown activation |
| 7 | Raw layer before the end |
| 8 | Output length mismatch |
| 9 | Extra bytes after the model |
| 10 | Model truncated (missing blob) |
| 11 | Malformed blob |
| 12 | Blob does not start with STOP |
Registry errors
AlreadyRegistered, UnknownModel, NotOwner, NoBlobs, NotABlob, InvalidModel(reason).
Why EVM and not Stylus
New Stylus (Rust/WASM) activations have been paused on Arbitrum chains, Robinhood Chain included, since 2 October 2026. Wired's runtime is plain EVM, so it runs today. A Stylus runtime is ready for when activations reopen.