Arka (Paymaster) API calls
pm_sponsorUserOperation
Arka (Paymaster) API calls
- POSTpm_sponsorUserOperation
- POST/checkWhitelist
- POST/checkWhitelist/v2
- POST/whitelist
- POST/whitelist/v2
- POST/removeWhitelist
- POST/removeWhitelist/v2
- POST/deposit
- POST/deposit/v2
- POST/pimlicoAddress
- POST/getAllWhitelist/v2
- GET/metadata
- POST/add-policy
- DEL/delete-policy/{id}
- PUT/update-policy
- PUT/enable-policy/{id}
- PUT/disable-policy/{id}
- GET/policy
- GET/policy/{id}
- GET/policy/wallet-address/{walletAddress}
- GET/policy/wallet-address/{walletAddress}/ep-version/{epVersion}
- GET/policy/wallet-address/{walletAddress}/ep-version/{epVersion}/chain-id/{chainId}
- GET/policy/wallet-address/{walletAddress}/latest
- GET/policy/wallet-address/{walletAddress}/ep-version/{epVersion}/latest
- GET/policy/wallet-address/{walletAddress}/chain-id/{chainId}/latest
- GET/policy/wallet-address/{walletAddress}/ep-version/{epVersion}/chain-id/{chainId}/latest
Arka (Paymaster) API calls
pm_sponsorUserOperation
Sponsor a userOps
POST
/
apiKey
string
apiKey
string
Arka API key
chainId
string
chainId
string
Chain ID
object
*
jsonrpc
enum<string>
*
jsonrpc
Required
enum<string>
method
enum<string>
*
method
Required
enum<string>
params
array
*
params
Required
array
id
integer
*
id
Required
integer
Example values you use to demo the API:
{
"jsonrpc": "2.0",
"method": "pm_sponsorUserOperation",
"params": [
{
"sender":"0xb341FEAFaF71b09089d03B7D114599f8F491EE45",
"nonce":"0x0",
"initCode":"0x5de4839a76cf55d0c90e2061ef4386d962E15ae3296601cd0000000000000000000000000da6a956b9488ed4dd761e59f52fdc6c8068e6b5000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084d1f57894000000000000000000000000d9ab5096a832b9ce79914329daee236f8eea039000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000014375cd3E53E18f65672E9d0Eb6AD174511b0BF98100000000000000000000000000000000000000000000000000000000000000000000000000000000",
"callData":"0x5194544700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"callGasLimit":"0x0",
"verificationGasLimit":"0x0",
"preVerificationGas":"0x0",
"maxPriorityFeePerGas":"0x3b9aca00",
"maxFeePerGas":"0x7a5cf70d5",
"paymasterAndData":"0x",
"signature":"0x00000000fffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"
},
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
{ "mode": 'sponsor' }
],
"id": 1
}
Example response:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"paymasterAndData": "0x26fec24b0d467c9de105217b483931e8f944ff500000000000000000000000000000000000000000000000000000000066ebe8b80000000000000000000000000000000000000000000000000000000066ebceb4b5b1df6daf753a0017ac66af78cf10aad42803f86efceff5db656890034e588e10c33ca89eab9ecaef9f0188303b3a3674299fc5208684f9d4de7f34202df1521c",
"verificationGasLimit": "0xe967",
"preVerificationGas": "0x18810",
"callGasLimit": "0x28ede",
}
}
Query Parameters
apiKey
string
Arka API key
chainId
string
Chain ID
Body
application/json
jsonrpc
enum<string>
default: 2.0requiredAvailable options:
2.0
method
enum<string>
default: pm_sponsorUserOperationrequiredAvailable options:
pm_sponsorUserOperation
params
array
requiredid
integer
required