---
title: /sendTransactionToTezosContractWithContractInfo
slug: sendtransactiontotezoscontractwithcontractinfo
createdAt: 2024-01-09T12:30:00.561Z
---

{
  "id": "VHsImAWs2PuXjNyBoqaPs",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/sendTransactionToTezosContractWithContractInfo",
    "servers": [
      {
        "url": "http://1.1.1.1/sendTransactionToTezosContractWithContractInfo"
      }
    ],
    "name": "",
    "description": "<ul>\n<li>This function is used to send a transaction to a Tezos smart contract, it also supports additional options like specifying a storage limit, validating the transaction, and providing a description.</li>\n</ul>\n<p><a href=\"https://opentezos.com/michelson/smart-contracts\" target=\"_blank\">https://opentezos.com/michelson/smart-contracts</a></p>\n<p>*sendTransactionToTezosContractWithContractInfo</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.\nTo 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:\nmyTokenToStoreInTheDb = user.getCurrentToken()\nsendTransactionToTezosContractWithContractInfo(...)\n.....\nuser.getTransactionByToken(myTokenToStoreInTheDb,\"XTZ\")\n\"\"\"</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "account_id",
          "type": "integer",
          "example": 1,
          "description": "the account to send from",
          "default": 1
        },
        {
          "kind": "required",
          "name": "tezos_contract_address",
          "type": "string",
          "example": "KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx",
          "description": "the address of the contract to send to",
          "default": "KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx"
        },
        {
          "kind": "required",
          "name": "amount",
          "type": "string",
          "example": "6000",
          "description": "the amount to send with this transaction",
          "default": "6000"
        },
        {
          "kind": "required",
          "name": "fee",
          "type": "string",
          "example": "1",
          "description": "the fee we want to transfer with",
          "default": "1"
        },
        {
          "kind": "required",
          "name": "gas_limit",
          "type": "integer",
          "example": 2500,
          "description": "<p>gas limit we want to transfer, in gas units</p>",
          "default": 2500
        },
        {
          "kind": "required",
          "name": "entrypoint_name",
          "type": "string",
          "example": "simple_int",
          "description": "<p>representing the function name to call, e.g. \"foo\" (with no params)</p>",
          "default": "simple_int"
        },
        {
          "kind": "required",
          "name": "parameters_json",
          "type": "object",
          "example": "",
          "description": "Json representing the parameters names and values to send, must fit to the Json schema of the entrypoint,\n* for example, the following parameters Json:\n* {\n*  \"to\":\"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\",\n*  \"from\":\"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\",\n*  \"value\":\"362741\"\n* }\n* fits to the following Json schema:\n* {\n*  \"from:address\": \"address\",\n*  \"to:address\": \"address\",\n*  \"value:nat\": \"nat\"\n* }\n* You may find the parameters Json schema here: https://tzkt.io/<CONTRACT-ADDRESS>/entrypoints, for example: https://tzkt.io/KT1KVfQzyjxoKx2WjcVAatknW3YsR37cCA6s/entrypoints\n",
          "default": "{\n  \"from\": \"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\",\n  \"to\": \"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\",\n  \"value\": \"362741\"\n}\n",
          "schema": []
        },
        {
          "kind": "optional",
          "name": "storage_limit",
          "type": "integer",
          "example": 257,
          "description": "<p>the maximal amount of data you can store in lazy storage (aka big_map)</p>",
          "default": 257
        },
        {
          "kind": "optional",
          "name": "validate_transaction",
          "type": "boolean",
          "example": "False",
          "description": "<p>if this is true, the MPC wallet will access the node  to check if this transaction is\nlikely to fail by running dry-run, and will block the transaction if it is</p>",
          "default": "False"
        },
        {
          "kind": "optional",
          "name": "description",
          "type": "string",
          "example": "example",
          "description": "free text for the transaction",
          "default": "example"
        },
        {
          "kind": "optional",
          "name": "specific_from_address",
          "type": "string",
          "example": "tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp",
          "description": "Endpoint wallet address",
          "default": "tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Request data for a Tezos (XTZ) transaction.",
          "customType": "sendTransactionToTezosContractWithContractInfoRequest",
          "schema": [
            {
              "name": "AccountId",
              "kind": "optional",
              "type": "integer",
              "description": "The ID of the user's account.",
              "example": 1,
              "default": 1
            },
            {
              "name": "CoinType",
              "kind": "optional",
              "type": "string",
              "description": "The type of cryptocurrency (e.g., XTZ).",
              "example": "XTZ",
              "default": "XTZ"
            },
            {
              "name": "DataForContract",
              "kind": "optional",
              "type": "object",
              "description": "Data related to the smart contract transaction.",
              "example": "",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The name of the contract function (e.g., \"simple_int\").",
                  "example": "simple_int",
                  "default": "simple_int"
                },
                {
                  "name": "Parameters",
                  "kind": "optional",
                  "type": "object",
                  "example": "",
                  "schema": [
                    {
                      "name": "ParametersValuesJson",
                      "kind": "optional",
                      "type": "object",
                      "example": "",
                      "schema": [
                        {
                          "name": "from",
                          "kind": "optional",
                          "type": "string",
                          "description": "The sender's address.",
                          "example": "tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga",
                          "default": "tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga"
                        },
                        {
                          "name": "to",
                          "kind": "optional",
                          "type": "string",
                          "description": "The recipient's address.",
                          "example": "tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET",
                          "default": "tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET"
                        },
                        {
                          "name": "value",
                          "kind": "optional",
                          "type": "string",
                          "description": "The amount to transfer.",
                          "example": "362741",
                          "default": "362741"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "validateTransaction",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "A flag to validate the transaction (true or false).",
                  "example": "true",
                  "default": "true"
                }
              ]
            },
            {
              "name": "Fee",
              "kind": "optional",
              "type": "object",
              "description": "Transaction fee details.",
              "example": "",
              "schema": [
                {
                  "name": "GasLimit",
                  "kind": "optional",
                  "type": "string",
                  "description": "The gas limit for the transaction.",
                  "example": "2500",
                  "default": "2500"
                },
                {
                  "name": "GasPrice",
                  "kind": "optional",
                  "type": "string",
                  "description": "The gas price.",
                  "example": "1",
                  "default": "1"
                },
                {
                  "name": "StorageLimit",
                  "kind": "optional",
                  "type": "integer",
                  "description": "The storage limit for the transaction.",
                  "example": 0,
                  "default": 0
                }
              ]
            },
            {
              "name": "IsMetaMaskTransaction",
              "kind": "optional",
              "type": "boolean",
              "description": "A flag indicating if it's a MetaMask transaction (true or false).",
              "example": "False",
              "default": "False"
            },
            {
              "name": "SpecificFromAddress",
              "kind": "optional",
              "type": "string",
              "description": "The source address for the transaction.",
              "example": "tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp",
              "default": "tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp"
            },
            {
              "name": "Transactions",
              "kind": "optional",
              "type": "array",
              "description": "List of transaction details.",
              "example": "",
              "itemType": "object",
              "customType": "object[]",
              "schema": [
                {
                  "name": "AmountToTransfer",
                  "kind": "optional",
                  "type": "string",
                  "description": "The amount to transfer.",
                  "example": "6000",
                  "default": "6000"
                },
                {
                  "name": "DestinationAddress",
                  "kind": "optional",
                  "type": "string",
                  "description": "The destination Tezos address.",
                  "example": "KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx",
                  "default": "KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx"
                }
              ]
            },
            {
              "name": "UserDescription",
              "kind": "optional",
              "type": "string",
              "description": "A user-provided description for the transaction.",
              "example": "example",
              "default": "example"
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokensendTransactionToTezosContractWithContractInfo",
              "customType": "MetaTokensendTransactionToTezosContractWithContractInfo",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "sendTransactionToTezosContractWithContractInfo",
                  "default": "sendTransactionToTezosContractWithContractInfo"
                },
                {
                  "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/sendTransactionToTezosContractWithContractInfoRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "sendTransactionToTezosContractWithContractInfoResponse",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "ApprovalRequestStatus",
                    "kind": "optional",
                    "type": "integer",
                    "description": "returning integer type by enum options - \n\nPENDING = 0         #pending approval\nBEING_CANCELLED = 1 #canceled request\nEXPIRED = 2         #expired request\nAPPROVED = 3        #enough approvers before expired\nBEING_HANDLED = 4   #currently in handler\nHANDLED = 5        #finished handling<br>\nCHECK_HANDLED = 6  #need to check status - if system shutdown while being handled\n",
                    "example": 4,
                    "default": 4
                  }
                ]
              },
              {
                "name": "CoinType",
                "kind": "optional",
                "type": "string",
                "description": "The coin in string to be used in this operation",
                "example": "XTZ",
                "default": "XTZ"
              },
              {
                "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": "362741",
                    "default": "362741"
                  },
                  {
                    "name": "DestinationAddress",
                    "kind": "optional",
                    "type": "string",
                    "description": "The address the amount is sent to",
                    "example": "tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET",
                    "default": "tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET"
                  }
                ]
              },
              {
                "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/sendTransactionToTezosContractWithContractInfoResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/sendTransactionToTezosContractWithContractInfo?account_id=1&tezos_contract_address=KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx&amount=6000&fee=1&gas_limit=2500&entrypoint_name=simple_int&parameters_json=%22{%5Cn%20%20%5C%22from%5C%22%3A%20%5C%22tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga%5C%22%2C%5Cn%20%20%5C%22to%5C%22%3A%20%5C%22tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET%5C%22%2C%5Cn%20%20%5C%22value%5C%22%3A%20%5C%22362741%5C%22%5Cn}%5Cn%22&storage_limit=257&validate_transaction=False&description=example&specific_from_address=tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"AccountId\": 1,\n     \"CoinType\": \"XTZ\",\n     \"DataForContract\": {\n     \"FunctionName\": \"simple_int\",\n     \"Parameters\": {\n     \"ParametersValuesJson\": {\n     \"from\": \"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\",\n     \"to\": \"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\",\n     \"value\": \"362741\"\n     }\n     },\n     \"validateTransaction\": \"true\"\n     },\n     \"Fee\": {\n     \"GasLimit\": \"2500\",\n     \"GasPrice\": \"1\"\n     },\n     \"IsMetaMaskTransaction\": \"False\",\n     \"SpecificFromAddress\": \"tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\",\n     \"Transactions\": [\n     {\n     \"AmountToTransfer\": \"6000\",\n     \"DestinationAddress\": \"KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx\"\n     }\n     ],\n     \"UserDescription\": \"example\",\n     \"Meta\": {\n     \"FunctionName\": \"sendTransactionToTezosContractWithContractInfo\",\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   \"AccountId\": 1,\n   \"CoinType\": \"XTZ\",\n   \"DataForContract\": {\n      \"FunctionName\": \"simple_int\",\n      \"Parameters\": {\n         \"ParametersValuesJson\": {\n            \"from\": \"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\",\n            \"to\": \"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\",\n            \"value\": \"362741\"\n         }\n      },\n      \"validateTransaction\": \"true\"\n   },\n   \"Fee\": {\n      \"GasLimit\": \"2500\",\n      \"GasPrice\": \"1\"\n   },\n   \"IsMetaMaskTransaction\": \"False\",\n   \"SpecificFromAddress\": \"tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\",\n   \"Transactions\": [\n      {\n         \"AmountToTransfer\": \"6000\",\n         \"DestinationAddress\": \"KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx\"\n      }\n   ],\n   \"UserDescription\": \"example\",\n   \"Meta\": {\n      \"FunctionName\": \"sendTransactionToTezosContractWithContractInfo\",\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/sendTransactionToTezosContractWithContractInfo?account_id=1&tezos_contract_address=KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx&amount=6000&fee=1&gas_limit=2500&entrypoint_name=simple_int&parameters_json=\\\"{\\\\n  \\\\\\\"from\\\\\\\": \\\\\\\"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\\\\\\\",\\\\n  \\\\\\\"to\\\\\\\": \\\\\\\"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\\\\\\\",\\\\n  \\\\\\\"value\\\\\\\": \\\\\\\"362741\\\\\\\"\\\\n}\\\\n\\\"&storage_limit=257&validate_transaction=False&description=example&specific_from_address=tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\", 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/sendTransactionToTezosContractWithContractInfo?account_id=1&tezos_contract_address=KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx&amount=6000&fee=1&gas_limit=2500&entrypoint_name=simple_int&parameters_json=\\\"{\\n  \\\\\"from\\\\\": \\\\\"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\\\\\",\\n  \\\\\"to\\\\\": \\\\\"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\\\\\",\\n  \\\\\"value\\\\\": \\\\\"362741\\\\\"\\n}\\n\\\"&storage_limit=257&validate_transaction=False&description=example&specific_from_address=tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\")\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   \"AccountId\": 1,\n   \"CoinType\": \"XTZ\",\n   \"DataForContract\": {\n      \"FunctionName\": \"simple_int\",\n      \"Parameters\": {\n         \"ParametersValuesJson\": {\n            \"from\": \"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\",\n            \"to\": \"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\",\n            \"value\": \"362741\"\n         }\n      },\n      \"validateTransaction\": \"true\"\n   },\n   \"Fee\": {\n      \"GasLimit\": \"2500\",\n      \"GasPrice\": \"1\"\n   },\n   \"IsMetaMaskTransaction\": \"False\",\n   \"SpecificFromAddress\": \"tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\",\n   \"Transactions\": [\n      {\n         \"AmountToTransfer\": \"6000\",\n         \"DestinationAddress\": \"KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx\"\n      }\n   ],\n   \"UserDescription\": \"example\",\n   \"Meta\": {\n      \"FunctionName\": \"sendTransactionToTezosContractWithContractInfo\",\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/sendTransactionToTezosContractWithContractInfo?account_id=1&tezos_contract_address=KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx&amount=6000&fee=1&gas_limit=2500&entrypoint_name=simple_int&parameters_json=\\\"{\\\\n  \\\\\\\"from\\\\\\\": \\\\\\\"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\\\\\\\",\\\\n  \\\\\\\"to\\\\\\\": \\\\\\\"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\\\\\\\",\\\\n  \\\\\\\"value\\\\\\\": \\\\\\\"362741\\\\\\\"\\\\n}\\\\n\\\"&storage_limit=257&validate_transaction=False&description=example&specific_from_address=tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\"\n\npayload = json.dumps({\n   \"AccountId\": 1,\n   \"CoinType\": \"XTZ\",\n   \"DataForContract\": {\n      \"FunctionName\": \"simple_int\",\n      \"Parameters\": {\n         \"ParametersValuesJson\": {\n            \"from\": \"tz1MtU1ZH9cLSRjyrZXstEGxJcbRfvX4E9Ga\",\n            \"to\": \"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\",\n            \"value\": \"362741\"\n         }\n      },\n      \"validateTransaction\": \"true\"\n   },\n   \"Fee\": {\n      \"GasLimit\": \"2500\",\n      \"GasPrice\": \"1\"\n   },\n   \"IsMetaMaskTransaction\": \"False\",\n   \"SpecificFromAddress\": \"tz1MBNVmtY7DrSRGkGb7nkhf4Sx29rJ5arMp\",\n   \"Transactions\": [\n      {\n         \"AmountToTransfer\": \"6000\",\n         \"DestinationAddress\": \"KT1BWPpjbrKgVF5zBLQ3xoxdCutHsAhHefHx\"\n      }\n   ],\n   \"UserDescription\": \"example\",\n   \"Meta\": {\n      \"FunctionName\": \"sendTransactionToTezosContractWithContractInfo\",\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    \"ApprovalRequestStatus\": 4\n  },\n  \"CoinType\": \"XTZ\",\n  \"Transactions\": [\n    {\n      \"AmountToTransfer\": \"362741\",\n      \"DestinationAddress\": \"tz1KhaFMcercNGYEZNkeC2btRbVh9vk27MET\"\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": "4-F1QQ9MHVA7KgYmEWpbx",
      "type": "bulleted-list",
      "children": [
        {
          "id": "-POKMBr1E7SR6ut7x6PqU",
          "type": "list-item",
          "children": [
            {
              "id": "GQqeg2eggLlDGNWtYPQOZ",
              "type": "list-item-child",
              "children": [
                {
                  "text": "This function is used to send a transaction to a Tezos smart contract, it also supports additional options like specifying a storage limit, validating the transaction, and providing a description.",
                  "id": "ShIxgN4LTBFAW-LclUB8s"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "SDxguFWOZ-JNwT8QE3pCd",
      "type": "paragraph",
      "children": [
        {
          "id": "vO33DdRi4ViYaXg7uT6Tf",
          "type": "link",
          "data": {
            "href": "https://opentezos.com/michelson/smart-contracts"
          },
          "children": [
            {
              "text": "https://opentezos.com/michelson/smart-contracts",
              "id": "rfn1h1xN5vmXbJsTbxE3b"
            }
          ]
        }
      ]
    },
    {
      "id": "zwOnGP4I5TKIbjgzxu6j8",
      "type": "paragraph",
      "children": [
        {
          "text": "*sendTransactionToTezosContractWithContractInfo",
          "id": "83N_frDej48mXyOGfNCkR"
        }
      ]
    },
    {
      "id": "8X45dm9Lyn7AZidUG2Qy9",
      "type": "paragraph",
      "children": [
        {
          "text": "",
          "id": "W6u6U2vVZCx-IwoWdG94-"
        },
        {
          "text": "",
          "bold": true,
          "id": "VhQKVoSmmKk_7RzPvey37"
        },
        {
          "text": " NOTE: success or failure in this api call does not necessarily means success or failure in the transaction itself.",
          "id": "gim3fUFAxRHxUftsuFm4r"
        },
        {
          "text": "",
          "id": "Yhah9TxKWplqXl06jbAxd"
        }
      ]
    },
    {
      "id": "ueZxfI7fNJ7YgAEoIq1Jf",
      "type": "paragraph",
      "children": [
        {
          "text": "",
          "id": "4aaSbQwvYWgrWGZRMdYVl"
        },
        {
          "text": "",
          "bold": true,
          "id": "ydLCJOQEOsPEP_ba0C-1a"
        },
        {
          "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": "tBBe7TUprJRAvGOjmgl30"
        },
        {
          "text": "",
          "id": "1MvsNuQqsTN8Mv9pWlXSE"
        }
      ]
    },
    {
      "id": "T6p5pTbo91Vj2wE9fTyEM",
      "type": "paragraph",
      "children": [
        {
          "text": "",
          "id": "mAbOAxujQXmoX9snloWdo"
        },
        {
          "text": "",
          "bold": true,
          "id": "MLLmujgl70zUIGqOPuDNy"
        },
        {
          "text": " another example is that the transaction was approved here but failed in the signing process.\nTo know the status of the transaction you can access the function getTransactionByToken.",
          "id": "hhsN-0Kvs3YXEJk57h6Iz"
        },
        {
          "text": "",
          "id": "DQex-sI8wRNrqZqbvLuPA"
        }
      ]
    },
    {
      "id": "ysaWZcERiz4w5LUzPiM9j",
      "type": "paragraph",
      "children": [
        {
          "text": "To get the token to send those functions you should call getCurrentToken one action BEFORE sendTransaction:",
          "id": "xSSO7dIUKimAM_iUyiOgy"
        },
        {
          "text": "",
          "id": "iWXNyM_2wQN_OCrKb14DI"
        },
        {
          "text": "\nmyTokenToStoreInTheDb = user.getCurrentToken()",
          "id": "DzHQh-hNB8oOPkkLimdTS"
        },
        {
          "text": "",
          "id": "BJb8-eh1G52IWd-r4MUxG"
        },
        {
          "text": "\nsendTransactionToTezosContractWithContractInfo(...)",
          "id": "_rEEBkurk-7n_duDALGnF"
        },
        {
          "text": "",
          "id": "-AVR0MpZC41_D3HTKu4ky"
        },
        {
          "text": "\n.....",
          "id": "FEMyDXVvPe9GavJsTRC7F"
        },
        {
          "text": "",
          "id": "4pjU54EkS3esggXUdXQzN"
        },
        {
          "text": "\nuser.getTransactionByToken(myTokenToStoreInTheDb,\"XTZ\")",
          "id": "fH2ilMfIj_Zjj1dnGm0f5"
        },
        {
          "text": "",
          "id": "KEBaPzKs_kYgLYekJqMiM"
        },
        {
          "text": "\n\"\"\"",
          "id": "y5ykS97E4D_sFJrqWTUzZ"
        }
      ]
    }
  ]
}