Skip to main content
GET
/
instructions
/
activity
cURL
curl --request GET \
  --url https://api.otim.com/instructions/activity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chainId": 11155111,
  "actionNames": [
    "transferERC20",
    "transfer"
  ],
  "perPage": 10,
  "page": 0
}'
[
  {
    "address": "<string>",
    "actionName": "<string>",
    "blockTimestamp": 123,
    "executionCount": 123,
    "instructionId": "<string>",
    "transactionHash": "<string>",
    "activity": {
      "token": "<string>",
      "from": "<string>",
      "to": "<string>",
      "value": 123
    }
  }
]
Get instruction activity for a specific chain.

Authorizations

Authorization
string
header
required

JWT token for API authentication

Body

application/json
chainId
integer
required

Chain ID

Example:

11155111

actionNames
string[]
required

List of action names to filter by

Example:
["transferERC20", "transfer"]
perPage
integer | null

Number of records per page

Example:

10

page
integer | null

Page number

Example:

0

Response

200 - application/json

Activity retrieved successfully

address
string<address>
required

User address

actionName
string
required

Name of the action

blockTimestamp
integer
required

Block timestamp

executionCount
integer
required

Execution count

instructionId
string<bytes32>
required

Instruction ID

transactionHash
string<bytes32>
required

Transaction hash

activity
object
required
  • Transfer
  • Swap
  • CCTPBurn
  • ERC4626Deposit
  • ERC4626Withdraw