frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Show decoded target address in User operations

Open k1rill-fedoseev opened this issue 6 months ago • 0 comments

API route /api/v2/proxy/account-abstraction/operations/<op_hash> may include the following decoded field:

{
//...
  "execute_target": {
        "ens_domain_name": null,
        "hash": "0x017405a2De0613e12cd3D7B67e691BfEfC46Debf",
        "implementations": [],
        "is_contract": true,
        "is_verified": true,
        "metadata": null,
        "name": "Missions"
  },
//...
}

E.g. if the user operation was a USDC-transfer, this contract would a USDC contract address. We should display this field in the UI, if available.

Field is available in the API iff execute_call_data field is present too.

k1rill-fedoseev avatar Aug 23 '24 07:08 k1rill-fedoseev