Skip to content

Commit 4d8dc7e

Browse files
author
tilo-14
committed
cosmetic in
1 parent a63d9f6 commit 4d8dc7e

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

api-reference/solana-to-light-comparison.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ import AgentSkillGeneric from "/snippets/setup/agent-skill-generic.mdx";
7272

7373
### Create an RPC connection
7474

75+
Helius exposes Solana and Photon RPC endpoints through a single URL.
76+
It's a thin wrapper extending Solana's `Connection` class that allows you to query cold Light Token balances.
77+
7578
<Tabs>
7679
<Tab title="TypeScript">
7780
<Columns cols={2}>

snippets/migration-reference/rpc/create-connection-rust.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
```rust
1+
```rust title="Light"
22
use light_client::rpc::{LightClient, LightClientConfig, Rpc};
33

44
let rpc = LightClient::new(
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
```typescript
2-
import { createRpc, Rpc } from "@lightprotocol/stateless.js";
1+
```typescript title="Light"
2+
import { createRpc, Rpc } from '@lightprotocol/stateless.js';
33

4-
// Helius exposes Solana and Photon RPC endpoints through a single URL
5-
const rpc: Rpc = createRpc(RPC_ENDPOINT, RPC_ENDPOINT);
4+
const RPC_ENDPOINT = 'https://mainnet.helius-rpc.com?api-key=YOUR_KEY';
5+
const connection: Rpc = createRpc(RPC_ENDPOINT, RPC_ENDPOINT);
66
```

0 commit comments

Comments
 (0)