You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using pool_selector() for MinswapCPPState and MinswapV2CPPState backends returns an error:
File "...\charl.py", line 23, in <module>
result = backend.get_pool_utxos(
^^^^^^^^^^^^^^^^^^^^^^^
File "...\site-packages\charli3_dendrite\backend\blockfrost\__init__.py", line 88, in get_pool_utxos
self.api.address_utxos_asset(address, asset, gather_pages=True),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\site-packages\blockfrost\utils.py", line 100, in pagination
recursive_append(json_list, *args, **kwargs)
File "...\site-packages\blockfrost\utils.py", line 83, in recursive_append
raise ApiError(request_response)
blockfrost.utils.ApiError: {'status_code': 404, 'error': 'Not Found', 'message': 'The requested component has not been found.'}
The code that reproduces the error:
import os
os.environ["BLOCKFROST_PROJECT_ID"] = "my-BlockFrost-id"
os.environ["CARDANO_NETWORK"] = "mainnet"
os.environ["AXO_API_KEY"] = ""
from charli3_dendrite.backend import set_backend, get_backend
from charli3_dendrite.backend.dbsync import DbsyncBackend
from charli3_dendrite.backend.blockfrost import BlockFrostBackend
from charli3_dendrite.backend.ogmios_kupo import OgmiosKupoBackend
from pycardano import Network
# Choose one of the following backends:
# set_backend(DbsyncBackend())
set_backend(BlockFrostBackend("my-BlockFrost-id"))
#set_backend(OgmiosKupoBackend("ws://ogmios-url:port", "http://kupo-url:port", Network.MAINNET))
backend = get_backend()
#from charli3_dendrite import VyFiCPPState
from charli3_dendrite import MinswapV2CPPState
selector = MinswapV2CPPState.pool_selector()
result = backend.get_pool_utxos(
limit=10000,
historical=False,
**selector.model_dump(),
)
The text was updated successfully, but these errors were encountered:
Using pool_selector() for MinswapCPPState and MinswapV2CPPState backends returns an error:
The code that reproduces the error:
The text was updated successfully, but these errors were encountered: