---
title: /sendBitcoinTransaction
slug: sendbitcointransaction
createdAt: 2024-01-09T12:30:00.561Z
---

{
  "id": "OGzCNu2aaNRlWbg9d-yOF",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/sendBitcoinTransaction",
    "servers": [
      {
        "url": "http://1.1.1.1/sendBitcoinTransaction"
      }
    ],
    "name": "",
    "description": "<ul>\n<li>NOTE - this function can not be called from Swagger, please use sendBitcoinTransactionForSwagger instead.</li>\n</ul>\n<ul>\n<li>return - returns on success transactions array</li>\n</ul>\n<p>[{'AmountToTransfer': '600','DestinationAddress': '3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3'}]}</p>\n<p>********** NOTE: success or failure in this api call does not necessarily means success or failure in the transaction itself</p>\n<p>********** for example, the transaction may work by the response to the client can be lost in communication (if the internet is down for the client)</p>\n<p>********** another example is that the transaction was approved here but failed in the signing process</p>\n<p>To know the status of the transaction you can access the function getTransactionByToken.</p>\n<p>To get the token to send those functions you should call getCurrentToken one action BEFORE sendTransaction</p>\n<p>myTokenToStoreInTheDb = user.getCurrentToken()</p>\n<p>sendBitcoinTransaction(...)</p>\n<p>....</p>\n<p>user.getTransactionByToken(myTokenToStoreInTheDb,'BTC')</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "account_id",
          "type": "integer",
          "example": 1,
          "description": "The account ID we want to use in this operation",
          "default": 1
        },
        {
          "kind": "required",
          "name": "outputs",
          "type": "array",
          "example": "[\"3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\",\"6000\"]",
          "description": "List in all coins: [(destination_address:str,amount_to_transfer:int)]\n",
          "default": [
            "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3",
            "6000"
          ],
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        },
        {
          "kind": "required",
          "name": "fee",
          "type": "integer",
          "example": 20,
          "description": "the fee in satoshi per vByte",
          "default": 20
        },
        {
          "kind": "optional",
          "name": "description",
          "type": "string",
          "example": "Test",
          "description": "<p>free text for describing the transaction (will not be sent to the blockchain)</p>",
          "default": "Test"
        },
        {
          "kind": "optional",
          "name": "specificFromAddress",
          "type": "string",
          "example": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3",
          "description": "<p>Deposit address to send from - can be used if the account is defined as an Endpoint account</p>",
          "default": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "customType": "sendBitcoinTransactionResponse",
          "schema": [
            {
              "name": "FunctionData",
              "kind": "optional",
              "type": "object",
              "description": "Contains data required for a function.",
              "example": "",
              "schema": [
                {
                  "name": "ApprovalRequestStatus",
                  "kind": "optional",
                  "type": "integer",
                  "description": "The status of an approval request for the transaction.",
                  "example": 3,
                  "default": 3
                },
                {
                  "name": "CoinType",
                  "kind": "optional",
                  "type": "string",
                  "description": "The type of cryptocurrency being transferred.",
                  "example": "BTC",
                  "default": "BTC"
                },
                {
                  "name": "Transactions",
                  "kind": "optional",
                  "type": "array",
                  "description": "An array of transactions to be processed.",
                  "example": "",
                  "itemType": "object",
                  "customType": "object[]",
                  "schema": [
                    {
                      "name": "AmountToTransfer",
                      "kind": "optional",
                      "type": "string",
                      "description": "The amount of cryptocurrency to transfer in the smallest unit (e.g. satoshis for BTC).",
                      "example": "10000000",
                      "default": "10000000"
                    },
                    {
                      "name": "DestinationAddress",
                      "kind": "optional",
                      "type": "string",
                      "description": "The destination address for the transfer.",
                      "example": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3",
                      "default": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3"
                    }
                  ]
                }
              ]
            },
            {
              "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/sendBitcoinTransactionResponse",
          "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": "ApprovalRequestStatus",
                    "kind": "optional",
                    "type": "integer",
                    "description": "The status of the approval requests for this transaction",
                    "example": 0,
                    "default": 0
                  },
                  {
                    "name": "Transactions",
                    "kind": "optional",
                    "type": "array",
                    "description": "Array with every different txid for this transaction",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "AmountToTransfer",
                        "kind": "optional",
                        "type": "string",
                        "description": "Amount to be transferred in the crypto's smallest units (satoshi, wei, drops,...)",
                        "example": "6000",
                        "default": "6000"
                      },
                      {
                        "name": "DestinationAddress",
                        "kind": "optional",
                        "type": "string",
                        "description": "The address the amount is sent to",
                        "example": "0x2182Fe2b3Ca1DFD39CB9A4C8218aE3ea79748A4F",
                        "default": "0x2182Fe2b3Ca1DFD39CB9A4C8218aE3ea79748A4F"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "Meta",
                "kind": "optional",
                "type": "object",
                "modelRef": "#/components/schemas/sendBitcoinTransactionResponse",
                "customType": "sendBitcoinTransactionResponse",
                "schema": [
                  {
                    "name": "FunctionData",
                    "kind": "optional",
                    "type": "object",
                    "description": "Contains data required for a function.",
                    "example": "",
                    "schema": [
                      {
                        "name": "ApprovalRequestStatus",
                        "kind": "optional",
                        "type": "integer",
                        "description": "The status of an approval request for the transaction.",
                        "example": 3,
                        "default": 3
                      },
                      {
                        "name": "CoinType",
                        "kind": "optional",
                        "type": "string",
                        "description": "The type of cryptocurrency being transferred.",
                        "example": "BTC",
                        "default": "BTC"
                      },
                      {
                        "name": "Transactions",
                        "kind": "optional",
                        "type": "array",
                        "description": "An array of transactions to be processed.",
                        "example": "",
                        "itemType": "object",
                        "customType": "object[]",
                        "schema": [
                          {
                            "name": "AmountToTransfer",
                            "kind": "optional",
                            "type": "string",
                            "description": "The amount of cryptocurrency to transfer in the smallest unit (e.g. satoshis for BTC).",
                            "example": "10000000",
                            "default": "10000000"
                          },
                          {
                            "name": "DestinationAddress",
                            "kind": "optional",
                            "type": "string",
                            "description": "The destination address for the transfer.",
                            "example": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3",
                            "default": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "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/sendBitcoinTransaction?account_id=1&outputs=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3%2C6000&fee=20&description=Test&specificFromAddress=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"FunctionData\": {\n     \"ApprovalRequestStatus\": 3,\n     \"CoinType\": \"BTC\",\n     \"Transactions\": [\n     {\n     \"AmountToTransfer\": \"10000000\",\n     \"DestinationAddress\": \"3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\"\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     }'"
        },
        {
          "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   \"FunctionData\": {\n      \"ApprovalRequestStatus\": 3,\n      \"CoinType\": \"BTC\",\n      \"Transactions\": [\n         {\n            \"AmountToTransfer\": \"10000000\",\n            \"DestinationAddress\": \"3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\"\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});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"http://1.1.1.1/sendBitcoinTransaction?account_id=1&outputs=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3,6000&fee=20&description=Test&specificFromAddress=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\", 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/sendBitcoinTransaction?account_id=1&outputs=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3,6000&fee=20&description=Test&specificFromAddress=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\")\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   \"FunctionData\": {\n      \"ApprovalRequestStatus\": 3,\n      \"CoinType\": \"BTC\",\n      \"Transactions\": [\n         {\n            \"AmountToTransfer\": \"10000000\",\n            \"DestinationAddress\": \"3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\"\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})\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/sendBitcoinTransaction?account_id=1&outputs=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3,6000&fee=20&description=Test&specificFromAddress=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\"\n\npayload = json.dumps({\n   \"FunctionData\": {\n      \"ApprovalRequestStatus\": 3,\n      \"CoinType\": \"BTC\",\n      \"Transactions\": [\n         {\n            \"AmountToTransfer\": \"10000000\",\n            \"DestinationAddress\": \"3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\"\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})\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    \"ApprovalRequestStatus\": 0,\n    \"Transactions\": [\n      {\n        \"AmountToTransfer\": \"6000\",\n        \"DestinationAddress\": \"0x2182Fe2b3Ca1DFD39CB9A4C8218aE3ea79748A4F\"\n      }\n    ]\n  },\n  \"Meta\": {\n    \"FunctionData\": {\n      \"ApprovalRequestStatus\": 3,\n      \"CoinType\": \"BTC\",\n      \"Transactions\": [\n        {\n          \"AmountToTransfer\": \"10000000\",\n          \"DestinationAddress\": \"3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3\"\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  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "id": "NtgSvloONYV4y0mMIkCo9",
      "type": "bulleted-list",
      "children": [
        {
          "id": "iVA_Q1_PQ4LURj2c_806M",
          "type": "list-item",
          "children": [
            {
              "id": "c9JZ-uYk-jvZOzMmcLidu",
              "type": "list-item-child",
              "children": [
                {
                  "text": "NOTE - this function can not be called from Swagger, please use sendBitcoinTransactionForSwagger instead.",
                  "id": "AUvSK8p4c9PtUdjJwhACV"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "TAr950V1jPETaCsnbsCCl",
      "type": "bulleted-list",
      "children": [
        {
          "id": "2qd2YoRveVsJ5Gf8B81Ca",
          "type": "list-item",
          "children": [
            {
              "id": "xAk5OT2uyqqj9Y-zIvbM4",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - returns on success transactions array",
                  "id": "NgwYZ54HRPlIKNiJHPBHf"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "GsiSoYTqxDb73FQsi4e6O",
      "type": "paragraph",
      "children": [
        {
          "text": "[{'AmountToTransfer': '600','DestinationAddress': '3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3'}]}",
          "id": "722GRdE4HbV5yNbj1bj-t"
        }
      ]
    },
    {
      "id": "jrQqcnHu5kpjkkgqdNQRK",
      "type": "paragraph",
      "children": [
        {
          "text": "",
          "id": "-qZ7y7jCRK-51BZxZKI03"
        },
        {
          "text": "",
          "bold": true,
          "id": "zUtTr8Avp8qEdcxu00oO-"
        },
        {
          "text": "",
          "id": "6e38eh8mc0kR5pZTAQBpr"
        },
        {
          "text": "",
          "bold": true,
          "id": "kJAva9zBRZKXEuccT0uDa"
        },
        {
          "text": "** NOTE: success or failure in this api call does not necessarily means success or failure in the transaction itself",
          "id": "9-hXkXnqWa9TFP5ivypNa"
        }
      ]
    },
    {
      "id": "OLpoodcqulpjIcckHugmc",
      "type": "paragraph",
      "children": [
        {
          "text": "",
          "id": "80Ovs0dMvtKbAVCp25RMw"
        },
        {
          "text": "",
          "bold": true,
          "id": "2zWQxSEFFo4Fmh_HOe5-e"
        },
        {
          "text": "",
          "id": "O1fDGq63_8FqqXrJZoS3T"
        },
        {
          "text": "",
          "bold": true,
          "id": "JRirx9AEkBysf8o4H1832"
        },
        {
          "text": "** for example, the transaction may work by the response to the client can be lost in communication (if the internet is down for the client)",
          "id": "Ov922tr5M1rcxAOXbncx_"
        }
      ]
    },
    {
      "id": "SLMYEwJwFaJM0twB6QUMl",
      "type": "paragraph",
      "children": [
        {
          "text": "",
          "id": "GEmVnxkJXuXOQy2XHqv88"
        },
        {
          "text": "",
          "bold": true,
          "id": "avd1LpdpQczS8xqbHu0cQ"
        },
        {
          "text": "",
          "id": "283TeZI03Qyiy4CAXR-wT"
        },
        {
          "text": "",
          "bold": true,
          "id": "yX5ytATUHaX5mTsBmMDFc"
        },
        {
          "text": "** another example is that the transaction was approved here but failed in the signing process",
          "id": "Pyk2Dy-dpIAKO3SSUF9JX"
        }
      ]
    },
    {
      "id": "yCpZ27EPnWNB4nqL6wxit",
      "type": "paragraph",
      "children": [
        {
          "text": "To know the status of the transaction you can access the function getTransactionByToken.",
          "id": "R2HoTUO1jARw4reLFyCGP"
        }
      ]
    },
    {
      "id": "KfKzgik1qoU_R48Dw4S_j",
      "type": "paragraph",
      "children": [
        {
          "text": "To get the token to send those functions you should call getCurrentToken one action BEFORE sendTransaction",
          "id": "76z__Di1jWVJgpe8_ftUW"
        }
      ]
    },
    {
      "id": "hwvtXPAJx0yZ5Mv3Ij85i",
      "type": "paragraph",
      "children": [
        {
          "text": "myTokenToStoreInTheDb = user.getCurrentToken()",
          "id": "8-4X6ihQWZSz382Cngd3R"
        }
      ]
    },
    {
      "id": "f3PtXOvq3uhSiZTledfJ7",
      "type": "paragraph",
      "children": [
        {
          "text": "sendBitcoinTransaction(...)",
          "id": "5IwJDY0tItrZ0n3Pkschc"
        }
      ]
    },
    {
      "id": "FhsNDJRX59HakSUGc-ZQX",
      "type": "paragraph",
      "children": [
        {
          "text": "....",
          "id": "tIK2-uipEQJmi0Vcs08BQ"
        }
      ]
    },
    {
      "id": "aui8q29rRy77db0vGxLnV",
      "type": "paragraph",
      "children": [
        {
          "text": "user.getTransactionByToken(myTokenToStoreInTheDb,'BTC')",
          "id": "yknIFrGdsE1EulfKFcyF1"
        }
      ]
    }
  ]
}