{"openapi":"3.1.0","info":{"title":"Wallet Owner API","version":"1.2.0","description":"Read on a data key on plan builder or above, the allowance and errors of the FOMO Data API."},"servers":[{"url":"https://pnl.meme","description":"The API host"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A data key on plan builder or above, issued by the operator. Never put it in a URL."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"The same data key, for a client that sends it as a header of its own rather than as a bearer."}},"schemas":{"WalletAnswer":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","description":"The address asked about, as the stores match it: Solana base58 exactly, an EVM address lower-cased."},"fomo":{"type":"object","properties":{"status":{"type":"string","enum":["on","off"],"description":"on: FOMO's accounts were read, so a null below means none is served for this address. off: they are not served yet and were not read, so a null below never means that nobody holds the address."},"attested":{"anyOf":[{"type":"object","properties":{"class":{"type":"string","const":"attested","description":"attested: FOMO's own trade page names this address as the account's. On Solana it is FOMO's account address for the person, which signs no swap and holds nothing on chain."},"user_id":{"type":"string","description":"FOMO's own user id for the account, lower-cased."},"handle":{"description":"The handle FOMO shows for the account, lower-cased, without @: FOMO's newest profile observation of it; null when none may be served.","type":["string","null"]},"name":{"description":"The display name FOMO shows beside that handle; null with it, or when FOMO showed none.","type":["string","null"]},"seen_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When FOMO showed that handle and name: the observation's capture time; null with them."}},"required":["class","user_id","handle","name","seen_at"],"additionalProperties":false},{"type":"null"}],"description":"The FOMO account FOMO itself attests this address for; null when none is served."},"inferred":{"anyOf":[{"type":"object","properties":{"class":{"type":"string","const":"inferred","description":"inferred, never attested: the wallet that signs the account's FOMO trades on chain, inferred from FOMO's app-signed swaps that coincide with trades the app showed for the account. Its evidence: GET /v1/fomo/users?id=<user_id>, solana_signer."},"user_id":{"type":"string","description":"FOMO's own user id for the account, lower-cased."},"handle":{"description":"The handle FOMO shows for the account, lower-cased, without @: FOMO's newest profile observation of it; null when none may be served.","type":["string","null"]},"name":{"description":"The display name FOMO shows beside that handle; null with it, or when FOMO showed none.","type":["string","null"]},"seen_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When FOMO showed that handle and name: the observation's capture time; null with them."}},"required":["class","user_id","handle","name","seen_at"],"additionalProperties":false},{"type":"null"}],"description":"The FOMO account whose trading wallet this address is inferred to be; null when none is served. Solana only: an EVM address's inferred account is not read here; its evidence is GET /v1/fomo/users?id=<user_id>, evm_signer, served once that link is switched on."}},"required":["status","attested","inferred"],"additionalProperties":false,"description":"FOMO accounts for the address, apart and never merged into one person. One is served only when its evidence is newer than the person's newest private sighting, on every clock the evidence holds."},"pump":{"anyOf":[{"type":"object","properties":{"account_id":{"description":"pump.fun's own account id for the person behind the wallet, as pump.fun sends it; null when no read has carried one.","type":["string","null"]},"username":{"description":"pump.fun's username for the account; null when it published none.","type":["string","null"]},"declared_x_handle":{"description":"The X username the account's pump.fun profile declares, lower-cased, without @: the user's claim, which pump.fun does not verify.","type":["string","null"]},"seen_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the words above last changed in this store."}},"required":["account_id","username","declared_x_handle","seen_at"],"additionalProperties":false},{"type":"null"}],"description":"The pump.fun account whose wallet this is: on pump.fun the wallet is the account. Solana only, so null for an EVM address, and null when this store holds no pump.fun account for the wallet."},"read_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["address","fomo","pump","read_at"],"additionalProperties":false},"WalletsBatchAnswer":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"read_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"board_read_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When the board the rows come from was read; null when it could not be read (every board is then null)."},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"known":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the addresses any store or the board holds."},"wallets":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"The address as asked, an EVM address lower-cased."},"known":{"type":"boolean","description":"Whether any account or board row is served for the address."},"fomo":{"type":"object","properties":{"status":{"type":"string","enum":["on","off"],"description":"on: FOMO's accounts were read, so a null below means none is served for this address. off: they are not served yet and were not read, so a null below never means that nobody holds the address."},"attested":{"anyOf":[{"type":"object","properties":{"class":{"type":"string","const":"attested","description":"attested: FOMO's own trade page names this address as the account's. On Solana it is FOMO's account address for the person, which signs no swap and holds nothing on chain."},"user_id":{"type":"string","description":"FOMO's own user id for the account, lower-cased."},"handle":{"description":"The handle FOMO shows for the account, lower-cased, without @: FOMO's newest profile observation of it; null when none may be served.","type":["string","null"]},"name":{"description":"The display name FOMO shows beside that handle; null with it, or when FOMO showed none.","type":["string","null"]},"seen_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When FOMO showed that handle and name: the observation's capture time; null with them."}},"required":["class","user_id","handle","name","seen_at"],"additionalProperties":false},{"type":"null"}],"description":"The FOMO account FOMO itself attests this address for; null when none is served."},"inferred":{"anyOf":[{"type":"object","properties":{"class":{"type":"string","const":"inferred","description":"inferred, never attested: the wallet that signs the account's FOMO trades on chain, inferred from FOMO's app-signed swaps that coincide with trades the app showed for the account. Its evidence: GET /v1/fomo/users?id=<user_id>, solana_signer."},"user_id":{"type":"string","description":"FOMO's own user id for the account, lower-cased."},"handle":{"description":"The handle FOMO shows for the account, lower-cased, without @: FOMO's newest profile observation of it; null when none may be served.","type":["string","null"]},"name":{"description":"The display name FOMO shows beside that handle; null with it, or when FOMO showed none.","type":["string","null"]},"seen_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When FOMO showed that handle and name: the observation's capture time; null with them."}},"required":["class","user_id","handle","name","seen_at"],"additionalProperties":false},{"type":"null"}],"description":"The FOMO account whose trading wallet this address is inferred to be; null when none is served. Solana only: an EVM address's inferred account is not read here; its evidence is GET /v1/fomo/users?id=<user_id>, evm_signer, served once that link is switched on."}},"required":["status","attested","inferred"],"additionalProperties":false,"description":"As GET /v1/wallets/{address} answers it: on with both null where FOMO was read and serves no account for the address; off where FOMO's accounts were not read."},"pump":{"anyOf":[{"type":"object","properties":{"account_id":{"description":"pump.fun's own account id for the person behind the wallet, as pump.fun sends it; null when no read has carried one.","type":["string","null"]},"username":{"description":"pump.fun's username for the account; null when it published none.","type":["string","null"]},"declared_x_handle":{"description":"The X username the account's pump.fun profile declares, lower-cased, without @: the user's claim, which pump.fun does not verify.","type":["string","null"]},"seen_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When the words above last changed in this store."}},"required":["account_id","username","declared_x_handle","seen_at"],"additionalProperties":false},{"type":"null"}],"description":"The pump.fun account whose wallet this is: on pump.fun the wallet is the account. Solana only, so null for an EVM address, and null when this store holds no pump.fun account for the wallet."},"board":{"anyOf":[{"type":"object","properties":{"board":{"type":"string","const":"world","description":"The board read: every platform's board merged, as get_leaderboard's world board."},"window":{"type":"string","const":"7d","description":"The window the place is held on."},"rank":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The place on the board; null where the row holds no place for the window."},"source":{"type":"string","description":"The platform board the row comes from: pump, fomo, wallet, a perps division."},"trader_id":{"type":"string","description":"The board row's own id, as get_leaderboard and get_trader name it."},"handle":{"description":"The name the board shows; null for a trader the house never names.","type":["string","null"]},"name":{"description":"The X display name the board shows; null where none, or never named.","type":["string","null"]},"x":{"description":"The X username the board shows; null where none, or never named.","type":["string","null"]},"avatar_url":{"description":"The picture the board shows; null where none, or never named.","type":["string","null"]},"pnl_usd":{"anyOf":[{"type":"object","properties":{"24h":{"type":["number","null"]},"7d":{"type":["number","null"]},"30d":{"type":["number","null"]}},"required":["24h","7d","30d"],"additionalProperties":false},{"type":"null"}],"description":"The row's realised PnL in USD per window, as the board's source measures it; null where unread."},"pnl_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}],"description":"When the shown figure was observed."},"win_rate_pct":{"type":["number","null"]},"trades":{"type":["number","null"]},"last_active":{"type":["string","null"]},"unnamed":{"description":"A trader the house never names: the place and figures stay, the name, X and picture do not.","type":"boolean","const":true}},"required":["board","window","rank","source","trader_id","handle","name","x","avatar_url","pnl_usd","pnl_at","win_rate_pct","trades","last_active"],"additionalProperties":false},{"type":"null"}],"description":"The wallet's world-board row (7 days): the wallet itself on the pump.fun and wallet boards, its FOMO account on FOMO's, any wallet of its pump.fun account; null where the board ranks none. A platform not offered on this plan has no row here."}},"required":["address","known","fomo","pump","board"],"additionalProperties":false},"description":"One answer per address, in the order asked."}},"required":["read_at","board_read_at","count","known","wallets"],"additionalProperties":false}}},"paths":{"/v1/wallets/{address}":{"get":{"operationId":"wallet-owners","summary":"Whose wallet this is","description":"The accounts this store holds for one address, in one read: the FOMO account FOMO itself attests the address for and, apart, the FOMO account whose trading wallet it is inferred to be — each labelled by class, never merged — and the pump.fun account whose wallet it is. fomo.status off says FOMO's accounts were not read, never that nobody holds the address.","security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"address","in":"path","required":true,"description":"A Solana wallet, base58 exactly, or an EVM address: 0x and 40 hex digits, any case.","schema":{"type":"string"}}],"responses":{"200":{"description":"Whose wallet this is","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAnswer"}}}},"400":{"description":"A parameter was refused; the message names it, never its value. A cursor minted under other filters or the other order lands here."},"401":{"description":"No key, a key this system never issued, or one that was revoked."},"403":{"description":"The key is not a data key on plan builder or above; required_plan names the plan."},"404":{"description":"not_found: no account is served for this address, so there is no record to answer — never an empty one. While FOMO's accounts are not read the answer is a 200 saying so (fomo.status off), never this."},"405":{"description":"The allow header names the verb the door takes: GET on every read, POST on the resolve."},"429":{"description":"The key's per-minute window, or its daily ceiling. Retry-After says when."},"503":{"description":"The store or the usage ledger could not be read or written; nothing was served, and nothing was counted against you."}}}},"/v1/wallets":{"post":{"operationId":"wallet-owners-many","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"addresses":{"minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$"},{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}]},"description":"1 to 100 distinct addresses: Solana wallets, base58 exactly, or EVM addresses (0x and 40 hex digits, any case). Answered in this order."}},"required":["addresses"],"additionalProperties":false}}}},"summary":"Who these wallets are, up to 100 at once","description":"Every wallet of a token page in one request: for each address, in the order sent, the same FOMO and pump.fun accounts GET /v1/wallets/{address} serves, and its row on the world board for 7 days (place, name, X, picture, realised PnL by window, win rate) where the board ranks it. A wallet nobody holds is known: false in the list, never a 404. One request of the day per call. A platform not offered on this plan has no row here.","security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[],"responses":{"200":{"description":"Who these wallets are, up to 100 at once","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletsBatchAnswer"}}}},"400":{"description":"A parameter was refused; the message names it, never its value. A cursor minted under other filters or the other order lands here."},"401":{"description":"No key, a key this system never issued, or one that was revoked."},"403":{"description":"The key is not a data key on plan builder or above; required_plan names the plan."},"404":{"description":"No route answers the path — an unknown route, never missing data: a token, author or person nobody stored answers 200."},"405":{"description":"The allow header names the verb the door takes: GET on every read, POST on the resolve."},"429":{"description":"The key's per-minute window, or its daily ceiling. Retry-After says when."},"503":{"description":"The store or the usage ledger could not be read or written; nothing was served, and nothing was counted against you."}}}}}}