CLI - getMarketsByStatus errors #88
Answered
by
druspencer
zac-scheiwe
asked this question in
Q&A
-
I'm getting the following results using getMarketsByStatus from the CLI.
zac:~/projects/solana/cli$ export ENVIRONMENT=devnet-edge
zac:~/projects/solana/cli$ npm run getMarketsByStatus open
> @monaco-protocol/[email protected] getMarketsByStatus
> ts-node src/get_markets_by_status.ts open
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
Supplied arguments:
{
"marketStatus": "open"
}
Environment: devnet-edge
RPC node: https://api.devnet.solana.com
Wallet PublicKey: 5BZWY6XWPxuWFxs2jagkmUkCoBWmJ6c4YEArr83hYBWk
{
"success": true,
"errors": [],
"data": {
"markets": []
}
}
zac:~/projects/solana/cli$ export ENVIRONMENT=mainnet-release
zac:~/projects/solana/cli$ npm run getMarketsByStatus open
> @monaco-protocol/[email protected] getMarketsByStatus
> ts-node src/get_markets_by_status.ts open
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
Supplied arguments:
{
"marketStatus": "open"
}
Environment: mainnet-release
RPC node: https://api.mainnet-beta.solana.com
Wallet PublicKey: 5BZWY6XWPxuWFxs2jagkmUkCoBWmJ6c4YEArr83hYBWk
[
Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "8967b66e-109c-4de3-8fe3-b7cc1f0f525d" }
at ClientBrowser.callServer (/home/zac/projects/solana/cli/node_modules/@solana/web3.js/src/connection.ts:1198:18)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
] 3.devnet-release fails zac:~/projects/solana/cli$ export ENVIRONMENT=devnet-release
zac:~/projects/solana/cli$ npm run getMarketsByStatus open
> @monaco-protocol/[email protected] getMarketsByStatus
> ts-node src/get_markets_by_status.ts open
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
Supplied arguments:
{
"marketStatus": "open"
}
Environment: devnet-release
RPC node: https://api.devnet.solana.com
Wallet PublicKey: 5BZWY6XWPxuWFxs2jagkmUkCoBWmJ6c4YEArr83hYBWk
[
Error: Invalid bool: 19
at WrappedLayout.decodeBool [as decoder] (/home/zac/projects/solana/cli/node_modules/@project-serum/borsh/src/index.ts:179:9)
at WrappedLayout.decode (/home/zac/projects/solana/cli/node_modules/@project-serum/borsh/src/index.ts:102:17)
at Structure.decode (/home/zac/projects/solana/cli/node_modules/buffer-layout/lib/Layout.js:1234:32)
at BorshAccountsCoder.decodeUnchecked (/home/zac/projects/solana/cli/node_modules/@project-serum/anchor/src/coder/borsh/accounts.ts:73:19)
at BorshAccountsCoder.decode (/home/zac/projects/solana/cli/node_modules/@project-serum/anchor/src/coder/borsh/accounts.ts:63:17)
at /home/zac/projects/solana/cli/node_modules/@project-serum/anchor/src/program/namespace/account.ts:180:35
at Array.map (<anonymous>)
at AccountClient.fetchMultiple (/home/zac/projects/solana/cli/node_modules/@project-serum/anchor/src/program/namespace/account.ts:176:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
] Let me know if you have any ideas! |
Beta Was this translation helpful? Give feedback.
Answered by
druspencer
Jun 21, 2023
Replies: 2 comments
-
Hey there Zac thanks for the post, sorry you're having issues.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zac-scheiwe
-
@zac-scheiwe I've added a market to
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there Zac thanks for the post, sorry you're having issues.
https://api.mainnet-beta.solana.com
this is just an example, you'll need to get set up with your own RPC, you'll be able to use it for your devnet and mainnet requests. Check out https://www.helius.dev/ or https://www.quicknode.com/ both offer free tiers