How-To Guides
Smart Wallet Endpoints
Bundler API Endpoints
Additional Resources
Smart Wallet Endpoints
wallet_sendPreparedCalls
Sends prepared calls for smart wallet execution with signature and context.
POST
/
smartwallet
Copy
Ask AI
curl --request POST \
--url https://api.staging.gelato.digital/smartwallet \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "wallet_sendPreparedCalls",
"params": [
{
"chainId": 123,
"context": {
"wallet": {
"type": "gelato",
"encoding": "safe",
"version": "<string>"
},
"payment": {
"type": "sponsored",
"sponsorApiKey": "<string>"
},
"authorization": {
"address": "<string>",
"authorized": true
},
"calls": [
{
"to": "<string>",
"data": "<string>",
"value": "<string>"
}
],
"from": "<string>",
"nonceKey": "<string>",
"isInitialized": true,
"timestamp": 123,
"signature": "<string>",
"quote": {
"fee": {
"amount": "<string>",
"rate": 123,
"decimals": 123
},
"gas": {
"amount": "<string>",
"l1": "<string>"
}
}
},
"signature": "<string>",
"authorizationList": [
{}
]
}
]
}'
Copy
Ask AI
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"taskId": "<string>",
"userOpHash": "<string>",
"status": "<string>"
}
}
Query Parameters
API key for authentication.
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.staging.gelato.digital/smartwallet \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "wallet_sendPreparedCalls",
"params": [
{
"chainId": 123,
"context": {
"wallet": {
"type": "gelato",
"encoding": "safe",
"version": "<string>"
},
"payment": {
"type": "sponsored",
"sponsorApiKey": "<string>"
},
"authorization": {
"address": "<string>",
"authorized": true
},
"calls": [
{
"to": "<string>",
"data": "<string>",
"value": "<string>"
}
],
"from": "<string>",
"nonceKey": "<string>",
"isInitialized": true,
"timestamp": 123,
"signature": "<string>",
"quote": {
"fee": {
"amount": "<string>",
"rate": 123,
"decimals": 123
},
"gas": {
"amount": "<string>",
"l1": "<string>"
}
}
},
"signature": "<string>",
"authorizationList": [
{}
]
}
]
}'
Copy
Ask AI
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"taskId": "<string>",
"userOpHash": "<string>",
"status": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.