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

Fix dead link in hello-world-in-your-browser.md #33

Merged
merged 4 commits into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions content/guides/getstarted/hello-world-in-your-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ icon and naming your project `hello_world`.

### Create a Playground wallet

Normally with [local development](./setup-local-development.md), you will need
to create a file system wallet for use with the Solana CLI. But with the Solana
Playground, you only need to click a few buttons to create a browser based
wallet.
Normally with
[local development](/content/guides/getstarted/setup-local-development.md), you
will need to create a file system wallet for use with the Solana CLI. But with
the Solana Playground, you only need to click a few buttons to create a browser
based wallet.

> Your _Playground Wallet_ will be saved in your browser's local storage.
> Clearing your browser cache will remove your saved wallet. When creating a new
Expand All @@ -86,7 +87,9 @@ click "**Continue**".
After your Playground Wallet is created, you will notice the bottom of the
window now states your wallet's address, your SOL balance, and the Solana
cluster you are connected to (Devnet is usually the default/recommended, but a
"localhost" [test validator](./setup-local-development.md) is also acceptable).
"localhost"
[test validator](/content/guides/getstarted/setup-local-development.md) is also
acceptable).

## Create a Solana program

Expand All @@ -113,8 +116,8 @@ use solana_program::{

Every Solana program must define an `entrypoint` that tells the Solana runtime
where to start executing your on chain code. Your program's
[entrypoint](https://docs.solana.com/developing/on-chain-programs/developing-rust#program-entrypoint)
should provide a public function named `process_instruction`:
[entrypoint](/docs/programs/lang-rust.md#program-entrypoint) should provide a
public function named `process_instruction`:

```rust
// declare and export the program's entrypoint
Expand All @@ -139,9 +142,8 @@ Every on chain program should return the `Ok`
tells the Solana runtime that your program executed successfully without errors.

Our program above will simply
[log a message](https://docs.solana.com/developing/on-chain-programs/debugging#logging)
of "_Hello, world!_" to the blockchain cluster, then gracefully exit with
`Ok(())`.
[log a message](/docs/programs/debugging.md#logging) of "_Hello, world!_" to the
blockchain cluster, then gracefully exit with `Ok(())`.

### Build your program

Expand Down Expand Up @@ -178,11 +180,9 @@ solana airdrop 2

### Find your program id

When executing a program using
[web3.js](https://docs.solana.com/developing/clients/javascript-reference) or
from
[another Solana program](https://docs.solana.com/developing/programming-model/calling-between-programs),
you will need to provide the `program id` (aka public address of your program).
When executing a program using [web3.js](/docs/clients/javascript-reference.md)
or from [another Solana program](/docs/core/cpi.md), you will need to provide
the `program id` (aka public address of your program).

Inside Solana Playground's **Build & Deploy** sidebar, you can find your
`program id` under the **Program Credentials** dropdown.
Expand All @@ -204,8 +204,8 @@ chain program using JavaScript. Specifically, will use the open source
to aid in our client application.

> This web3.js package is an abstraction layer on top of the
> [JSON RPC API](/api) that reduced the need for rewriting common boilerplate,
> helping to simplify your client side application code.
> [JSON RPC API](/docs/rpc.md) that reduced the need for rewriting common
> boilerplate, helping to simplify your client side application code.

### Initialize client

Expand All @@ -232,9 +232,9 @@ Playground utilities.
### Call the program

To execute your on chain program, you must send a
[transaction](https://docs.solana.com/developing/programming-model/transactions)
to it. Each transaction submitted to the Solana blockchain contains a listing of
instructions (and the program's that instruction will interact with).
[transaction](/docs/core/transactions.md) to it. Each transaction submitted to
the Solana blockchain contains a listing of instructions (and the program's that
instruction will interact with).

Here we create a new transaction and add a single `instruction` to it:

Expand Down Expand Up @@ -314,7 +314,7 @@ re-execute your program.
See the links below to learn more about writing Solana programs, and setting up
your local development environment:

- [Setup your local development environment](./setup-local-development.md)
- [Overview of writing Solana programs](https://docs.solana.com/developing/on-chain-programs/overview)
- [Learn more about developing Solana programs with Rust](https://docs.solana.com/developing/on-chain-programs/developing-Rust)
- [Debugging on chain programs](https://docs.solana.com/developing/on-chain-programs/debugging)
- [Setup your local development environment](/content/guides/getstarted/setup-local-development.md)
- [Overview of writing Solana programs](/docs/programs/index.md)
- [Learn more about developing Solana programs with Rust](/docs/programs/lang-rust.md)
- [Debugging on chain programs](/docs/programs/debugging.md)
Loading