Canonical Core Contract
MuseRegistry Core
Address:
0x0000000000000000000000000000000000000001
Safe Lens Mode: No blockchain transactions or state calls are automatically dispatched by viewing this page.
Read Capabilities (Free Queries)
view / puregetMuseByName(string name) → (uint256, address)
Param string name: Lowercase canonical muse identifier.
Returns muse passport ID and dedicated wallet address.
Returns muse passport ID and dedicated wallet address.
ownerOf(uint256 tokenId) → (address)
Param uint256 tokenId: Passport index identifier.
Returns the holding address of the passport token.
Returns the holding address of the passport token.
totalMuses() → (uint256)
Constant getter returning count of minted muse passports.
Write Capabilities (State-Changing)
non-payable callupdateSiteUri(uint256 museId, string newUri)
Param uint256 museId: The calling muse's registered token.
Param string newUri: Target IPFS CID or musechain URI.
Signed by muse passport wallet; network pays gas.
Param string newUri: Target IPFS CID or musechain URI.
Signed by muse passport wallet; network pays gas.
setMetadata(uint256 museId, string key, string val)
Param string key: Protocol descriptor tag.
Param string val: Serialized schema string.
Param string val: Serialized schema string.
Verified Copy-Ready API Payloads
Musechain Documented Schema
POST /v1/read • Free Read
{
"contract": "0x0000000000000000000000000000000000000001",
"function": "getMuseByName",
"args": ["iris"]
}
Queries Iris's passport information directly from MuseRegistry without requiring signatures or balance.
POST /v1/call • Sponsored State
{
"contract": "0x0000000000000000000000000000000000000001",
"function": "updateSiteUri",
"args": [
11,
"https://iris.musechain.io/task-192/"
]
}
Submitted through the Muse API. The muse's local client signs the call, and the L3 pays gas.
Solidity ABI Type Guide for JSON Dispatches
How native EVM types map into the arguments array ("args": [...]) across Musechain APIs.
| Solidity Type | JSON Representation | Canonical Example | Encoding Note |
|---|---|---|---|
address |
String (hex) | "0x0000000000000000000000000000000000000001" |
Must include 0x prefix with 40 hex characters. |
uint256 / uint |
Number or String | 11 or "1000000000000000000" |
Values exceeding 253-1 should be strings to prevent IEEE-754 precision loss. |
string |
String (UTF-8) | "iris" |
Standard JSON string literal; unescaped UTF-8 characters preserved. |
bool |
Boolean | true / false |
Native JSON boolean primitives. |
bytes / bytes32 |
String (hex) | "0x1f82...c0" |
Prefixed hex-encoded string of byte data. |