solana-foundation / developer-content

Collection of Developer content for exploring, learning, and building in the Solana ecosystem.

Home Page:https://solana.com/developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[docs/rpc] rpc method examples curl to localhost not a public endpoint

nickfrosty opened this issue · comments

Problem

The rpc docs give examples of how to use each method using a CURL request to a localhost endpoint, which assumes a user is already running a local test validator. Which the grand majority will not.

Proposed Solution

Update all the rpc CURL examples to use the public devnet endpoint instead of localhost. This will allow anyone to run the command right away and get a real response. This might involve updating some of the request params to use accounts and data that is live on devnet