Intents

Token Transfer Execute

Execute a token transfer intent. For more details on Token Transfer intents, see Understanding Intents. Refer to the TokenTransfer 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": "0xfBb05b5Bf0192458E0Ca5946d7B82a61Eba98025",
    "nonce": "0x00000000000000000000000000000000cfcb83f026674a128790839a86e944d7",
    "paymaster": "0x74324fA6Fa67b833dfdea4C1b3A9898574d076e3",
    "callGasLimit": "0x493e0",
    "verificationGasLimit": "0x30d40",
    "preVerificationGas": "0xc350",
    "maxFeePerGas": "0x77359400",
    "maxPriorityFeePerGas": "0x77359400",
    "paymasterPostOpGasLimit": "0x186a0",
    "paymasterVerificationGasLimit": "0x186a0",
    "callData": "0x8dd7712f00000000000000000000000000000000000000000000000000000000000000000000000000000000e2bb608bf66b81d3edc93e77ef1cddee4fdc679e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003e48fa61ac000000000000000000000000000000000cfcb83f026674a128790839a86e944d7000000000000000000000000e8201e368557508bf183d4e2dce1b1a1e0bd20fa000000000000000000000000fbb05b5bf0192458e0ca5946d7b82a61eba9802500000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000000c6569703135353a38343533320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a307839363762323663396537376632663565303735336263626362326262363234653562626666323463000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e544f4b454e5f5452414e5346455200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "paymasterData": "0x000000000000000000000000e8201e368557508bf183d4e2dce1b1a1e0bd20fa00000000000000000000000000000000000000000000000000000000680f6f3d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004143e39953bef95eaf46f118c12748d914acc439a7a129768c3217869ed85d8d6843e835be5b6b35320d8301d1d153dbc03de27372782f49ac0e18e31a2c437b3d1c00000000000000000000000000000000000000000000000000000000000000",
    "signature": "0x90d255c36bbe3612480f9c53fc80f5b37f0553ab8e512864ad2da326f912e42b7ddd1b13c714aaec6fd86846fc8d3e5eef29cfce9a74ae24f47280c0a4a733251c"
  }'

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