---
title: /getTransactionByToken
slug: gettransactionbytoken
createdAt: 2024-01-09T12:30:00.561Z
---

{
  "id": "iRPZs9MLNN_rggP6id58c",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/getTransactionByToken",
    "servers": [
      {
        "url": "http://1.1.1.1/getTransactionByToken"
      }
    ],
    "name": "",
    "description": "<ul>\n<li>return - data same as get transaction page but for a specific transaction (check getTransactionPage for more info)</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "transactionToken",
          "type": "string",
          "example": "85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0",
          "description": "on transaction creation a token is being provided.",
          "default": "85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0"
        },
        {
          "kind": "required",
          "name": "coin_type",
          "type": "string",
          "example": "BTC",
          "description": "coin type of the transaction",
          "default": "BTC"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Request data for a transaction token operation.",
          "customType": "getTransactionByTokenRequest",
          "schema": [
            {
              "name": "CoinType",
              "kind": "optional",
              "type": "string",
              "description": "The type of cryptocurrency (e.g., BTC).",
              "example": "BTC",
              "default": "BTC"
            },
            {
              "name": "RemoveDuplicates",
              "kind": "optional",
              "type": "boolean",
              "description": "A boolean flag to specify whether to remove duplicates (true or false).",
              "example": "false",
              "default": "false"
            },
            {
              "name": "TransactionToken",
              "kind": "optional",
              "type": "string",
              "description": "The transaction token to use for the operation.",
              "example": "85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0",
              "default": "85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0"
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokengetTransactionByToken",
              "customType": "MetaTokengetTransactionByToken",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "getTransactionByToken",
                  "default": "getTransactionByToken"
                },
                {
                  "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/getTransactionByTokenRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "Transactions",
                    "kind": "optional",
                    "type": "array",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "AccountId",
                        "kind": "optional",
                        "type": "string",
                        "description": "Id of the account used in this transaction",
                        "example": "1",
                        "default": "1"
                      },
                      {
                        "name": "Account",
                        "kind": "optional",
                        "type": "string",
                        "description": "The Name of the account",
                        "example": "Main account",
                        "default": "Main account"
                      },
                      {
                        "name": "Currency",
                        "kind": "optional",
                        "type": "string",
                        "description": "The currency used in this transaction",
                        "example": "BTC",
                        "default": "BTC"
                      },
                      {
                        "name": "Amount",
                        "kind": "optional",
                        "type": "string",
                        "description": "The amount in crypto sent in this transaction",
                        "example": "10000",
                        "default": "10000"
                      },
                      {
                        "name": "Confirmations",
                        "kind": "optional",
                        "type": "string",
                        "description": "The number of confirmations for this transaction",
                        "example": "0",
                        "default": "0"
                      },
                      {
                        "name": "Date",
                        "kind": "optional",
                        "type": "string",
                        "description": "The full timestamp of the transaction",
                        "example": "2022-02-03 07:57:08.513",
                        "default": "2022-02-03 07:57:08.513"
                      },
                      {
                        "name": "From",
                        "kind": "optional",
                        "type": "string",
                        "description": "The address of the transaction sender",
                        "example": "3Q9oEdmKU5w2p35gPrkBTkb2a9z44gLTAS",
                        "default": "3Q9oEdmKU5w2p35gPrkBTkb2a9z44gLTAS"
                      },
                      {
                        "name": "In/Out",
                        "kind": "optional",
                        "type": "string",
                        "description": "Is the transaction incoming or outgoing?",
                        "example": "Out",
                        "default": "Out"
                      },
                      {
                        "name": "Number",
                        "kind": "optional",
                        "type": "string",
                        "description": "The number of the transaction",
                        "example": "0",
                        "default": "0"
                      },
                      {
                        "name": "Status",
                        "kind": "optional",
                        "type": "string",
                        "description": "The status of the transaction",
                        "example": "Sent",
                        "default": "Sent"
                      },
                      {
                        "name": "StatusId",
                        "kind": "optional",
                        "type": "integer",
                        "description": "The status ID of the transaction",
                        "example": "2",
                        "default": "2"
                      },
                      {
                        "name": "To",
                        "kind": "optional",
                        "type": "string",
                        "description": "The address of the transaction reciever",
                        "example": "36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm",
                        "default": "36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm"
                      },
                      {
                        "name": "TxId",
                        "kind": "optional",
                        "type": "string",
                        "description": "The TXID of the transaction",
                        "example": "da9418ecc7f8a085d73ddde5bada5f392919a25dd22e908225f25ec6e32c7131",
                        "default": "da9418ecc7f8a085d73ddde5bada5f392919a25dd22e908225f25ec6e32c7131"
                      },
                      {
                        "name": "User Description",
                        "kind": "optional",
                        "type": "string",
                        "description": "The description of the user",
                        "example": "Trader",
                        "default": "Trader"
                      },
                      {
                        "name": "ExtraData",
                        "kind": "optional",
                        "type": "array",
                        "description": "Array with more data for this transaction. Please contact GK8 support to get an example of the full data",
                        "example": "",
                        "itemType": "object",
                        "customType": "object[]",
                        "schema": [
                          {
                            "name": "ExtraDataForKey",
                            "kind": "optional",
                            "type": "array",
                            "description": "Extra data for this currency key",
                            "example": "",
                            "itemType": "string",
                            "customType": "string[]",
                            "itemExample": "",
                            "itemDefault": ""
                          },
                          {
                            "name": "Key",
                            "kind": "optional",
                            "type": "string",
                            "description": "Id of the currency in our system",
                            "example": "0",
                            "default": "0"
                          },
                          {
                            "name": "Value",
                            "kind": "optional",
                            "type": "string",
                            "description": "In or Out transaction",
                            "example": "Out",
                            "default": "Out"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "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"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/getTransactionByToken?transactionToken=85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0&coin_type=BTC' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"CoinType\": \"BTC\",\n     \"RemoveDuplicates\": \"false\",\n     \"TransactionToken\": \"85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0\",\n     \"Meta\": {\n     \"FunctionName\": \"getTransactionByToken\",\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   \"CoinType\": \"BTC\",\n   \"RemoveDuplicates\": \"false\",\n   \"TransactionToken\": \"85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0\",\n   \"Meta\": {\n      \"FunctionName\": \"getTransactionByToken\",\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/getTransactionByToken?transactionToken=85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0&coin_type=BTC\", 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/getTransactionByToken?transactionToken=85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0&coin_type=BTC\")\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   \"CoinType\": \"BTC\",\n   \"RemoveDuplicates\": \"false\",\n   \"TransactionToken\": \"85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0\",\n   \"Meta\": {\n      \"FunctionName\": \"getTransactionByToken\",\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/getTransactionByToken?transactionToken=85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0&coin_type=BTC\"\n\npayload = json.dumps({\n   \"CoinType\": \"BTC\",\n   \"RemoveDuplicates\": \"false\",\n   \"TransactionToken\": \"85ff3024c19f2a61d6b6eb27f5b30ef38406210d9b1a7665471eb804fa0587c0\",\n   \"Meta\": {\n      \"FunctionName\": \"getTransactionByToken\",\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    \"Transactions\": [\n      {\n        \"AccountId\": \"1\",\n        \"Account\": \"Main account\",\n        \"Currency\": \"BTC\",\n        \"Amount\": \"10000\",\n        \"Confirmations\": \"0\",\n        \"Date\": \"2022-02-03 07:57:08.513\",\n        \"From\": \"3Q9oEdmKU5w2p35gPrkBTkb2a9z44gLTAS\",\n        \"In/Out\": \"Out\",\n        \"Number\": \"0\",\n        \"Status\": \"Sent\",\n        \"StatusId\": \"2\",\n        \"To\": \"36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm\",\n        \"TxId\": \"da9418ecc7f8a085d73ddde5bada5f392919a25dd22e908225f25ec6e32c7131\",\n        \"User Description\": \"Trader\",\n        \"ExtraData\": [\n          {\n            \"ExtraDataForKey\": [\n              \"\"\n            ],\n            \"Key\": \"0\",\n            \"Value\": \"Out\"\n          }\n        ]\n      }\n    ]\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": "KAYiKtD4szYi7_xT6qwUk",
      "type": "bulleted-list",
      "children": [
        {
          "id": "kDMGJ4If5K1ZzH-a_DDhn",
          "type": "list-item",
          "children": [
            {
              "id": "mXbD5rKiLxjnkGtrL0q52",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - data same as get transaction page but for a specific transaction (check getTransactionPage for more info)",
                  "id": "qpsVISmPpeB1eAc6knC-s"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}