curl --request POST \
--url https://api.gelato.digital/smartwallet \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "wallet_prepareCalls",
"params": [
{
"chainId": 123,
"from": "<string>",
"calls": [
{
"to": "<string>",
"data": "<string>",
"value": "<string>"
}
],
"capabilities": {
"wallet": {
"encoding": "safe",
"type": "gelato",
"version": "<string>"
},
"payment": {
"type": "sponsored",
"sponsorApiKey": "<string>"
},
"authorization": {
"address": "<string>",
"authorized": true
},
"nonceKey": "<string>"
}
}
]
}
'{
"id": 1,
"jsonrpc": "2.0",
"result": {
"chainId": 123,
"signatureRequest": {
"type": "<string>",
"data": {
"sender": "<string>",
"nonce": "<string>",
"initCode": "<string>",
"callData": "<string>",
"signature": "<string>",
"paymasterAndData": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>"
}
},
"context": {
"wallet": {
"encoding": "<string>"
},
"payment": {
"type": "<string>",
"sponsorApiKey": "<string>"
},
"factory": {
"address": "<string>",
"data": "<string>"
},
"entryPoint": {
"version": "<string>",
"address": "<string>"
},
"userOp": {
"sender": "<string>",
"nonce": "<string>",
"initCode": "<string>",
"callData": "<string>",
"signature": "<string>",
"paymasterAndData": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>"
},
"quote": {
"fee": {
"amount": "<string>",
"rate": 123,
"decimals": 123
},
"gas": {
"amount": "<string>",
"l1": "<string>"
}
}
}
}
}Prepares calls for smart wallet execution with specified capabilities.
curl --request POST \
--url https://api.gelato.digital/smartwallet \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "wallet_prepareCalls",
"params": [
{
"chainId": 123,
"from": "<string>",
"calls": [
{
"to": "<string>",
"data": "<string>",
"value": "<string>"
}
],
"capabilities": {
"wallet": {
"encoding": "safe",
"type": "gelato",
"version": "<string>"
},
"payment": {
"type": "sponsored",
"sponsorApiKey": "<string>"
},
"authorization": {
"address": "<string>",
"authorized": true
},
"nonceKey": "<string>"
}
}
]
}
'{
"id": 1,
"jsonrpc": "2.0",
"result": {
"chainId": 123,
"signatureRequest": {
"type": "<string>",
"data": {
"sender": "<string>",
"nonce": "<string>",
"initCode": "<string>",
"callData": "<string>",
"signature": "<string>",
"paymasterAndData": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>"
}
},
"context": {
"wallet": {
"encoding": "<string>"
},
"payment": {
"type": "<string>",
"sponsorApiKey": "<string>"
},
"factory": {
"address": "<string>",
"data": "<string>"
},
"entryPoint": {
"version": "<string>",
"address": "<string>"
},
"userOp": {
"sender": "<string>",
"nonce": "<string>",
"initCode": "<string>",
"callData": "<string>",
"signature": "<string>",
"paymasterAndData": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>"
},
"quote": {
"fee": {
"amount": "<string>",
"rate": 123,
"decimals": 123
},
"gas": {
"amount": "<string>",
"l1": "<string>"
}
}
}
}
}API key for authentication.
Array containing a single PrepareCallsParams object
1 elementShow child attributes
Chain ID of the target network
Address of the smart wallet
Wallet capabilities configuration
Show child attributes
Show child attributes
ERC4337 encoding type
safe, okx, erc7579, trustWallet, gelato Wallet type
gelato, kernel, safe, okx, trustWallet, custom Wallet version
Nonce key for transaction ordering
Successful response
Show child attributes
Chain ID of the target network
Show child attributes
Type of signature request (e.g., 'eth_signUserOperation')
Show child attributes
Smart wallet address
Nonce for the operation
Initialization code (if wallet needs to be deployed)
Encoded call data for the batch of calls
Signature placeholder (to be filled by client)
Paymaster data for gas sponsorship
Gas limit for the call execution
Gas limit for verification
Gas for pre-verification overhead
Maximum fee per gas
Maximum priority fee per gas
Factory contract address
Factory initialization data
Show child attributes
Show child attributes
Smart wallet address
Nonce for the operation
Initialization code (if wallet needs to be deployed)
Encoded call data for the batch of calls
Signature placeholder (to be filled by client)
Paymaster data for gas sponsorship
Gas limit for the call execution
Gas limit for verification
Gas for pre-verification overhead
Maximum fee per gas
Maximum priority fee per gas
Factory contract address
Factory initialization data
Show child attributes