DeCommas Use Cases
Datalayer Endpoints
All Tokens Metadata
All Coins Metadata
Tokens by Symbol
Coins
ERC-20 Tokens
ERC-20 Tokens Metadata
ERC-20 Transfers
NFTs
NFT Transfers
NFT Metadata
NFT Holders
NFT Collection Metadata
Transactions
Transaction Details
Transaction NFT transfers
Transaction ERC-20 transfers
Transaction User Operations
Protocols
Token Holders
User Operation
User Operations
Price Service Endpoints
DeCommas Price Service
Get Price
Job Openings
Node.js Developer
Endpoint: User Operations
/user_operations/{address}
Returns a list of user operations, where the address is the sender or target in all networks, sorted by time in descending order.
Example:
GET-parameters:
- api-key
- networks (by default networks=all, or takes the value of one network). You can pass the name of the network you are interested in, for example, for Optimism, the request will look like this: https://datalayer.decommas.net/datalayer/api/v1/user_operations/{address}?networks=optimism&api-key={YOUR-API-KEY}
- limit - parameter used for pagination (default 20, minimum 20, maximum 100).
- offset - parameter used for pagination (default 0).
Response example (ALL FIELDS ARE MANDATORY):
{
"status": 200,
"result": [
{
"chain_name": "polygon",
"chain_id": 137,
"user_operation_hash": "0xe0631f7293bdc29d5f1567ced6e47848f4fba927a501ee774cb0bce96dac5153",
"transaction_hash": "0xce6ee2b946b508b26072be871e97ee89066bc691a433a11e3a478e302c536651",
"block_number": 50807653,
"block_timestamp": 1701861600,
"transaction_index": 84,
"log_index": 426,
"sender": "0xaef1a90089eac0d4fad5dd168ae49bc88cbc86ef",
"target": "0x0000000000000000000000000000000000000000",
"paymaster": "0x0000000000000000000000000000000000000000",
"bundler": "0x7f4d67fbcc3f1c2f7a121d6770bcd99b4a50b87f",
"entry_point": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"user_operation_fee": "164684524544799075",
"actual_gas_cost": "164684524544799075",
"actual_gas_used": "981385",
"call_gas_limit": "615117",
"verification_gas_limit": "917041",
"pre_verification_gas": "64069",
"max_fee_per_gas": "259253934044",
"max_priority_fee_per_gas": "40000000000",
"method": null,
"method_hash": "0xa1f21dc1"
},
{
"chain_name": "linea",
"chain_id": 59144,
"user_operation_hash": "0x6066d85e4113e1e87058f0246d28810a73999dec6583a6c12368a8ad8b0aeda0",
"transaction_hash": "0x3c0d818d6b675c20495c3207f61a437a3d37d014975897e9292bb30b78bcedcc",
"block_number": 1091719,
"block_timestamp": 1701858541,
"transaction_index": 2,
"log_index": 13,
"sender": "0xaf400242a3878f6cc33e229a91de30f2d9487b63",
"target": "0x0000000000000000000000000000000000000000",
"paymaster": "0x0000000000000000000000000000000000000000",
"bundler": "0x4337016838785634c63fce393bfc6222564436c4",
"entry_point": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
"user_operation_fee": "1649471363706870",
"actual_gas_cost": "1649471363706870",
"actual_gas_used": "434610",
"call_gas_limit": "500000",
"verification_gas_limit": "436960",
"pre_verification_gas": "44356",
"max_fee_per_gas": "4174819954",
"max_priority_fee_per_gas": "3795290860",
"method": null,
"method_hash": "0x"
}
]
}