POST
/
smartwallet
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": [
        {}
      ]
    }
  ]
}'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "taskId": "<string>",
    "userOpHash": "<string>",
    "status": "<string>"
  }
}

Query Parameters

apiKey
string

API key for authentication.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.