An open API service indexing awesome lists of open source software.

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

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;
```