cardano-graphql
cardano-graphql copied to clipboard
the query is mutation submitTransaction( $transaction: String! ) { submitTransaction(transaction: $transaction) { hash } } OperationRequiresSyncedNode: Cannot submitTransaction until cardano-node is close to the network tip}]
Environment
The CLI can be used to gather generic information about your system to assist with support. No installation is required thanks to npx
npx @cardano-graphql/cli system-info
[PASTE_REPORT_HERE]
Alternatively, what release or Git revision are you using:
Platform
- [ ] Linux / Ubuntu
- [ ] Linux / Other
- [ ] macOS
- [ ] Windows
Platform version:
Runtime
- [ ] Node.js
- [ ] Docker
Runtime version:
node -v
docker version
Steps to reproduce the bug
What is the expected behavior?
Based on the message your node is not in sync with the network: Cannot submitTransaction until cardano-node is close to the network tip. How long have you left it to sync and are you able to run this query?
{cardanoDbMeta{initialized syncPercentage}}
It should return this result:
{
"data": {
"cardanoDbMeta": {
"initialized": true,
"syncPercentage": 100
}
}
}
I've faced with the same error on https://graphql-api.testnet.dandelion.link/