cURL
curl --request POST \
--url http://localhost:4100/v1/userops \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userOp": {
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"signature": "<string>",
"entryPoint": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterData": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>"
},
"userOpHash": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
userOp: {
sender: '<string>',
nonce: '<string>',
callData: '<string>',
signature: '<string>',
entryPoint: '<string>',
callGasLimit: '<string>',
verificationGasLimit: '<string>',
preVerificationGas: '<string>',
maxFeePerGas: '<string>',
maxPriorityFeePerGas: '<string>',
factory: '<string>',
factoryData: '<string>',
paymaster: '<string>',
paymasterData: '<string>',
paymasterVerificationGasLimit: '<string>',
paymasterPostOpGasLimit: '<string>'
},
userOpHash: '<string>'
})
};
fetch('http://localhost:4100/v1/userops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userOpHash": "<string>",
"status": "pending",
"txHash": "<string>",
"submittedAt": "2023-11-07T05:31:56Z",
"error": "User operation failed."
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "capability_unavailable",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Owner UserOps
Post v1userops
Owner sessions relay owner-signed Base operations. Agent sessions relay only signed delegated send, swap or delegated_action operations for their own live Smart Sessions grant on the selected account and chain. Device mutations remain owner-only. Acceptance is durably recorded before response; ambiguous submissions are reconciled by polling.
cURL
curl --request POST \
--url http://localhost:4100/v1/userops \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userOp": {
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"signature": "<string>",
"entryPoint": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterData": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>"
},
"userOpHash": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
userOp: {
sender: '<string>',
nonce: '<string>',
callData: '<string>',
signature: '<string>',
entryPoint: '<string>',
callGasLimit: '<string>',
verificationGasLimit: '<string>',
preVerificationGas: '<string>',
maxFeePerGas: '<string>',
maxPriorityFeePerGas: '<string>',
factory: '<string>',
factoryData: '<string>',
paymaster: '<string>',
paymasterData: '<string>',
paymasterVerificationGasLimit: '<string>',
paymasterPostOpGasLimit: '<string>'
},
userOpHash: '<string>'
})
};
fetch('http://localhost:4100/v1/userops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userOpHash": "<string>",
"status": "pending",
"txHash": "<string>",
"submittedAt": "2023-11-07T05:31:56Z",
"error": "User operation failed."
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "capability_unavailable",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Authorizations
Body
application/json
Available options:
send, swap, delegated_action, account_deploy, account_freeze, account_unfreeze, panic_freeze, panic_install, rules_update, policy_set, policy_remove, signer_add, signer_remove, signer_threshold, guardians_set, guardian_add, guardian_remove, condition_set_member_set, signers_recover, action_announce, authority_migration_op_a, authority_migration_op_b, trust_anchor_set, device_add, device_remove, device_threshold, delegation_enable, delegation_freeze, delegation_unfreeze, delegation_revoke Response
Durably recorded submission receipt; poll for authoritative status.