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
...
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 ...
3
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 ...
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
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 ...
2
votes
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 ...
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
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/...
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 ...
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.
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 ...
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 ...
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-...
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 ...
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: $...
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. ...
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
...
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 ...
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.
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cardano-graphql × 31cardano-db-sync × 6
cardano-node × 4
transaction × 3
cardano-serialization-lib × 3
wallet × 2
cardano-cli × 2
api × 2
utxo × 2
plutus × 1
stake-pool × 1
staking × 1
nft × 1
blockchain × 1
blockfrost × 1
docker × 1
javascript × 1
shelley × 1
query × 1
blockchain-explorer × 1
integration × 1
m1 × 1
tx × 1
datum × 1
react × 1