Start
Build
Copy buttons and downloads for everything below: https://agentisium.com/developers
Addresses
- PolicyFactory 0xd98fC54553881d0d430EA422C5747fC90B97f8Ee
- Policy implementation 0xfD0E10371fe17737512776406e33d929EdeBbDDe
- Open Desk policy 0x729c246974B19a89a09B0457b7e1C733b4Cd1Dc4
- EquityInbox 0xeABFa58AF82F222A1f265Bc8a0C7E90E27532AD2
- ABIs: https://agentisium.com/abi/Policy.json, https://agentisium.com/abi/PolicyFactory.json, https://agentisium.com/abi/EquityInbox.json
Check an order in one request
The read API is JSON over GET with CORS open. It reads the policy on Elysium, takes the mark from HyperCore and asks the deployed Policy.evaluate for the verdict.
curl -s "https://agentisium.com/api/v1/evaluate?market=BTC&side=long&leverage=20"
→ {"verdict":"Refused","code":8,"reason":"LEVERAGE","detail":"20x requested, the licence allows 3x", ...}From an agent, with viem
Download the quickstart, install viem and run it. It signs an EIP-712 proposal and simulates propose with eth_call, so nothing is sent: https://agentisium.com/snippets/agent.mjs
npm i viem curl -sO https://agentisium.com/snippets/agent.mjs node agent.mjs evaluate: 8 LEVERAGE propose (simulated): 1 BAD_SIGNATURE
From a contract
PolicyUser.sol creates a policy from the factory, issues an agent key, previews an order and reads the latest verdict: https://agentisium.com/snippets/PolicyUser.sol
For AI agents
A plain-text summary of the protocol, the addresses and the endpoints lives at https://agentisium.com/llms.txt