curl --request POST \
--url https://api.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": [
{
"address": "<string>",
"chainId": 123,
"nonce": 123,
"r": "<string>",
"s": "<string>",
"yParity": 123
}
]
}
]
}'
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"taskId": "<string>",
"userOpHash": "<string>",
"status": "<string>"
}
}
Sends prepared calls for smart wallet execution with signature and context.
curl --request POST \
--url https://api.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": [
{
"address": "<string>",
"chainId": 123,
"nonce": 123,
"r": "<string>",
"s": "<string>",
"yParity": 123
}
]
}
]
}'
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"taskId": "<string>",
"userOpHash": "<string>",
"status": "<string>"
}
}
API key for authentication.
Successful response
The response is of type object
.