Intents

Raw Transaction Execute

Execute a raw transaction intent. For more details on Raw Transaction intents, see Understanding Intents. Refer to the RawTransaction API template script for implementation guidance.

POST
/api/oc/v1/execute

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
senderRequiredstring

Sender address

nonceRequiredstring

Unique identifier for the session

paymasterRequiredstring

Paymaster address

callGasLimitRequiredstring

Call gas limit

verificationGasLimitRequiredstring

Verification gas limit

preVerificationGasRequiredstring

Pre-verification gas

maxFeePerGasRequiredstring

Maximum fee per gas

maxPriorityFeePerGasRequiredstring

Maximum priority fee per gas

paymasterPostOpGasLimitRequiredstring

Paymaster post operation gas limit

paymasterVerificationGasLimitRequiredstring

Paymaster verification gas limit

callDataRequiredstring

Call data

paymasterDataRequiredstring

Paymaster data

signatureRequiredstring

Signature

curl -X POST "https://sandbox-api.okto.tech/api/oc/v1/execute" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "sender": "0xb7f85b44fe92cfdd49b962dfd94b983678de5ee7",
    "nonce": "0x0000000000000000000000000000000088017fc4059c4af388babb456a03b7af",
    "paymaster": "0x9b34131837d534cd199c0b8fdd8347c05e21a2d8",
    "callGasLimit": "0x493e0",
    "verificationGasLimit": "0x30d40",
    "preVerificationGas": "0xc350",
    "maxFeePerGas": "0x77359400",
    "maxPriorityFeePerGas": "0x77359400",
    "paymasterPostOpGasLimit": "0x186a0",
    "paymasterVerificationGasLimit": "0x186a0",
    "callData": "0x8dd7712f00000000000000000000000000000000000000000000000000000000000000000000000000000000e2bb608bf66b81d3edc93e77ef1cddee4fdc679e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003e48fa61ac000000000000000000000000000000000cfcb83f026674a128790839a86e944d7000000000000000000000000e8201e368557508bf183d4e2dce1b1a1e0bd20fa000000000000000000000000fbb05b5bf0192458e0ca5946d7b82a61eba9802500000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000000c6569703135353a38343533320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a307839363762323663396537376632663565303735336263626362326262363234653562626666323463000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e544f4b454e5f5452414e5346455200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "paymasterData": "0x0000000000000000000000006b6fad2600bc57075ee560a6fdf362ffefb9dc3c000000000000000000000000000000000000000000000000000000006d0db17b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000041c058909b0bbf84a232df087cd51f715b6deffec8f85b186c3d74e55484544f1847b969f318fc75d3710f5ebf9d0e0bb2c7ffc245fd9be912cb2190832eb7830a1b00000000000000000000000000000000000000000000000000000000000000",
    "signature": "0xe518ae8501170f2797e50ad74e9e648b5daea11eb687de82def4f124d265025e796f4d8f101ec0c104114cf6ef0d3d9f14aa50fb45e75fb7f8ef74787517d58b1c"
  }'

{
  "status": "success",
  "data": {
    "jobId": "9c424737-e204-461b-b93a-ca8e3dfd655c"
  }
}