Skip to content
Cosmopediaby Unity Nodes
DiscussionsMiscellaneousRefusing to connect to local nodeForum ↗

Refusing to connect to local node

Miscellaneous4 posts484 viewsLast activity Feb 2024
GU
guantanamo.baeOP
Feb 2024

Hey everyone, I just started on the Cosmos SDK and want to write a script that can sign and send transactions via a remote call. I started by following this tutorial: tutorials.cosmos.network/tutorials/3-run-node/ I have a local node running, I can send transactions, I can see the transactions passing through. Now, to send transactions from a remote call, I am using CosmJS, once I write my script then any website can use that CosmJS script. I am following this tutorial: tutorials.cosmos.network/tutorials/7-cosmjs/2-first-steps.html#with-a-locally-started-chain I make sure my node is running, but when I run the experiment-local.ts, I get this error: ``` TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11929:11) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async HttpClient.execute (code/cosmos/cosmjs-sandbox/node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:52:43) at async Function.detectVersion (code/cosmos/cosmjs-sandbox/node_modules/@cosmjs/tendermint-rpc/src/tendermint34/tendermint34client.ts:42:22) at async Function.create…

Excerpt (1137 of 1830 characters). Read the whole post on the forum ↗

GU
guantanamo.bae
Feb 2024

I also can probably get the same results by writing a Go script and having it run on a server that talks to my node, but the example found here seems to be missing some details: docs.cosmos.network/main/user/run-node/txs#programmatically-with-go
Since I based my node off the simd app that runs on v0.45.4
I also need to make sure that I am using the proper methods for the proper version

TK
tknox35
Feb 2024

Scam. Don’t click anything from this bottom feeder for “support”.

GU
guantanamo.bae
Feb 2024

Hey Ryan, just wanted to confirm something. I included some links to the official cosmos tutorials just to give better context on what I was doing since everything I have written up has been directly taken from the cosmos tutorial. Is there anything wrong with what I posted?

← Back to Discussions