Notus API
User operations

Get User Operation

Get a user operation by its hash

GET
/api/v1/crypto/user-operation/{userOperationHash}
x-api-key<token>

In: header

Path Parameters

userOperationHashstring

Hash of the user operation

Match^0x[a-fA-F0-9]{64}$

Response Body

curl -X GET "https://api.notus.team/api/v1/crypto/user-operation/0x2aac7a66d5331454eafc9b981be3596ad08a40dad24883e3b9c4a5362cd7f7e1"
{
  "userOperation": {
    "metadata": {
      "key": "value"
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "userOperationHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "authorization": {
      "chainId": 42161,
      "address": "0xd6cedde84be40893d153be9d467cd6ad37875b28",
      "nonce": 10,
      "hash": "0x777811ae5d51875409b9978ddc1b40a9da1bbe9570040bdd7c5f186d70ceceba"
    },
    "chainIn": {
      "id": 137,
      "name": "POLYGON",
      "logo": "https://logopolygon.com"
    },
    "chainOut": {
      "id": 137,
      "name": "POLYGON",
      "logo": "https://logopolygon.com"
    },
    "chainIdIn": 1,
    "chainIdOut": 137,
    "sender": {
      "walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
      "accountAbstraction": "0x1234567890abcdef1234567890abcdef12345678",
      "externallyOwnedAccount": "0x1234567890abcdef1234567890abcdef12345678"
    },
    "nonce": "1",
    "signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "callGasLimit": "100000",
    "verificationGasLimit": "50000",
    "preVerificationGas": "21000",
    "maxFeePerGas": "20000000000",
    "maxPriorityFeePerGas": "1500000000",
    "maxGasFeeNative": "0.01",
    "maxGasFeeToken": "0.5",
    "payFeesToken": "0xabcdef1234567890abcdef1234567890abcdef12",
    "factory": {
      "data": "0x1234567890abcdef",
      "address": "0x1234567890abcdef1234567890abcdef12345678",
      "entryPointVersion": "v0.6"
    },
    "paymaster": "0xabcdef1234567890abcdef1234567890abcdef12",
    "paymasterData": "0x1234567890abcdef1234567890abcdef",
    "paymasterPostOpGasLimit": "30000",
    "paymasterVerificationGasLimit": "40000",
    "expiresAt": "2023-12-31T23:59:59.999Z",
    "projectId": "123e4567-e89b-12d3-a456-426614174000",
    "organizationId": "123e4567-e89b-12d3-a456-426614174000"
  }
}
{
  "statusCode": 403,
  "id": "UNAVAILABLE_COMPUTE_UNITS",
  "message": "The project doesn't have enough compute units to perform this action. Please upgrade your plan."
}
{
  "statusCode": 404,
  "id": "USER_OPERATION_NOT_FOUND",
  "message": "Could not find the User Operation requested"
}