Skip to main content
5 votes
Accepted

How do I read the datum of an output?

If you are running a DbSync node you can retrieve the datum and redeemer: redeemer A table containing redeemers. A redeemer is provided for all items that are validated by a script. Primary Id: id ...
AngelCastillo's user avatar
4 votes
Accepted

Blockfrost, GrapgQL or any API for cardano help, working with javascript

Using the Blockfrost SDK is pretty straight forward, as in this example: import { BlockFrostAPI } from '../src/index'; async function run() { const API = new BlockFrostAPI({ projectId: 'YOUR ...
Marek Mahut - StakeNuts's user avatar
3 votes
Accepted

What is the best way to query stake pools by ticker?

The list of stake pools should only be a couple of thousand which is tiny in comparison to number of blocks or even worse the number of transactions. It can be done with a relatively simple SQL query ...
Erik de Castro Lopo's user avatar
3 votes

Ogmios Node Stopped Working

Cardano went through Hard Fork event (Vasil fork) while the old node/dbsync/ogmios versions - you'd need to upgrade your components
RdLrT's user avatar
  • 1,576
2 votes

apply failed: [postgres-error] query execution failed ($.args[0].args)\\r\\nFile: '1589369664961_init/up.sql'

It looks like you are restoring a db-sync 13 snapshot while your db-sync version is 12. For the moment there don't seem to be anymore snapshots for db-sync 12. My guess is that if you remove the ...
Michiel Bellen's user avatar
1 vote

Dandelion graphQl endpoints not working?

probably related: https://twitter.com/DandelionLink/status/1667281153764515841?t=d2O7q8eowxyFfVUJ4kF-cQ&s=19 It is likely just internal maintainance
Michele Nuzzi's user avatar
1 vote

How to query assets transactions with cardano-graphql?

Cardano GraphQL API documentation: https://input-output-hk.github.io/cardano-graphql/ Example requests: https://github.com/input-output-hk/cardano-graphql/tree/master/packages/api-cardano-db-hasura/...
eddex's user avatar
  • 3,838
1 vote
Accepted

How to query cardano-graphql API to get the details of a transaction with the transaction id?

To check exact query as explorer for GraphQL - in your browser, when viewing page from explorer - you can check Developer Tools > Network (tab). In the list, look for graphql POST requests where ...
RdLrT's user avatar
  • 1,576
1 vote

Between the cardano-graphql and cardano-rosetta APIs, which one is recommended for apps and dapps integration?

It really depends on your dApp. Cardano Rosetta is build by and for exchanges and Cardano GraphQL is more universal. Review both APIs to make the best decision.
Marek Mahut - StakeNuts's user avatar
1 vote

Connecting Node and DB-Sync

The Ogmios image you're using has it's own node instance. From https://ogmios.dev/getting-started/docker : Ogmios docker images come in two flavours: cardano-node-ogmios and ogmios. The former is ...
james's user avatar
  • 1,550
1 vote
Accepted

What is the purpose of use using Cardano-graphql & hasura in the same stack?

Hasura is a cloud service where you can deploy cardano-graphql in a very easy and straight forward way, since it is oriented to graphql APIs. So no, you don't need both. cardano-graphql is very ...
Falcon Stakepool's user avatar
1 vote
Accepted

Cardano GraphQL change default ip

The issue is solved. After typing docker ps I realize that db_sync is not working properly and keeps restarting. Deleting RESTORE_SNAPSHOT parameter while starting graphql solved my issue it syncs ...
korimusk's user avatar
  • 151
1 vote
Accepted

AMD64 Error Warning When Setting Up Grapgql Docker in Mac M1

Took me like 6+ Months to figure out all the requirements and what modules need to get loaded first... This guide helped a lot https://robferguson.org/blog/2022/02/19/getting-started-with-cardano-...
yungtechboy1's user avatar
1 vote
Accepted

What's the correct way of submitting a transaction using cardano-graphql?

I don't suggest using cardano-graphql to submit a transaction: every time the node gets behind the tip of the blockchain, it fails. ogmios is much more reliable for this regard. You can submit a ...
Falcon Stakepool's user avatar
1 vote
Accepted

How to query cardano graphql api to get all assets metadata from a specific policy id

Took a while for me to figure out as well but this works. It will return all the asset ids of a particular policy query TokensByPolicy($policy_id: Hash28Hex) { assets(where: { policyId: { _eq: $...
elson serrao's user avatar
1 vote
Accepted

Cardano-graphql / Hasura - not found in type: 'query_root'

Are you using the hasura console or the apollo graphql console? That query won't be available through the hasura console since paymentAddresses is not a postgres table that hasura directly binds to. ...
adjuric's user avatar
  • 300
1 vote

How to get protocol parameters **only for latest epoch** with GraphQL?

I've found the solution: query currentEpochProtocolParams { cardano { currentEpoch { number protocolParams { a0 coinsPerUtxoWord collateralPercent ...
mahnunchik's user avatar
1 vote

Where to find proper info on the cardano graphql

I'm not sure if you have explored their wiki yet, it has guide how to interact with their api: Interacting with the API You can also check their API Documentation: API Documentation They've got a ...
iStake ADA's user avatar
1 vote
Accepted

Does cardano-graphql limit the amount of data processed per single query?

cardano-graphql has, according to their wiki, a query result limit of 2,500 items and depth limit 3.
Marek Mahut - StakeNuts's user avatar
1 vote

How much time does Cardano-graphql take to initialize?

Yes, it should as soon as the cardano-db-sync is synced. It depends generally on the available resources. It takes usually few days to complete.
Marek Mahut - StakeNuts's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible