Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap RPC call or parameters have been disabled #1

Open
pjherold opened this issue Feb 13, 2022 · 0 comments
Open

Swap RPC call or parameters have been disabled #1

pjherold opened this issue Feb 13, 2022 · 0 comments

Comments

@pjherold
Copy link

I've tried running this on my own, but the swap keeps failing.
Below is the output I get:

yarn start twap --from USDC --to SOL --amount 10 --interval 10s
yarn run v1.22.17
$ node lib/index.js twap --from USDC --to SOL --amount 10 --interval 10s
12:36:18.544 - info: using wallet {MY_WALLET}
12:36:18.550 - info: update tokens accounts...
12:36:19.250 - info: twap swap of 10 from USDC to SOL every 10s ready
12:36:19.251 - info: swap starting...
/mnt/c/Users/Desktop/jup_twap/node_modules/@solana/web3.js/lib/index.cjs.js:4423
callback(new Error(${res.status} ${res.statusText}: ${text}));
^

Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "e083ab01-0969-4193-86d3-ccd863a6356f" }
at ClientBrowser.callServer (/mnt/c/Users/Desktop/jup_twap/node_modules/@solana/web3.js/lib/index.cjs.js:4423:18)
at processTicksAndRejections (node:internal/process/task_queues:93:5)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant