Authentication
Authenticate yourself to the Particle Node Service API
Base URL: https://rpc.particle.network
The Solana chain's RPC URL is:
https://rpc.particle.network/solana
All EVM-compatible chains' RPC URL is:
https://rpc.particle.network/evm-chain
We assume you already have a Particle Account and access to our Dashboard, where you can create projects and apps.
The Web3 APIs require HTTP Basic Authentication:
Basic Auth Key | Basic Auth Value |
---|---|
Username | Your Project Id |
Password | Your Project Client Key / Server Key |
Javascript
Curl
const axios = require('axios');
const chainId = 5; // Goerli Network
const projectId = 'Your Project Id';
const projectServerKey = 'Your Project Client Or Server Key';
(async () => {
const response = await axios.post(`https://rpc.particle.network/evm-chain?chainId=${chainId}`, {
method: 'eth_getBalance',
params: [
'0xE860aE9379B1902DC08F67F50de7b9CC066AF0FF',
'latest',
],
}, {
auth: {
username: projectId,
password: projectServerKey,
},
});
console.log(response.data);
})();
curl 'https://api.particle.network/server/rpc' \
--header 'Authorization: Basic { Auth String }'
Last modified 3mo ago