register_agent
Delegate trading authority to an AI agent with an owner-signed key so it can trade on a wallet's behalf without holding the wallet's private key.
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 Nexus Exchange v1). Sign it in the wallet and pass wallet and signature, or omit both to have the stdio server sign with its own wallet (see create_wallet; testnet and local only, expiry defaulting to now+30d). 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 | No | Owner wallet address (0x-prefixed, 20 bytes). Required with `signature`; defaults to this server's wallet without one. | |
| signature | No | EIP-712 signature over RegisterAgent{agent, expiresAt, nonce} from the wallet private key (0x-prefixed). Omit it to have this server sign with its own wallet. | |
| expires_at | No | Expiry as Unix ms. Optional — defaults to now+30d. Must be in [now+1d, now+90d]. |