https://github.com/soldapper/rpcx-proxy
Solana PHP RPC Proxy
https://github.com/soldapper/rpcx-proxy
Last synced: 9 months ago
JSON representation
Solana PHP RPC Proxy
- Host: GitHub
- URL: https://github.com/soldapper/rpcx-proxy
- Owner: SolDapper
- License: mit
- Created: 2024-06-30T14:49:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-08T00:58:01.000Z (11 months ago)
- Last Synced: 2025-02-08T01:29:15.859Z (11 months ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rpcx-proxy
solana rpc proxy for non-node enviroments running php
# features
whitelist domains or allow all origins
protects your rpc endpoint from public view
# example usage
just send your rpc requests from your front end to the proxy
```javascript
let proxy = "https://yourwebsite.com/proxy.php";
let connection = new solanaWeb3.Connection(proxy, "confirmed");
```
# settings
open the proxy file and add your whitelist and rpc details
```javascript
$whitelist = array("https://yourwebsite.com","https://anotherwebsite.com");
$key = "helius-key-here";
$path = "https://mainnet.helius-rpc.com/?api-key=".$key;
```