register_agent
Register a delegated agent to authorize an AI agent to trade on behalf of a wallet. Submit an EIP-712 signature signed by the wallet owner.
Instructions
Register a delegated agent key so an AI agent can trade on a wallet's behalf without holding the wallet key. Authorized by an EIP-712 signature from the OWNER WALLET over RegisterAgent{agent, expiresAt, nonce} (domain NexusExchange v1). This server cannot produce that wallet signature — sign it externally (e.g. in the wallet) and pass it as signature. No API credentials are needed; the signature is the authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent Ethereum address (0x-prefixed, 20 bytes) to delegate to. | |
| label | No | Optional human-readable label for the agent. | |
| nonce | Yes | Monotonic nonce. Use the current Unix time in ms as a safe start. | |
| wallet | Yes | Owner wallet address (0x-prefixed, 20 bytes). | |
| signature | Yes | EIP-712 signature over RegisterAgent{agent, expiresAt, nonce} from the wallet private key (0x-prefixed). | |
| expires_at | No | Expiry as Unix ms. Optional — defaults to now+30d. Must be in [now+1d, now+90d]. |