from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://YOUR_QUICKNODE_ENDPOINT_HERE.com"))
resp = w3.provider.make_request(
'pm_sponsorUserOperation',
[{"sender":"0x0000000000000000000000000000000000000000", "nonce":"0x0", "initCode":"0x", "callData":"0x", "callGasLimit":"0x0", "verificationGasLimit":"0x0", "preVerificationGas":"0x0", "maxFeePerGas":"0x0", "maxPriorityFeePerGas":"0x0", "paymasterAndData":"0x", "signature":"0x"}, "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", {"type":"payg"}]
)
print(resp)
require 'eth'
client = Eth::Client.create "https://YOUR_QUICKNODE_ENDPOINT_HERE.com"
payload = {
"id":1,
"jsonrpc":"2.0",
"method":"pm_sponsorUserOperation",
"params": [{"sender":"0x0000000000000000000000000000000000000000", "nonce":"0x0", "initCode":"0x", "callData":"0x", "callGasLimit":"0x0", "verificationGasLimit":"0x0", "preVerificationGas":"0x0", "maxFeePerGas":"0x0", "maxPriorityFeePerGas":"0x0", "paymasterAndData":"0x", "signature":"0x"}, "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", {"type":"payg"}]
}
response = client.send(payload.to_json)
puts response
const ethers = require("ethers");
(async () : {
const provider = new ethers.providers.JsonRpcProvider("https://YOUR_QUICKNODE_ENDPOINT_HERE.com");
const network = await provider.send(
"pm_sponsorUserOperation",
[{"sender":"0x0000000000000000000000000000000000000000", "nonce":"0x0", "initCode":"0x", "callData":"0x", "callGasLimit":"0x0", "verificationGasLimit":"0x0", "preVerificationGas":"0x0", "maxFeePerGas":"0x0", "maxPriorityFeePerGas":"0x0", "paymasterAndData":"0x", "signature":"0x"}, "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", {"type":"payg"}]
);
console.log(network);
})();
curl https://YOUR_QUICKNODE_ENDPOINT_HERE.com \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"pm_sponsorUserOperation","params": [{"sender":"0x0000000000000000000000000000000000000000", "nonce":"0x0", "initCode":"0x", "callData":"0x", "callGasLimit":"0x0", "verificationGasLimit":"0x0", "preVerificationGas":"0x0", "maxFeePerGas":"0x0", "maxPriorityFeePerGas":"0x0", "paymasterAndData":"0x", "signature":"0x"}, "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", {"type":"payg"}],"id":1,"jsonrpc":"2.0"}'