Questions tagged [cardano-graphql]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
81 views

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

I'm in the process of writing some software that will connect to the Cardano networking such as signing transactions & querying historical chain data. During my search for a solution I came across ...
1 vote
1 answer
144 views

GraphQL syncing takes too much time

Hello everyone I did follow this guide to run GraphQL with docker-compose: https://github.com/input-output-hk/cardano-graphql However, inputoutput/cardano-db-sync:12.0.0 is syncing super slow ...
0 votes
0 answers
14 views

Graphql-engine docker images

Anybody now the github for how the following docker images are being build. https://hub.docker.com/r/inputoutput/cardano-graphql-hasura/tags The image is used in https://github.com/cardano-foundation/...
1 vote
1 answer
71 views

cardanocli-js and cardano-wallet-js vs cardano-wallet rest api and cardano-graphql how do they differ?

I've been going through the cardano docs at https://developers.cardano.org/docs/get-started/ and have come across discussions around the cardano-wallet rest api and cardano-graphql implementation. I ...
2 votes
1 answer
164 views

Syncing from genesis instead of snapshot

I start the docker as followed in the guide: export NETWORK=mainnet &&\ docker pull inputoutput/cardano-graphql:6.2.0-${NETWORK} &&\ docker pull inputoutput/cardano-graphql-hasura:6.2....
0 votes
1 answer
34 views

Dandelion graphQl endpoints not working?

I'am was trying to use these endpoints to use playground of cardano graphQL ( https://graphql-api.mainnet.dandelion.link/ ) and (https://graphql-api.testnet.dandelion.link/) but none is working, they ...
0 votes
2 answers
149 views

How to query assets transactions with cardano-graphql?

query assets transaction with cardano-graphql, e.g blockforst api https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset}/transactions
1 vote
0 answers
10 views

Can I communicate with my local test net via REST/WebAPI

I am using this https://github.com/woofpool/cardano-private-testnet-setup to run my local testnet. I was using this const CardanocliJs = require('cardanocli-js'); const cardano = new CardanocliJs(...
0 votes
1 answer
45 views

How to convert UTxOs from Graphql to Cardano Serialization lib format?

I want to use this function as coin selection for my transactions: txBuilder.add_inputs_from(unspentOutputs, 3); The problem I have is I'm using cardano-graphql to retrieve UTxOs: { "data"...
0 votes
0 answers
19 views

Cardano graph QL utxo_aggregate sum error

I am trying to get count of NFTs locked on some address by policy ID using cardano graph ql. I have this query in cardano-graphql (https://github.com/input-output-hk/cardano-graphql): query { ...
2 votes
1 answer
142 views

What's the correct way of deserializing a UTxO?

I'm getting the following error when trying to deserialize a UTxO obtained using cardano-graphql: Deserialization failed in TransactionUnspentOutput because: No variant matched This is the code that ...
0 votes
1 answer
51 views

Ogmios Node Stopped Working

I did follow cardano-graphql guide and I was running my node smoothly for 2 months today It gave me this error and couldn't understand what is wrong with it. I restarted the container but didn't solve ...
0 votes
1 answer
59 views

Cardano GraphQL stuck Establish connection to cardano-node

I'm trying to run graphql following these instructions. I do already have dbsync & cnode running for the preprod network, but I get this error: {"name":"cardano-graphql","...
1 vote
1 answer
47 views

Cardano-graphql doesn't return sync percentage

when I first started It was returning the sync percentage, and the logs of cardano-graphql was like this: {"name":"cardano-graphql","hostname":"2f8ed0c5755a",&...
0 votes
1 answer
57 views

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

This is how I started docker run, but cardano-graphql_cardano-graphql_1 keeps restarting due to this error related with 1589369664961_init/up.sql. DOCKER_BUILDKIT=1 \ COMPOSE_DOCKER_CLI_BUILD=1 \ ...
1 vote
1 answer
80 views

Connecting Node and DB-Sync

I'm running Cardano Node and Cardano GraphQL on the same network/computer. This is how I started the node: cardano-node run \ --topology /home/ubuntu/cardano/cardano-src/cardano-node/mainnet-...
1 vote
1 answer
44 views

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

As a developer, I'd like to have a service that retrieves the information of a stake pool based on its ticker (or all the stake pools with that ticker, I know there can be duplicates). I'm thinking ...
2 votes
1 answer
21 views

Cardano GraphQL change default ip

I did run the cardano-graphql in a server and now it's sync but I'd like to send requests from local to server ip. I did open the port on AWS but couldn't figure it out where and how to change the ...
0 votes
1 answer
65 views

AMD64 Error Warning When Setting Up Grapgql Docker in Mac M1

I am following the following guide to set up graphql on my M1 Mac. https://github.com/input-output-hk/cardano-graphql#overview. All the containers are up and running but i can't visit local host to ...
0 votes
1 answer
91 views

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

I'm getting this error when trying to submit a transaction using graphql: { "errors": [ { "message": "Deserialization failed in Transaction.metadata because: ...
3 votes
1 answer
231 views

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

currently I'm using blockfrost to request NFT metadata information one by one from a specific policy_id. A policy ID can have up to 10k assets minted so it takes quite a while to fully sync to my ...
10 votes
1 answer
165 views

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

From what I understand, cardano-graphql as well as cardano-rosetta APIs enable interaction with the Cardano blockchain. Which of these is recommended for developing apps/dapps that interact with ...
0 votes
1 answer
2k views

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

I found this github issue: https://github.com/input-output-hk/cardano-graphql/issues/507 discussing how to get assets of an address at a certain block using cardano-graphql / Hasura. When I run the &...
0 votes
1 answer
131 views

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

How can I get protocol parameters only for the latest epoch using GraphQL? I can get protocol parameters with cardano-cli: cardano-cli query protocol-parameters \ --testnet-magic 1097911063 \ --...
0 votes
0 answers
36 views

Can I manually install cardano-graphql using local data?

I'm running a relay node and have dbsync pushing data into postgresql. To build the graphql data, do I have to use the weekly restore snapshot as described in the github page for cardano-graphql or ...
5 votes
1 answer
357 views

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

I am building an MERN stack app cardano dex tool, I want to use Blockfrost. I have installed the SDK in Node.js backend, but there are only very few examples on how to get any kind of data from it. ...
5 votes
1 answer
676 views

How do I read the datum of an output?

How do I get the datum of an output from cardano-graphql (or another service)? I have attached it using the --tx-out-datum-embed-file flag already when building the tx using cardano-cli. Thanks!
3 votes
1 answer
49 views

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

I'm working on an application which for some of its features has to calculate the total balance of a wallet for a given time range. Here's a query that I've written (I don't have access to the ...
0 votes
2 answers
95 views

Where to find proper info on the cardano graphql

I am new to Cardano and have setup the GraphQL node All is running, but my problem is I can not find proper info on how to actually get the data. What I would like to query is asset data and smart ...
4 votes
1 answer
111 views

How much time does Cardano-graphql take to initialize?

I had configured db-sync and it is synchronizing. I had also started the Cardano-graphql. However, the message seems to be struck at "msg":"Initializing. This can take a few minutes...&...
3 votes
1 answer
863 views

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

I am looking for a GraphQL query that will return transaction details as seen on the Cardano Blockchain Explorer when searched with txId. For example, https://explorer.cardano.org/en/transaction?id=...