---
title: /getCollectorTransactions
slug: getcollectortransactions
createdAt: 2024-01-09T12:30:00.567Z
---

{
  "id": "p041kjOmILHSozd8cleg1",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/getCollectorTransactions",
    "servers": [
      {
        "url": "http://1.1.1.1/getCollectorTransactions"
      }
    ],
    "name": "",
    "description": "<p>Calling this request can be used for retrieve collector's transactions</p>\n<ul>\n<li>\n<p>return - json with results and status code</p>\n</li>\n<li>\n<p>Possible status codes:</p>\n</li>\n</ul>\n<p>OK = 0,</p>\n<p>ACCOUNT_EXISTS = 1,</p>\n<p>IS_ALREADY_RUNNING = 2,</p>\n<p>NOT_EXISTS = 3,</p>\n<p>PERMISSION_DENIED = 4,</p>\n<p>BAD_REQUEST = 400,</p>\n<p>TECHNICAL_ERROR = 500</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "run_id",
          "type": "string",
          "example": "45342d2d-d603-4426-ad25-065bad7eba34",
          "description": "<p>run_id of collector (get by calling 'getCollector' API)</p>",
          "default": "45342d2d-d603-4426-ad25-065bad7eba34"
        },
        {
          "kind": "required",
          "name": "collector_id",
          "type": "string",
          "example": "1",
          "description": "<p>collector id (can get from calling getCollectors)</p>",
          "default": "1"
        },
        {
          "kind": "required",
          "name": "offset",
          "type": "integer",
          "example": 0,
          "description": "offset from start",
          "default": 0
        },
        {
          "kind": "required",
          "name": "limit",
          "type": "integer",
          "example": 100,
          "description": "maximum results",
          "default": 100
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Request data for Collector operations.",
          "customType": "getCollectorTransactionsRequest",
          "schema": [
            {
              "name": "CollectorId",
              "kind": "optional",
              "type": "string",
              "description": "The ID of the collector.",
              "example": "1",
              "default": "1"
            },
            {
              "name": "Limit",
              "kind": "optional",
              "type": "integer",
              "description": "The maximum number of items to retrieve.",
              "example": 100,
              "default": 100
            },
            {
              "name": "Offset",
              "kind": "optional",
              "type": "integer",
              "description": "The starting index for retrieving items.",
              "example": 0,
              "default": 0
            },
            {
              "name": "RunId",
              "kind": "optional",
              "type": "string",
              "description": "The ID of the run associated with the collector.",
              "example": "45342d2d-d603-4426-ad25-065bad7eba34",
              "default": "45342d2d-d603-4426-ad25-065bad7eba34"
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokengetCollectorTransactions",
              "customType": "MetaTokengetCollectorTransactions",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "getCollectorTransactions",
                  "default": "getCollectorTransactions"
                },
                {
                  "name": "RandomData",
                  "kind": "optional",
                  "type": "string",
                  "description": "Random Data",
                  "example": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229",
                  "default": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229"
                },
                {
                  "name": "Destination",
                  "kind": "optional",
                  "type": "string",
                  "description": "Id of the server",
                  "example": "",
                  "default": "b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea"
                },
                {
                  "name": "Time",
                  "kind": "optional",
                  "type": "string",
                  "description": "UTC Time of execution",
                  "example": "2021-02-07T18:37:46.948Z",
                  "default": "2021-02-07T18:37:46.948Z"
                },
                {
                  "name": "Source",
                  "kind": "optional",
                  "type": "string",
                  "description": "User public key",
                  "example": "",
                  "default": "048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99"
                },
                {
                  "name": "AccessToken",
                  "kind": "optional",
                  "type": "string",
                  "description": "Token used for authentication purposes",
                  "example": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087",
                  "default": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087"
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/getCollectorTransactionsRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "getCollectorTransactionsResponse",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "Log",
                    "kind": "optional",
                    "type": "array",
                    "description": "List of transaction objects",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "AccountId",
                        "kind": "optional",
                        "type": "integer",
                        "description": "ID of the account associated with the transaction",
                        "example": 0
                      },
                      {
                        "name": "Amount",
                        "kind": "optional",
                        "type": "string",
                        "description": "Amount of cryptocurrency transferred in the transaction",
                        "example": "10100000000000000",
                        "default": "10100000000000000"
                      },
                      {
                        "name": "Currency",
                        "kind": "optional",
                        "type": "string",
                        "description": "Cryptocurrency currency symbol",
                        "example": "ETH",
                        "default": "ETH"
                      },
                      {
                        "name": "FeeActuallyPaid",
                        "kind": "optional",
                        "type": "string",
                        "description": "Actual fee paid for the transaction",
                        "example": "3564339303861000",
                        "default": "3564339303861000"
                      },
                      {
                        "name": "From",
                        "kind": "optional",
                        "type": "string",
                        "description": "Address of the account sending the transaction",
                        "example": "0xa0991943F6608c3C73CF7432f74e3AbfF9133774",
                        "default": "0xa0991943F6608c3C73CF7432f74e3AbfF9133774"
                      },
                      {
                        "name": "Id",
                        "kind": "optional",
                        "type": "string",
                        "description": "Unique ID for the transaction",
                        "example": "da305093-f9d7-4794-93f3-c755b1d5a967",
                        "default": "da305093-f9d7-4794-93f3-c755b1d5a967"
                      },
                      {
                        "name": "RequestId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Unique ID for the request",
                        "example": "1b0c1a70-c3c9-4906-bc5e-5ff364d59644",
                        "default": "1b0c1a70-c3c9-4906-bc5e-5ff364d59644"
                      },
                      {
                        "name": "RunId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Unique ID for the run",
                        "example": "45342d2d-d603-4426-ad25-065bad7eba34",
                        "default": "45342d2d-d603-4426-ad25-065bad7eba34"
                      },
                      {
                        "name": "To",
                        "kind": "optional",
                        "type": "string",
                        "description": "Address of the account receiving the transaction",
                        "example": "0x862842A56B5D5F30B7d519cCe683983F57499cE6",
                        "default": "0x862842A56B5D5F30B7d519cCe683983F57499cE6"
                      },
                      {
                        "name": "TxId",
                        "kind": "optional",
                        "type": "string",
                        "description": "ID of the transaction on the blockchain",
                        "example": "c1b0a0fd04cd79b841d42bf9d08ed5ce7722f8ce59979a8373b1d26bc3b4645b",
                        "default": "c1b0a0fd04cd79b841d42bf9d08ed5ce7722f8ce59979a8373b1d26bc3b4645b"
                      },
                      {
                        "name": "TxState",
                        "kind": "optional",
                        "type": "integer",
                        "description": "State of the transaction on the blockchain",
                        "example": 13,
                        "default": 13
                      }
                    ]
                  },
                  {
                    "name": "StatusCode",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Status code of the response",
                    "example": 0,
                    "default": 0
                  },
                  {
                    "name": "Total",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Total number of transactions in the response",
                    "example": 1,
                    "default": 1
                  }
                ]
              },
              {
                "name": "Meta",
                "kind": "optional",
                "type": "object",
                "modelRef": "#/components/schemas/MetaResponse",
                "customType": "MetaResponse",
                "schema": [
                  {
                    "name": "AccessToken",
                    "kind": "optional",
                    "type": "string",
                    "description": "The new access token generated after this operation",
                    "example": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6",
                    "default": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6"
                  },
                  {
                    "name": "Destination",
                    "kind": "optional",
                    "type": "string",
                    "description": "Id of the server",
                    "example": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622",
                    "default": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622"
                  },
                  {
                    "name": "Source",
                    "kind": "optional",
                    "type": "string",
                    "description": "User public key",
                    "example": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355",
                    "default": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355"
                  },
                  {
                    "name": "Time",
                    "kind": "optional",
                    "type": "string",
                    "description": "UTC Time of execution",
                    "example": "2021-02-14 09:58:52.320",
                    "default": "2021-02-14 09:58:52.320"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/getCollectorTransactionsResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/getCollectorTransactions?run_id=45342d2d-d603-4426-ad25-065bad7eba34&collector_id=1&offset=integer&limit=100' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"CollectorId\": \"1\",\n     \"Limit\": 100,\n     \"RunId\": \"45342d2d-d603-4426-ad25-065bad7eba34\",\n     \"Meta\": {\n     \"FunctionName\": \"getCollectorTransactions\",\n     \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n     \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n     \"Time\": \"2021-02-07T18:37:46.948Z\",\n     \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n     \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n     }\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"CollectorId\": \"1\",\n   \"Limit\": 100,\n   \"RunId\": \"45342d2d-d603-4426-ad25-065bad7eba34\",\n   \"Meta\": {\n      \"FunctionName\": \"getCollectorTransactions\",\n      \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n      \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n      \"Time\": \"2021-02-07T18:37:46.948Z\",\n      \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n      \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"http://1.1.1.1/getCollectorTransactions?run_id=45342d2d-d603-4426-ad25-065bad7eba34&collector_id=1&offset=integer&limit=100\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://1.1.1.1/getCollectorTransactions?run_id=45342d2d-d603-4426-ad25-065bad7eba34&collector_id=1&offset=integer&limit=100\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"CollectorId\": \"1\",\n   \"Limit\": 100,\n   \"RunId\": \"45342d2d-d603-4426-ad25-065bad7eba34\",\n   \"Meta\": {\n      \"FunctionName\": \"getCollectorTransactions\",\n      \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n      \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n      \"Time\": \"2021-02-07T18:37:46.948Z\",\n      \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n      \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n   }\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://1.1.1.1/getCollectorTransactions?run_id=45342d2d-d603-4426-ad25-065bad7eba34&collector_id=1&offset=integer&limit=100\"\n\npayload = json.dumps({\n   \"CollectorId\": \"1\",\n   \"Limit\": 100,\n   \"RunId\": \"45342d2d-d603-4426-ad25-065bad7eba34\",\n   \"Meta\": {\n      \"FunctionName\": \"getCollectorTransactions\",\n      \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n      \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n      \"Time\": \"2021-02-07T18:37:46.948Z\",\n      \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n      \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n   }\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// success\n{\n  \"FunctionData\": {\n    \"Log\": [\n      {\n        \"AccountId\": 0,\n        \"Amount\": \"10100000000000000\",\n        \"Currency\": \"ETH\",\n        \"FeeActuallyPaid\": \"3564339303861000\",\n        \"From\": \"0xa0991943F6608c3C73CF7432f74e3AbfF9133774\",\n        \"Id\": \"da305093-f9d7-4794-93f3-c755b1d5a967\",\n        \"RequestId\": \"1b0c1a70-c3c9-4906-bc5e-5ff364d59644\",\n        \"RunId\": \"45342d2d-d603-4426-ad25-065bad7eba34\",\n        \"To\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n        \"TxId\": \"c1b0a0fd04cd79b841d42bf9d08ed5ce7722f8ce59979a8373b1d26bc3b4645b\",\n        \"TxState\": 13\n      }\n    ],\n    \"StatusCode\": 0,\n    \"Total\": 1\n  },\n  \"Meta\": {\n    \"AccessToken\": \"a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6\",\n    \"Destination\": \"042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622\",\n    \"Source\": \"df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355\",\n    \"Time\": \"2021-02-14 09:58:52.320\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "id": "17y3lpkG218T0Xraq7Oj6",
      "type": "paragraph",
      "children": [
        {
          "text": "Calling this request can be used for retrieve collector's transactions",
          "id": "_5a1lHmZDmGiNRNPAZZdB"
        }
      ]
    },
    {
      "id": "gR587ScMuSZZ4Lq7JBGhP",
      "type": "bulleted-list",
      "children": [
        {
          "id": "3YBW4fcFLLvP8wdVfP6wF",
          "type": "list-item",
          "children": [
            {
              "id": "kG9BFOpkEB4PM7-Pz3r0I",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - json with results and status code",
                  "id": "HyRgXiS39RZxQQvj5kEFo"
                }
              ]
            }
          ]
        },
        {
          "id": "qtTABy1QBNjVNwMNF7XS2",
          "type": "list-item",
          "children": [
            {
              "id": "8U2YpuHW1Pupv4Pw_iWAZ",
              "type": "list-item-child",
              "children": [
                {
                  "text": "Possible status codes:",
                  "id": "nda2oHcAsATy2QBJqVTc3"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "kiP_0ktb3TQoz8-ZmfPvk",
      "type": "paragraph",
      "children": [
        {
          "text": "OK = 0,",
          "id": "pUzZDEjnE0eeFL2xUrPlS"
        }
      ]
    },
    {
      "id": "373OCMUuSRO77Ux90QCzN",
      "type": "paragraph",
      "children": [
        {
          "text": "ACCOUNT_EXISTS = 1,",
          "id": "9QYrT0DBMRczIBU4xUnTh"
        }
      ]
    },
    {
      "id": "c5sINy_-IMIA9CT5X0DR9",
      "type": "paragraph",
      "children": [
        {
          "text": "IS_ALREADY_RUNNING = 2,",
          "id": "TF6CnNAeMQg99IjifW6LH"
        }
      ]
    },
    {
      "id": "zrMlJRkJtlswKs8W8ythi",
      "type": "paragraph",
      "children": [
        {
          "text": "NOT_EXISTS = 3,",
          "id": "XtitzcwWLQDUQ-9g1HKm9"
        }
      ]
    },
    {
      "id": "XF0NqVlbLfDDjW2jQG_LL",
      "type": "paragraph",
      "children": [
        {
          "text": "PERMISSION_DENIED = 4,",
          "id": "esYocBcjKVq3mT-1O60JY"
        }
      ]
    },
    {
      "id": "iNFMXW1IHzLPLscZ4WAMi",
      "type": "paragraph",
      "children": [
        {
          "text": "BAD_REQUEST = 400,",
          "id": "VofSxbIVHtVTBlZjoPrXE"
        }
      ]
    },
    {
      "id": "OWJgHxZm6NVeFFgKu5j5z",
      "type": "paragraph",
      "children": [
        {
          "text": "TECHNICAL_ERROR = 500",
          "id": "9rgjSzNQa_ENkCMmJkaqf"
        }
      ]
    }
  ]
}