curl --request GET \
--url https://api.circle.com/v1/w3s/buidl/userOps/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"userOperation": {
"id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"blockchain": "MATIC-AMOY",
"state": "COMPLETE",
"userOpHash": "0x54d3cccda6ffa503bc1e554937fe67818b6ca1a5a05c7e66ebfa32bf27520152",
"userOperation": {
"callData": "<string>",
"nonce": "<string>",
"sender": "<string>",
"callGasLimit": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"initCode": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"paymaster": "<string>",
"paymasterAndData": "<string>",
"paymasterData": "<string>",
"paymasterPostOpGasLimit": "<string>",
"paymasterVerificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"signature": "<string>",
"verificationGasLimit": "<string>"
},
"refId": "custom_ref_id",
"actualGasCost": "0.0015584763706281",
"actualGasUsed": "182385",
"blockDate": "2023-01-01T12:04:05Z",
"blockHash": "0x2eb19fd02850ff963efefbaa71dbcd4acb41a9c261c4f8961979db1b56d48704",
"blockHeight": 123456,
"errorReason": "FAILED_REPLACED",
"revertReason": "<string>",
"to": "0x4b6c0b0078b63f881503e7fd3a9a1061065db242",
"txHash": "0x4a25cc5e661d8504b59c5f38ba93f010e8518966f00e2ceda7955c4b8621357d",
"createDate": "2023-01-01T12:04:05Z",
"updateDate": "2023-01-01T12:04:05Z"
}
}
}Retrieve an existing user operation.
curl --request GET \
--url https://api.circle.com/v1/w3s/buidl/userOps/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"userOperation": {
"id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
"blockchain": "MATIC-AMOY",
"state": "COMPLETE",
"userOpHash": "0x54d3cccda6ffa503bc1e554937fe67818b6ca1a5a05c7e66ebfa32bf27520152",
"userOperation": {
"callData": "<string>",
"nonce": "<string>",
"sender": "<string>",
"callGasLimit": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"initCode": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"paymaster": "<string>",
"paymasterAndData": "<string>",
"paymasterData": "<string>",
"paymasterPostOpGasLimit": "<string>",
"paymasterVerificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"signature": "<string>",
"verificationGasLimit": "<string>"
},
"refId": "custom_ref_id",
"actualGasCost": "0.0015584763706281",
"actualGasUsed": "182385",
"blockDate": "2023-01-01T12:04:05Z",
"blockHash": "0x2eb19fd02850ff963efefbaa71dbcd4acb41a9c261c4f8961979db1b56d48704",
"blockHeight": 123456,
"errorReason": "FAILED_REPLACED",
"revertReason": "<string>",
"to": "0x4b6c0b0078b63f881503e7fd3a9a1061065db242",
"txHash": "0x4a25cc5e661d8504b59c5f38ba93f010e8518966f00e2ceda7955c4b8621357d",
"createDate": "2023-01-01T12:04:05Z",
"updateDate": "2023-01-01T12:04:05Z"
}
}
}Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.
Developer-provided parameter used to identify this request. Useful when communicating with Circle Support. A unique identifier, which can be helpful for identifying a request when communicating with Circle support.
"2adba88e-9d63-44bc-b975-9b6ae3440dde"
The universally unique identifier of the resource.
"b3d9d2d5-4c12-4946-a09d-953e82fae2b0"
User operation retrieved successfully.
Show child attributes
Show child attributes
System-generated unique identifier of the resource.
"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
Blockchain network of resource.
ETH, ETH-SEPOLIA, MATIC, MATIC-AMOY, ARB, ARB-SEPOLIA, UNI, UNI-SEPOLIA, BASE, BASE-SEPOLIA, OP, OP-SEPOLIA "MATIC-AMOY"
State of user operation.
SENT, CONFIRMED, COMPLETE, FAILED "COMPLETE"
Generated identifier of user operation.
"0x54d3cccda6ffa503bc1e554937fe67818b6ca1a5a05c7e66ebfa32bf27520152"
Show child attributes
Reference or description used to identify the object.
"custom_ref_id"
Actual gas cost of user operation.
"0.0015584763706281"
Actual gas used of user operation.
"182385"
Date and time of block, in ISO-8601 UTC format.
"2023-01-01T12:04:05Z"
Blockchain generated identifier of block.
"0x2eb19fd02850ff963efefbaa71dbcd4acb41a9c261c4f8961979db1b56d48704"
Blockchain height of block.
123456
Error reason of failed user operation.
FAILED_ON_CHAIN, FAILED_REPLACED "FAILED_REPLACED"
On-chain failed revert reason of user operation.
Address of user operation executed with.
"0x4b6c0b0078b63f881503e7fd3a9a1061065db242"
Blockchain generated identifier of transaction.
"0x4a25cc5e661d8504b59c5f38ba93f010e8518966f00e2ceda7955c4b8621357d"
Date and time the resource was created, in ISO-8601 UTC format.
"2023-01-01T12:04:05Z"
Date and time the resource was last updated, in ISO-8601 UTC format.
"2023-01-01T12:04:05Z"
Was this page helpful?