blockfrost-python icon indicating copy to clipboard operation
blockfrost-python copied to clipboard

There is some kind of sync issue with the API

Open anujsabhlok opened this issue 3 years ago • 3 comments

I have tried around 40 wallet ids to get their balance for dummy testing.

On some wallets (10 / 40 wallets) it says - "{'status_code': 404, 'error': 'Not Found', 'message': 'The requested component has not been found.'}". But this wallet very much exists and is functional (contains ada and nfts).

example wallet id: addr1q93lr8txvavjw67yxyhqyu6tv77xdsxulcku7eqq6ypep4eh20284nye0xv3rfnrcwrwj7c0kl5jlz06a2cl9r3t0n4synp5lh

Error Screenshot: image

Wallet Details Screenshot from pool pm: image

anujsabhlok avatar Mar 29 '22 16:03 anujsabhlok

Hey @anujsabhlok

Sorry that you are having problems. Also sorry for the late response.

Are you using "mainnet" to access the wallets?

I cannot seem to replicate your issue. In the code example below I get correct responses. To use the code please replace {REDACTED} with your mainnet project_id.

from blockfrost import BlockFrostApi, ApiUrls

wallet = "addr1q93lr8txvavjw67yxyhqyu6tv77xdsxulcku7eqq6ypep4eh20284nye0xv3rfnrcwrwj7c0kl5jlz06a2cl9r3t0n4synp5lh"

api = BlockFrostApi(project_id='{REDACTED}', base_url=ApiUrls.mainnet.value)
print(api.address(address=wallet))
print(api.address_transactions(address=wallet))
Namespace(address='addr1q93lr8txvavjw67yxyhqyu6tv77xdsxulcku7eqq6ypep4eh20284nye0xv3rfnrcwrwj7c0kl5jlz06a2cl9r3t0n4synp5lh', amount=[Namespace(unit='lovelace', quantity='0')], stake_address='stake1uym484r6ejvhnxg35e3u8phf0v8m06f038aw4v0j3c4he6cdptjxp', type='shelley', script=False)
[Namespace(tx_hash='b3144b19914bf6df73b2cee48326e2815803f06c315581b04f4c9e8687c981c9', tx_index=5, block_height=7066115, block_time=1648753889), Namespace(tx_hash='9fafcbfb9669157c3616d1a5d984ade3aa5b4e4e8e9b3dfd6ac3cbf571fadc0f', tx_index=9, block_height=7066555, block_time=1648762469)]

mathiasfrohlich avatar Apr 27 '22 07:04 mathiasfrohlich

Hey @anujsabhlok

Sorry that you are having problems. Also sorry for the late response.

Are you using "mainnet" to access the wallets?

I cannot seem to replicate your issue. In the code example below I get correct responses. To use the code please replace {REDACTED} with your mainnet project_id.

from blockfrost import BlockFrostApi, ApiUrls

wallet = "addr1q93lr8txvavjw67yxyhqyu6tv77xdsxulcku7eqq6ypep4eh20284nye0xv3rfnrcwrwj7c0kl5jlz06a2cl9r3t0n4synp5lh"

api = BlockFrostApi(project_id='{REDACTED}', base_url=ApiUrls.mainnet.value)
print(api.address(address=wallet))
print(api.address_transactions(address=wallet))
Namespace(address='addr1q93lr8txvavjw67yxyhqyu6tv77xdsxulcku7eqq6ypep4eh20284nye0xv3rfnrcwrwj7c0kl5jlz06a2cl9r3t0n4synp5lh', amount=[Namespace(unit='lovelace', quantity='0')], stake_address='stake1uym484r6ejvhnxg35e3u8phf0v8m06f038aw4v0j3c4he6cdptjxp', type='shelley', script=False)
[Namespace(tx_hash='b3144b19914bf6df73b2cee48326e2815803f06c315581b04f4c9e8687c981c9', tx_index=5, block_height=7066115, block_time=1648753889), Namespace(tx_hash='9fafcbfb9669157c3616d1a5d984ade3aa5b4e4e8e9b3dfd6ac3cbf571fadc0f', tx_index=9, block_height=7066555, block_time=1648762469)]

Hi @mathiasfrohlich,

The issue I had was caused by people who had given me their wallet address and were using daedelus. Thus the wallet id whcih I had didnt contain the nft. We solved this by moving away from the blockfrost API and using the cardano API wherein we have run a full node on a different pc and retrieve data from the mainnet using wallet ids and stake keys.

If you have any solution to this problem by using blockfrost API, I would very much want to shift back to it. Problem Statement: Need to retrive list of all NFT's and FTs in a wallet. Given the wallet id can be from any wallet (Dead/ Yoroi/ Nami/ CCvault).

anujsabhlok avatar Apr 27 '22 07:04 anujsabhlok

Hey @anujsabhlok

Thanks for the response. I understand the issue you are having. This package blockfrost-python is a wrapper on the blockfrost openapi and therefore subject to the limitations of that, while not imposing any further limitations.

This issue might fit best as an issue on openapi project. @mmahut will you evaluate this issue.

mathiasfrohlich avatar Apr 28 '22 01:04 mathiasfrohlich

Closing this as it is stale issue and we cannot reproduce it. Please open new issue if the problem persists.

slowbackspace avatar Nov 07 '23 14:11 slowbackspace