curl --request POST \
--url https://api.skia.money/api/wallets/smart/{address}/userops \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"calls": [
{
"to": "<string>",
"value": "<string>",
"data": "<string>"
}
],
"purpose": "raw"
}
'import requests
url = "https://api.skia.money/api/wallets/smart/{address}/userops"
payload = {
"calls": [
{
"to": "<string>",
"value": "<string>",
"data": "<string>"
}
],
"purpose": "raw"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({calls: [{to: '<string>', value: '<string>', data: '<string>'}], purpose: 'raw'})
};
fetch('https://api.skia.money/api/wallets/smart/{address}/userops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.skia.money/api/wallets/smart/{address}/userops",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'calls' => [
[
'to' => '<string>',
'value' => '<string>',
'data' => '<string>'
]
],
'purpose' => 'raw'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.skia.money/api/wallets/smart/{address}/userops"
payload := strings.NewReader("{\n \"calls\": [\n {\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"data\": \"<string>\"\n }\n ],\n \"purpose\": \"raw\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.skia.money/api/wallets/smart/{address}/userops")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"calls\": [\n {\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"data\": \"<string>\"\n }\n ],\n \"purpose\": \"raw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skia.money/api/wallets/smart/{address}/userops")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"calls\": [\n {\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"data\": \"<string>\"\n }\n ],\n \"purpose\": \"raw\"\n}"
response = http.request(request)
puts response.read_body{
"userOpHash": "<string>",
"txHash": "<string>",
"success": true,
"gasSponsoredEth": "<string>",
"calls": [
{}
],
"blockNumber": 123,
"onChain": true
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}Submit arbitrary calls as ONE gasless (sponsored) UserOperation
The generic agentic primitive: 1..8 calls execute INSIDE the SkiaAccount through the canonical EntryPoint v0.7, sponsored by SkiaPaymaster — the taker holds zero gas. SkiaDefaultPolicy only sponsors settlement-shaped ops (target == SwapERC20, approvals TO SwapERC20, 0-value self-management, deploy-only); everything else is rejected on-chain (EP AA34). Bearer-enforced server-side (requireSmartWallet — the v0.3.0 security: [] underclaimed enforcement, R4-2; the residual bearer-forgery risk is disclosed in x-auth-posture, not here). CAUTION (R4-3): with a session key holding the pen, the shape-only allowlist means a raw userops batch can fill ANY maker-signed SwapERC20 order — compose ops from server-obtained quotes. The EOA path remains the escape hatch. gasSponsoredEth reports the actual sponsored cost. Every op here is ALWAYS on-chain (R4-23).
curl --request POST \
--url https://api.skia.money/api/wallets/smart/{address}/userops \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"calls": [
{
"to": "<string>",
"value": "<string>",
"data": "<string>"
}
],
"purpose": "raw"
}
'import requests
url = "https://api.skia.money/api/wallets/smart/{address}/userops"
payload = {
"calls": [
{
"to": "<string>",
"value": "<string>",
"data": "<string>"
}
],
"purpose": "raw"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({calls: [{to: '<string>', value: '<string>', data: '<string>'}], purpose: 'raw'})
};
fetch('https://api.skia.money/api/wallets/smart/{address}/userops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.skia.money/api/wallets/smart/{address}/userops",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'calls' => [
[
'to' => '<string>',
'value' => '<string>',
'data' => '<string>'
]
],
'purpose' => 'raw'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.skia.money/api/wallets/smart/{address}/userops"
payload := strings.NewReader("{\n \"calls\": [\n {\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"data\": \"<string>\"\n }\n ],\n \"purpose\": \"raw\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.skia.money/api/wallets/smart/{address}/userops")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"calls\": [\n {\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"data\": \"<string>\"\n }\n ],\n \"purpose\": \"raw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skia.money/api/wallets/smart/{address}/userops")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"calls\": [\n {\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"data\": \"<string>\"\n }\n ],\n \"purpose\": \"raw\"\n}"
response = http.request(request)
puts response.read_body{
"userOpHash": "<string>",
"txHash": "<string>",
"success": true,
"gasSponsoredEth": "<string>",
"calls": [
{}
],
"blockNumber": 123,
"onChain": true
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}Authorizations
TESTNET posture: simulated signature bearer — the token is the caller's 0x (address-as-identity; no per-request signature verification). Real EIP-191/EIP-712-verified bearers + SIWE (EIP-4361) sessions for the hosted UI arrive in v1.7.0. The settlement security boundary is the EIP-712 Order signature verified by SwapERC20 on-chain, not this credential. See docs/auth-posture-testnet.md.
Body
Response
UserOperation executed