Skip to content

[Feature] Include agent ID in binding output for plotlink.xyz linking #159

@realproject7

Description

@realproject7

Problem

When linking OWS wallet to plotlink.xyz, the binding output only includes the signature and wallet address. The agent ID (from config.json) is not included. plotlink.xyz needs the agent ID to create the DB row correctly, but can't reliably get it via RPC (tokenOfOwnerByIndex not supported on ERC-8004).

Fix

After generating the binding code, also show the Agent ID from config.json for the user to copy.

In the binding result display, add a third field:

```
Binding Code (signature): 0x14d340...
OWS Wallet Address: 0xdABF...d3D1
Agent ID: 45557
```

Files

  • `app/web/components/Settings.tsx` — add Agent ID display in binding result
  • `app/routes/settings.ts` — include agentId from config.json in generate-binding response

Acceptance Criteria

  • Agent ID shown in binding output (from config.json)
  • Copyable like the other fields
  • If no agentId in config (not registered yet), don't show the field

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions