post https://paymaster.particle.network/#pm_paymasterBalance
-
🏦 Understanding
paymasterBalance
paymasterBalance
returns the USD balance (6 decimals) of the Paymaster associated with yourprojectId
(projectUuid
) andserverKey
(projectKey
). It takes no parameters other than theprojectUuid
andprojectKey
for authentication.
Query example
import Axios from "axios";
const projectUuid = "Your project uuid";
const projectKey = "Your project client key or server key";
const paymasterUrl = "https://paymaster.particle.network";
(async () => {
const response = await Axios.post(
paymasterUrl,
{
method: "pm_paymasterBalance",
params: [],
},
{
params: {
projectUuid,
projectKey,
},
}
);
console.log(response.data);
})();