IAgent.getParams

getParams() external view returns (Params memory)

Returns the addresses of the ERC-8004 IdentityRegistry and ReputationRegistry preinstalls on this Maroo network. Discovery helper — call this once at app startup so your code resolves the right registries on testnet vs mainnet without hard-coding.

Parameters

This method has no parameters.

Returns

Type: Params

Struct fields: identityRegistry (address) — ERC-8004 IdentityRegistry preinstall (V1 active surface). reputationRegistry (address) — ERC-8004 ReputationRegistry preinstall (V2+ reserved; address is returned regardless of activation).

Examples

Resolve IdentityRegistry address

// Agent precompile address (constant across all Maroo networks)
const AGENT = "0x100000000000000000000000000000000000000A";

const { identityRegistry, reputationRegistry } = await publicClient.readContract({
  address: AGENT,
  abi: iAgentAbi,
  functionName: "getParams",
});
// identityRegistry === '0x8004000000000000000000000000000000000001' on the public testnet
ESC
Type to search