---
updatedAt: 2026-09-14T14:12:05.000Z
agentTools:
  projectIndex: https://finp2p-docs.ownera.io/llms.txt
---

# Look up the accounts this LA already holds for an investor on an asset

The asset node asks the LA which network accounts it already associates with
`finId` on `(organizationId, assetId)` — e.g. wallets whitelisted directly on the
adapter or its external system. The LA answers with the full array. Nothing is
created and **no challenge is ever issued**. An empty array is a successful, empty
result.

**Return production wallets only.** The array must contain the investor's real
accounts on this asset — the ones the adapter actually holds or has whitelisted for
that investor. Never return test, placeholder or freshly generated wallets. Every
returned wallet is **bound on the router** as an onboarded network account for the
investor on `(organizationId, assetId)`, replacing whatever the router previously
held for that pair, and will be accepted on the investor's execution legs. Return an
empty array if the adapter holds none.

Two response shapes, both `202`:

- `isCompleted: true` — the result is inline in `accounts`.
- `isCompleted: false` — `cid` is returned and the result arrives on
  `GET /operations/status/{cid}` (or the callback, per `operationResponseStrategy`)
  as `networkAccountOperation.accounts`.

A ledger adapter that does not support lookup answers `501`; the asset node fails the
operation with a terminal business error (7352).


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Ledger Adapter Specification",
    "description": "This is the API specification for the Ledger Adapter with whom the FinP2P Router will interact in order to execute and query the underlying implementation.",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "tags": [
    {
      "name": "management",
      "description": "Management"
    }
  ],
  "paths": {
    "/accounts/lookup": {
      "post": {
        "tags": [
          "management"
        ],
        "summary": "Look up the accounts this LA already holds for an investor on an asset",
        "description": "The asset node asks the LA which network accounts it already associates with\n`finId` on `(organizationId, assetId)` — e.g. wallets whitelisted directly on the\nadapter or its external system. The LA answers with the full array. Nothing is\ncreated and **no challenge is ever issued**. An empty array is a successful, empty\nresult.\n\n**Return production wallets only.** The array must contain the investor's real\naccounts on this asset — the ones the adapter actually holds or has whitelisted for\nthat investor. Never return test, placeholder or freshly generated wallets. Every\nreturned wallet is **bound on the router** as an onboarded network account for the\ninvestor on `(organizationId, assetId)`, replacing whatever the router previously\nheld for that pair, and will be accepted on the investor's execution legs. Return an\nempty array if the adapter holds none.\n\nTwo response shapes, both `202`:\n\n- `isCompleted: true` — the result is inline in `accounts`.\n- `isCompleted: false` — `cid` is returned and the result arrives on\n  `GET /operations/status/{cid}` (or the callback, per `operationResponseStrategy`)\n  as `networkAccountOperation.accounts`.\n\nA ledger adapter that does not support lookup answers `501`; the asset node fails the\noperation with a terminal business error (7352).\n",
        "operationId": "lookupAccounts",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "description": "hex encoding of a 32-byte payload consisting of 24 random bytes + 8-byte epoch timestamp (seconds)",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LookupAccountsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted. `isCompleted: true` carries `accounts` inline; otherwise poll `/operations/status/{cid}`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountOperationAccepted"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "LookupAccountsRequest": {
        "type": "object",
        "description": "Body for `POST /accounts/lookup`. Same identification triple as `CreateAccountRequest`;\nno wallet is supplied — the LA reports the accounts it already holds for the investor.\n",
        "required": [
          "organizationId",
          "assetId",
          "finId"
        ],
        "properties": {
          "organizationId": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "assetId": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "finId": {
            "$ref": "#/components/schemas/finId",
            "description": "The investor whose adapter-held accounts are looked up (see `CreateAccountRequest.finId`)."
          }
        }
      },
      "AccountOperationAccepted": {
        "description": "Returned for `202` and for `200` from `proof` / `delete`. When `isCompleted` is\nfalse, the result is not yet available and `cid` lets the asset node poll\n`/operations/status/{cid}` or receive a callback per `operationResponseStrategy`.\nWhen the adapter completes the operation synchronously, `isCompleted` is true and\nexactly one of `response` (the account it created) or `error` is present.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "type": "object",
            "properties": {
              "operationMetadata": {
                "$ref": "#/components/schemas/OperationMetadata"
              },
              "response": {
                "$ref": "#/components/schemas/networkAccountRecord"
              },
              "accounts": {
                "type": "array",
                "description": "Lookup result (`POST /accounts/lookup`): every production account the LA holds\nfor the investor on the asset — the router binds exactly this list. Present only\nfor lookup operations — create/bind keep the singular `response`. Empty on a\nsuccessful lookup that found nothing.\n",
                "items": {
                  "$ref": "#/components/schemas/networkAccountRecord"
                }
              },
              "error": {
                "$ref": "#/components/schemas/networkAccountOperationErrorInformation"
              },
              "expiresInSeconds": {
                "type": "integer",
                "format": "int64",
                "description": "Onboarding deadline the ledger adapter grants for this create/bind, in\nseconds from now. The asset node arms the workflow's whole-process timeout\nfrom this value (set once, at acceptance). Omitted/zero => no auto-expiry.\n"
              }
            }
          }
        ]
      },
      "networkAccountRecord": {
        "description": "Canonical account record returned on workflow completion via `GET /operations/status/{cid}`.\n",
        "type": "object",
        "required": [
          "id",
          "networkAccount"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "LA-assigned account identifier.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "networkAccount": {
            "$ref": "#/components/schemas/networkAccount"
          }
        }
      },
      "networkAccountOperationErrorInformation": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "format": "uint32"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "randomPollingInterval": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "random"
            ]
          }
        }
      },
      "absolutePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "time"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "absolute"
            ]
          },
          "time": {
            "type": "integer",
            "description": "absolute time as epoch time seconds"
          }
        }
      },
      "relativePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "duration"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relative"
            ]
          },
          "duration": {
            "type": "string",
            "description": "ISO-8601 duration format",
            "example": "PT5M (5Min duration), P1DT30M (1 Day and 30 Minutes )",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "pollingResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "polling"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "poll"
            ]
          },
          "polling": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/randomPollingInterval"
              },
              {
                "$ref": "#/components/schemas/absolutePollingInterval"
              },
              {
                "$ref": "#/components/schemas/relativePollingInterval"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "random": "#/components/schemas/randomPollingInterval",
                "absolute": "#/components/schemas/absolutePollingInterval",
                "relative": "#/components/schemas/relativePollingInterval"
              }
            }
          }
        }
      },
      "callbackEndpoint": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "endpoint"
            ]
          }
        }
      },
      "callbackResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "callback"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "callback"
            ]
          },
          "callback": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/callbackEndpoint"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "endpoint": "#/components/schemas/callbackEndpoint"
              }
            }
          }
        }
      },
      "OperationMetadata": {
        "type": "object",
        "description": "additional metadata regarding the operation",
        "properties": {
          "operationResponseStrategy": {
            "description": "denote the expected response strategy of the operation, i.e. how would completion and results of the operation should be handled \noptional, if not provided [polling strategy](#/components/schema/pollingResultsStrategy) will be use with [random interval](#/components/schema/randomPollingInterval)\n",
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/pollingResultsStrategy"
              },
              {
                "$ref": "#/components/schemas/callbackResultsStrategy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "poll": "#/components/schemas/pollingResultsStrategy",
                "callback": "#/components/schemas/callbackResultsStrategy"
              }
            }
          }
        }
      },
      "OperationBase": {
        "type": "object",
        "required": [
          "cid",
          "isCompleted"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "description": "unique correlation id which identify the operation",
            "x-allowEmpty": true
          },
          "isCompleted": {
            "type": "boolean",
            "description": "flag indicating if the operation completed, if true then error or response must be present (but not both)",
            "default": false
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/OperationMetadata"
          }
        }
      },
      "finId": {
        "type": "string",
        "format": "finid",
        "description": "Existing owner hex representation of a secp256k1 public key 33 bytes compressed",
        "pattern": "^[0-9a-f]*$",
        "minLength": 64,
        "maxLength": 66,
        "x-autoMinLength": true
      },
      "walletAccount": {
        "type": "object",
        "required": [
          "type",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "walletAccount"
            ]
          },
          "address": {
            "type": "string",
            "description": "address of the wallet",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "caip10Account": {
        "type": "object",
        "required": [
          "type",
          "network",
          "address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "caip10Account"
            ]
          },
          "network": {
            "type": "string",
            "description": "CAIP-2 chain_id, e.g. \"eip155:1\", \"solana:5eykt4...\", \"hedera:mainnet\" (the same token used by the CAIP-19 asset identifier network)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "address": {
            "type": "string",
            "description": "CAIP-10 account_address (chain-native address)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true,
            "maxLength": 128
          }
        }
      },
      "custodialAccount": {
        "type": "object",
        "required": [
          "type",
          "provider",
          "vaultAccountId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custodialAccount"
            ]
          },
          "provider": {
            "type": "string",
            "description": "Custody provider discriminator, e.g. \"fireblocks\"",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "vaultAccountId": {
            "type": "string",
            "description": "Provider-internal account identifier (e.g. a Fireblocks vault account id)",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "assetId": {
            "type": "string",
            "description": "Optional. Narrows the custodial account to a specific asset/chain.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "noneAccount": {
        "type": "object",
        "additionalProperties": false
      },
      "networkAccount": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/walletAccount"
          },
          {
            "$ref": "#/components/schemas/caip10Account"
          },
          {
            "$ref": "#/components/schemas/custodialAccount"
          },
          {
            "$ref": "#/components/schemas/noneAccount"
          }
        ]
      }
    }
  }
}
```