Skip to content

Add Solana Pay #1401

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

Merged
merged 1 commit into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions other/solana-pay-example/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
25 changes: 25 additions & 0 deletions other/solana-pay-example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
yarn.lock

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
48 changes: 48 additions & 0 deletions other/solana-pay-example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Web3Auth React Solana Quick Start

This example demonstrates how to integrate Web3Auth into a React application for the Solana blockchain.

## Prerequisites
- Node.js 20+
- npm
- A Web3Auth Client ID (get one from [Web3Auth Dashboard](https://dashboard.web3auth.io))

## Quick Start

### 1. Clone the repository
```bash
git clone https://github.com/Web3Auth/web3auth-examples.git
```

### 2. Navigate to the example
```bash
cd web3auth-examples/quick-starts/react-solana-quick-start
```

### 3. Install dependencies
```bash
npm install
```

### 4. Configure environment variables
Create a `.env` file and add your Web3Auth Client ID:
```bash
VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
```

### 5. Run the application
```bash
npm run dev
```

Visit `http://localhost:5173` in your browser to see the application running.

## 📚 Resources

- [Web3Auth Documentation](https://web3auth.io/docs)
- [SDK References](https://web3auth.io/docs/sdk)
- [Developer Dashboard](https://dashboard.web3auth.io)
- [Web3Auth Community](https://web3auth.io/community)

## License
MIT
19 changes: 19 additions & 0 deletions other/solana-pay-example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module">
import { Buffer } from "buffer";
import process from "process";
window.Buffer = Buffer;
window.process = process;
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading