Skip to content

Got Not found for exist key #668

@ilyar

Description

@ilyar

Step 1: Alice has received the public key from her mnemonic phrase and wants to find out her account: ed25519:3fJb5T7zAB7eysUoUyXnhA5cALdQ2GF8vuYZwmiMp16u

Step 2: Alice uses the helper to get her account:

curl -s https://helper.mainnet.near.org/publicKey/ed25519:3fJb5T7zAB7eysUoUyXnhA5cALdQ2GF8vuYZwmiMp16u/accounts

Receives the answer: Not found

Omniscient Bob knows Alice's account and can verify that the public key exists:

curl -s -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "id": "dontcare", "method": "query", "params": {"request_type": "view_access_key", "finality": "final", "account_id": "ilyar42.near", "public_key": "ed25519:3fJb5T7zAB7eysUoUyXnhA5cALdQ2GF8vuYZwmiMp16u"}}' https://rpc.mainnet.near.org

got:

{
  "jsonrpc": "2.0",
  "result": {
    "block_hash": "6B3GLFhnCj7zEPyVCZBuDnbmNmgnvMezbANq9KHo2gNj",
    "block_height": 107428409,
    "nonce": 96776901000001,
    "permission": "FullAccess"
  },
  "id": "dontcare"
}

Bob sees that the key exists, but cannot explain to Alice why she cannot get the account name using the public key using the service and assumes that there is an error in the service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions