near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

Unable to Lookup Accounts for Public Key #288

Closed lewis-sqa closed 1 year ago

lewis-sqa commented 1 year ago

As part of the Wallet Selector project, we use the Indexer service (via https://api.kitwallet.app/ & https://testnet-api.kitwallet.app/) to lookup public keys from a user's Ledger device to autofill the matching account id(s).

We got a report from a user earlier today that this service is responding with 404 Not Found for valid public keys. Below is an example url:

https://testnet-api.kitwallet.app/publicKey/ed25519:8Mr4NPyQKwVRgqTYZHPD6VAQmNSrBXk1Hx2oH9eBUFsE/accounts
frol commented 1 year ago

I don't know anything about kitwallet. Indexer for Explorer database has the access key indexed just fine:

image
PinkiNice commented 1 year ago

@lewis-sqa Hey there! Kitwallet recently restricted access only for whitelisted domains (wallet domain). Have you considered spinning up your own wallet-selector's API for this purpose? The source code for query located there https://github.com/near/near-contract-helper/blob/master/src/middleware/indexer.js