Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auction exists, but /names/auctions/{id}/claims fails with "error": "not found: <name>.chain" #1860

Open
davidyuk opened this issue Jul 23, 2024 · 0 comments
Assignees

Comments

@davidyuk
Copy link
Member

Here is an auction

// https://mainnet.aeternity.io/mdw/v3/names/auctions/4.chain
{
  "name": "4.chain",
  "name_fee": 570288700000000000000,
  "auction_end": 978322,
  "last_bid": {
    "block_hash": "mh_D5HX2mSxPjshSjQRvM2gVyD5jqaCPk5mwC8ZXg4gDb5XBZRpt",
    "block_height": 977935,
    "encoded_tx": "tx_+JALAfhCuEACZB8Xt2lGvnca8nEgb/eZicK/T1LU/D5DnQJWheuIO0lmcFB+FBp5OF5KY8jLrtgl5L/6WJNMnawJktx2KqAGuEj4RiACoQHzCHVcvWJ+SDlEUjSk5cLvF5dNym/Z7CeOnopbd3zIN4IDa4c0LmNoYWluAIoFt6xFU9564AAAhg7zvFwwAIMO7BJSLeL/",
    "hash": "th_2pWibP1Q5fnA8mk5k9eg3DjZ4M2hvANhtESMifr6aMEk3e4HXz",
    "micro_index": 6,
    "micro_time": 1721654826372,
    "signatures": [
      "sg_K9LhF3LtXAmE2tWaX42zQx657LKLDUU66qbhsWnzyZ3fsYsK7APJLobJiJVj8pnt67WSmU6cq3CdmkhwdpkzTNRC7zhG"
    ],
    "tx": {
      "account_id": "ak_2r2xGN1v8QKQDNk35WBKyH6Wxz1WP3pxhBNrLgeaK9aTybjvDL",
      "fee": 16440000000000,
      "name": "4.chain",
      "name_fee": 27000000000000000000000,
      "name_id": "nm_2E61zsDYB4aLf2A8fYHVDwmWFJLicBEq1VzaPgLLJg1jCqHVSu",
      "name_salt": 0,
      "nonce": 875,
      "ttl": 1158322,
      "type": "NameClaimTx",
      "version": 2
    }
  },
  "approximate_expire_time": 1721726396608,
  "activation_time": 1721654826372
}

I'm trying to get its claims via /names/auctions/{id}/claims as defined in https://mainnet.aeternity.io/mdw/v3/api, but it fails with

// https://mainnet.aeternity.io/mdw/v3/names/auctions/4.chain/claims
{
  "error": "not found: 4.chain"
}

The auction is not over, current height is less than auction_end

// https://mainnet.aeternity.io/v3/key-blocks/current/height
{
  "height": 978315
}

From the other side, /names/{id}/claims looks working:

// https://mainnet.aeternity.io/mdw/v3/names/4.chain/claims
{
  "data": [
    {
      "height": 178347,
      "block_hash": "mh_2Gt9K2NLUQweunRA63cQrGj6crufVay2emTWExbkHQZap76bmU",
      "tx": {
        "account_id": "ak_iNokaxUWd4RXdUpH4RcTbaEh7DPvzzm5FZ3uQ3ydHWDoY6RbS",
        "fee": 16480000000000,
        "name": "4.chain",
        "name_fee": 570288700000000000000,
        "name_salt": 5506623829534945,
        "nonce": 201,
        "ttl": 0
      },
      "source_tx_hash": "th_xtuD7XngrTfAuzEXGsz55QBzvTQNRxMxyLbdnaRFcnCpmuvqa",
      "source_tx_type": "NameClaimTx",
      "active_from": 208107,
      "internal_source": false
    }
  ],
  "next": null,
  "prev": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants