---
title: /evaluateSmartContractTransactionWithContractInfo
slug: evaluatesmartcontracttransactionwithcontractinfo
createdAt: 2024-01-09T12:30:00.561Z
---

{
  "id": "JkmJlHUhyVlk8Y1dxHUYj",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/evaluateSmartContractTransactionWithContractInfo",
    "servers": [
      {
        "url": "http://1.1.1.1/evaluateSmartContractTransactionWithContractInfo"
      }
    ],
    "name": "",
    "description": "<p>This function evaluates a smart contract transaction including contract information by calling an ETH call and return the EthCallResponse\n<a href=\"https://solidity.readthedocs.io/en/develop/abi-spec.html\" target=\"_blank\">https://solidity.readthedocs.io/en/develop/abi-spec.html</a></p>\n<ul>\n<li>\n<p>return - returns ETHCallReturnValue if succeed else error. (error examples shown below this line)</p>\n</li>\n<li>\n<p>return error examples -</p>\n</li>\n</ul>\n<ul>\n<li>\n<p>gas is too low - \"err: intrinsic gas too low: have 21500, want 21572 (supplied gas 21500)\"</p>\n</li>\n<li>\n<p>not an address of an eth contract -  \"0xe62862CBcE5C0c6F53B180Ee5dbf95a8AeA2dd60 is not an address of Ethereum contract!\"</p>\n</li>\n<li>\n<p>revert -  \"execution reverted\"</p>\n</li>\n<li>\n<p>success example -</p>\n</li>\n</ul>\n<ul>\n<li>example - \"EthCallReturnValue\": \"0000000000000000000000000000000000000000000000000000000000000001\"</li>\n</ul>\n<p>example-</p>\n<ul>\n<li>evaluateSmartContractTransactionWithContractInfo(\"0xd38fcFD88C41F32E4711f3722375dD611b42A024\",\"0x963d0aef2a6ba868b38cb032f2a81db145c467fb\",\n\"transfer\",[(\"address\",\"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\"),(\"uint\",\"1\")])</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "from_address",
          "type": "string",
          "example": "0x862842A56B5D5F30B7d519cCe683983F57499cE6",
          "description": "the address where the transaction is sent from.",
          "default": "0x862842A56B5D5F30B7d519cCe683983F57499cE6"
        },
        {
          "kind": "required",
          "name": "contract_address",
          "type": "string",
          "example": "0x4022243F55675F33C8159A16Be7a22264ACBB545",
          "description": "the address of the contract to send to",
          "default": "0x4022243F55675F33C8159A16Be7a22264ACBB545"
        },
        {
          "kind": "optional",
          "name": "gas_price",
          "type": "string",
          "example": "1000000000",
          "description": "<p>the gas price we want to transfer with, in Wei - if None the gas price will be the default value from the eth call.</p>",
          "default": "1000000000"
        },
        {
          "kind": "required",
          "name": "function_name",
          "type": "string",
          "example": "transfer",
          "description": "<p>representing the function name to call, e.g. \"foo\" (with no params).</p>",
          "default": "transfer"
        },
        {
          "kind": "optional",
          "name": "amount",
          "type": "string",
          "example": "1",
          "description": "<p>the amount to send with this transaction, in Wei - if None the amount will be the default value from the eth call. transaction</p>",
          "default": "1"
        },
        {
          "kind": "optional",
          "name": "gas_limit",
          "type": "string",
          "example": "600000",
          "description": "<p>the gas limit we want to transfer, in gas units - if None the gas limit will be the default value from the eth call.</p>",
          "default": "600000"
        },
        {
          "kind": "optional",
          "name": "evm_coin_symbol",
          "type": "string",
          "example": "ETH",
          "description": "<p>the coin symbol of the EVM network on which the smart contract is deployed, for example: ETH, CELO, etc...</p>",
          "default": "ETH"
        },
        {
          "kind": "required",
          "name": "parameters_fields_types_and_values",
          "type": "object",
          "example": "",
          "description": "list of pairs of \"type\" and value for each parameter in the function (see below)\ne.g [[\"int\",\"32432\"],[\"bytes\",\"0x1234567890\"],[\"int8[3]\",[\"-20\",\"0\",\"127\"]],[\"string\",\"got the idea, right?\"]\n\nType:\n\nstring representing the parameters types, e.g. [\"int32\",\"uint256\",\"string[]\",\"bool\"]\nGK8 system supports all the types supported by solidity:\n* uint<M>: unsigned integer type of M bits, 0 < M <= 256, M % 8 == 0. e.g. uint32, uint8, uint256. (uint is uint256)\n* int<M>:  signed integer type of M bits, 0 < M <= 256, M % 8 == 0.  e.g. int32, int8, int256. (int is int256)\n* address\n* bool\n* bytes<M>: binary type of M bytes, 0 < M <= 32\n* function: an address (20 bytes) followed by a function selector (4 bytes)\n* <type>[M]: an array of constant size of any type, e.g. int[32], string[7], bytes3[2],.... \n* bytes: an unlimited collection of bytes\n* string: string in UTF8\n* <type>[]: a variable-length array of elements of the given type. e.g. int[], string[], bytes3[],....\n* tuple: (T1,T2,...,Tn): tuple consisting of the types T1, â€¦, Tn, n >= 0, e.g. (int,string,int[32])\n\nIMPORTANT: you must spell the type name correctly! No redundant spaces, no Capitals, spelling it in a wrong way will cause the request to fail.\n\nValue:\n\nrepresenting the value of parameters in parameters_fields_types, e.g. [\"12345678\",\"34769874356980435879\",[1,34,-1],[\"bl\",\"cl\",\"mkasdsa\"],\"True\"]\nExcept than \"function\", \"fixed length array\" \"variable-length array\", \"tuple\", all the values must be given as strings, even ints.\nThose 4 types are given as python lists containing in inner value in each cell. Some examples:\n* uint<M>: any base 10 non negative number in range of M bits: \"2131\"  /  \"12131\"  /  \"45678906543467890\"  /  \"0\"\n* int<M>:  any base 10 number in range of two's complement M bits \"2131\"  /  \"-2131\"  /  \"45678906543467890\"  / \"0\"\n* address: any EVM address, 0x + 40 hex chars \"0xEDF9C138F990b4ed9b7cb83F6ad8fF76017572B9\"   /   \"0x0000C138F990B4ED9B7CB83F6AD8FF76017572B9\"  /  \"0xedf9c138f990b4ed9b7cb83f6ad8ff76017572b9\"\n* bool:   \"true\" / \"false\"\n* bytes<M>: given in hex with 0x prefix, must hold 2*M hex characters \"0x00F9C138F990b4ed9b7c\"   /   \"0xEDF9C138F990B4ED9B7CB83F6AD8FF76017572B9\"  /  \"0xe9\"\n* function: a python list of length 2, holding address and one of \"4 bytes digested function pointer e.g. 0x1234abcd\" or \"function declaration ready to be hashed, e.g. 'foo(int,string)'\"\n[\"0xEDF9C138F990b4ed9b7cb83F6ad8fF76017572B9\",\"0x1234abcd\"]  /  [\"0x0000C138F990B4ED9B7CB83F6AD8FF76017572B9\",\"foo(int,string)\"]\n* <type>[M]: python list of <type>, e.g. \nint[3]      -> [\"2342\",\"-32432\",\"1\"]\nbytes3[2]   -> [\"0x232323\",\"0x000011\",\"0xabABcd\"]\nbool[3]     -> [\"True\",\"True\",\"False\"]\n* bytes: same as bytes<M>, must start with 0x and hold an even non negative count of hex digits\n* string: \"hello world!\" / \"×©×œ×•× ×¢×•×œ×!\" / \"Ethereum is so cool :)\"\n* <type>[]: same as <type>[M]\n* tuple: (T1,T2,...,Tn):  python list of the types, e.g. \n(int,string,bool[3]) -> [\"-2133242\",\"tuples are kind of redundant,right?\", [\"True\",\"True\",\"False\"]]\n(int,string,(int, bool[3])) -> [\"7\",\"tuples are redundant\", [\"7\",[\"True\",\"True\",\"False\"]]]            \n",
          "default": "[\n  {\"key\": \"address\", \"value\": \"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\"},\n  {\"key\": \"uint\", \"value\": \"1\"}\n]\n",
          "schema": []
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Request data for an Ethereum contract transaction.",
          "customType": "evaluateSmartContractTransactionWithContractInfoRequest",
          "schema": [
            {
              "name": "FunctionData",
              "kind": "optional",
              "type": "object",
              "example": "",
              "schema": [
                {
                  "name": "Amount",
                  "kind": "optional",
                  "type": "string",
                  "description": "The amount to transfer.",
                  "example": "1",
                  "default": "1"
                },
                {
                  "name": "ContractAddress",
                  "kind": "optional",
                  "type": "string",
                  "description": "The address of the contract.",
                  "example": "0x4022243F55675F33C8159A16Be7a22264ACBB545",
                  "default": "0x4022243F55675F33C8159A16Be7a22264ACBB545"
                },
                {
                  "name": "DataForContract",
                  "kind": "optional",
                  "type": "object",
                  "description": "Data related to the contract function.",
                  "example": "",
                  "schema": [
                    {
                      "name": "FunctionName",
                      "kind": "optional",
                      "type": "string",
                      "description": "The name of the contract function.",
                      "example": "transfer",
                      "default": "transfer"
                    },
                    {
                      "name": "ParametersFieldsTypesAndValues",
                      "kind": "optional",
                      "type": "array",
                      "description": "The parameters of the contract function.",
                      "example": "",
                      "itemType": "array",
                      "customType": "array[]",
                      "itemExample": "[\"address\",\"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\",\"uint\",\"1\"]",
                      "itemDefault": ""
                    }
                  ]
                },
                {
                  "name": "EvmCoinSymbol",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Ethereum coin symbol.",
                  "example": "ETH",
                  "default": "ETH"
                },
                {
                  "name": "FromAddress",
                  "kind": "optional",
                  "type": "string",
                  "description": "The source address for the transaction.",
                  "example": "0x862842A56B5D5F30B7d519cCe683983F57499cE6",
                  "default": "0x862842A56B5D5F30B7d519cCe683983F57499cE6"
                },
                {
                  "name": "GasLimit",
                  "kind": "optional",
                  "type": "string",
                  "description": "The gas limit for the transaction.",
                  "example": "600000",
                  "default": "600000"
                },
                {
                  "name": "GasPrice",
                  "kind": "optional",
                  "type": "string",
                  "description": "The gas price for the transaction.",
                  "example": "1000000000",
                  "default": "1000000000"
                }
              ]
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokenevaluateSmartContractTransactionWithContractInfo",
              "customType": "MetaTokenevaluateSmartContractTransactionWithContractInfo",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "evaluateSmartContractTransactionWithContractInfo",
                  "default": "evaluateSmartContractTransactionWithContractInfo"
                },
                {
                  "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/evaluateSmartContractTransactionWithContractInfoRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "evaluateSmartContractTransactionWithContractInfoResponse",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "complexType": "oneOf",
                "complexItems": [
                  {
                    "name": "EthCallReturnValue",
                    "description": "",
                    "modelRef": "#/components/schemas/EthCallReturnValue",
                    "schema": []
                  },
                  {
                    "name": "EthCallError",
                    "description": "",
                    "modelRef": "#/components/schemas/EthCallError",
                    "schema": []
                  }
                ],
                "schema": []
              },
              {
                "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/evaluateSmartContractTransactionWithContractInfoResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/evaluateSmartContractTransactionWithContractInfo?from_address=0x862842A56B5D5F30B7d519cCe683983F57499cE6&contract_address=0x4022243F55675F33C8159A16Be7a22264ACBB545&gas_price=1000000000&function_name=transfer&amount=1&gas_limit=600000&evm_coin_symbol=ETH&parameters_fields_types_and_values=%22[%5Cn%20%20{%5C%22key%5C%22%3A%20%5C%22address%5C%22%2C%20%5C%22value%5C%22%3A%20%5C%220x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67%5C%22}%2C%5Cn%20%20{%5C%22key%5C%22%3A%20%5C%22uint%5C%22%2C%20%5C%22value%5C%22%3A%20%5C%221%5C%22}%5Cn]%5Cn%22' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"FunctionData\": {\n     \"Amount\": \"1\",\n     \"ContractAddress\": \"0x4022243F55675F33C8159A16Be7a22264ACBB545\",\n     \"DataForContract\": {\n     \"FunctionName\": \"transfer\"\n     },\n     \"EvmCoinSymbol\": \"ETH\",\n     \"FromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n     \"GasLimit\": \"600000\",\n     \"GasPrice\": \"1000000000\"\n     },\n     \"Meta\": {\n     \"FunctionName\": \"evaluateSmartContractTransactionWithContractInfo\",\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   \"FunctionData\": {\n      \"Amount\": \"1\",\n      \"ContractAddress\": \"0x4022243F55675F33C8159A16Be7a22264ACBB545\",\n      \"DataForContract\": {\n         \"FunctionName\": \"transfer\"\n      },\n      \"EvmCoinSymbol\": \"ETH\",\n      \"FromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n      \"GasLimit\": \"600000\",\n      \"GasPrice\": \"1000000000\"\n   },\n   \"Meta\": {\n      \"FunctionName\": \"evaluateSmartContractTransactionWithContractInfo\",\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/evaluateSmartContractTransactionWithContractInfo?from_address=0x862842A56B5D5F30B7d519cCe683983F57499cE6&contract_address=0x4022243F55675F33C8159A16Be7a22264ACBB545&gas_price=1000000000&function_name=transfer&amount=1&gas_limit=600000&evm_coin_symbol=ETH&parameters_fields_types_and_values=\\\"[\\\\n  {\\\\\\\"key\\\\\\\": \\\\\\\"address\\\\\\\", \\\\\\\"value\\\\\\\": \\\\\\\"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\\\\\\\"},\\\\n  {\\\\\\\"key\\\\\\\": \\\\\\\"uint\\\\\\\", \\\\\\\"value\\\\\\\": \\\\\\\"1\\\\\\\"}\\\\n]\\\\n\\\"\", 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/evaluateSmartContractTransactionWithContractInfo?from_address=0x862842A56B5D5F30B7d519cCe683983F57499cE6&contract_address=0x4022243F55675F33C8159A16Be7a22264ACBB545&gas_price=1000000000&function_name=transfer&amount=1&gas_limit=600000&evm_coin_symbol=ETH&parameters_fields_types_and_values=\\\"[\\n  {\\\\\"key\\\\\": \\\\\"address\\\\\", \\\\\"value\\\\\": \\\\\"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\\\\\"},\\n  {\\\\\"key\\\\\": \\\\\"uint\\\\\", \\\\\"value\\\\\": \\\\\"1\\\\\"}\\n]\\n\\\"\")\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      \"Amount\": \"1\",\n      \"ContractAddress\": \"0x4022243F55675F33C8159A16Be7a22264ACBB545\",\n      \"DataForContract\": {\n         \"FunctionName\": \"transfer\"\n      },\n      \"EvmCoinSymbol\": \"ETH\",\n      \"FromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n      \"GasLimit\": \"600000\",\n      \"GasPrice\": \"1000000000\"\n   },\n   \"Meta\": {\n      \"FunctionName\": \"evaluateSmartContractTransactionWithContractInfo\",\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/evaluateSmartContractTransactionWithContractInfo?from_address=0x862842A56B5D5F30B7d519cCe683983F57499cE6&contract_address=0x4022243F55675F33C8159A16Be7a22264ACBB545&gas_price=1000000000&function_name=transfer&amount=1&gas_limit=600000&evm_coin_symbol=ETH&parameters_fields_types_and_values=\\\"[\\\\n  {\\\\\\\"key\\\\\\\": \\\\\\\"address\\\\\\\", \\\\\\\"value\\\\\\\": \\\\\\\"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\\\\\\\"},\\\\n  {\\\\\\\"key\\\\\\\": \\\\\\\"uint\\\\\\\", \\\\\\\"value\\\\\\\": \\\\\\\"1\\\\\\\"}\\\\n]\\\\n\\\"\"\n\npayload = json.dumps({\n   \"FunctionData\": {\n      \"Amount\": \"1\",\n      \"ContractAddress\": \"0x4022243F55675F33C8159A16Be7a22264ACBB545\",\n      \"DataForContract\": {\n         \"FunctionName\": \"transfer\"\n      },\n      \"EvmCoinSymbol\": \"ETH\",\n      \"FromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n      \"GasLimit\": \"600000\",\n      \"GasPrice\": \"1000000000\"\n   },\n   \"Meta\": {\n      \"FunctionName\": \"evaluateSmartContractTransactionWithContractInfo\",\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  \"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": "45jRmbG4YSvWl2FhvRRCc",
      "type": "paragraph",
      "children": [
        {
          "text": "This function evaluates a smart contract transaction including contract information by calling an ETH call and return the EthCallResponse",
          "id": "b2bPaNAe_WosgYT_Fsi3c"
        },
        {
          "text": "",
          "id": "D07lEu4V5cP3zUeI8E3pf"
        },
        {
          "text": "\n",
          "id": "vAK0k-Hi14e_6rDCa2ylv"
        },
        {
          "id": "y1XIe-njB_V8iYY7JRH_S",
          "type": "link",
          "data": {
            "href": "https://solidity.readthedocs.io/en/develop/abi-spec.html"
          },
          "children": [
            {
              "text": "https://solidity.readthedocs.io/en/develop/abi-spec.html",
              "id": "LgPRKb1SMDsytjpy8uG70"
            }
          ]
        }
      ]
    },
    {
      "id": "WngF34pMhTkHWThKihJM3",
      "type": "bulleted-list",
      "children": [
        {
          "id": "0jdqxa0cefKKhxEM57SPj",
          "type": "list-item",
          "children": [
            {
              "id": "mha27zZ0DtFkfOFQkffIt",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - returns ETHCallReturnValue if succeed else error. (error examples shown below this line)",
                  "id": "QLBBchbNZPUdfF5BelWeE"
                }
              ]
            }
          ]
        },
        {
          "id": "D2ApWc6LcUkmAgjiMlb4f",
          "type": "list-item",
          "children": [
            {
              "id": "2a-z68ectZttUjtWzUmdJ",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return error examples -",
                  "id": "PZXu_7ooswr3KiceGkfRt"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "HnDX0m3hxiX9KI2p-xhe1",
      "type": "bulleted-list",
      "children": [
        {
          "id": "rz2kckGNacX7s3Y65eVW_",
          "type": "list-item",
          "children": [
            {
              "id": "CCSGXPXYZHxnaL-VETZAv",
              "type": "list-item-child",
              "children": [
                {
                  "text": "gas is too low - \"err: intrinsic gas too low: have 21500, want 21572 (supplied gas 21500)\"",
                  "id": "bIIjWtk4Gc9_mrM82V6_U"
                }
              ]
            }
          ]
        },
        {
          "id": "Uw_HR_aq046ecxhAtw92e",
          "type": "list-item",
          "children": [
            {
              "id": "c4Xu9guCNCuv9y21YG9ab",
              "type": "list-item-child",
              "children": [
                {
                  "text": "not an address of an eth contract -  \"0xe62862CBcE5C0c6F53B180Ee5dbf95a8AeA2dd60 is not an address of Ethereum contract!\"",
                  "id": "fLVNNb1KFosjmdylDTXtD"
                }
              ]
            }
          ]
        },
        {
          "id": "Qc-QN5lW5MO8o6PwvTxhQ",
          "type": "list-item",
          "children": [
            {
              "id": "rQWcttK5sa9SBD1moGnpC",
              "type": "list-item-child",
              "children": [
                {
                  "text": "revert -  \"execution reverted\"",
                  "id": "6ExQIydXwFTOILT7Fiq1r"
                }
              ]
            }
          ]
        },
        {
          "id": "9VLWorj98X-nfQXKNQMiC",
          "type": "list-item",
          "children": [
            {
              "id": "6PFRvHBbNGlJ7vmTEzK9r",
              "type": "list-item-child",
              "children": [
                {
                  "text": "success example -",
                  "id": "6Fh8ZQiDIGc7dLHwRYZJw"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "bohJzumbw-cqwFp21aYfO",
      "type": "bulleted-list",
      "children": [
        {
          "id": "LMNgbmN_K8eHZSrwT5mh_",
          "type": "list-item",
          "children": [
            {
              "id": "nNNeHhJd7skza0ocuKVIp",
              "type": "list-item-child",
              "children": [
                {
                  "text": "example - \"EthCallReturnValue\": \"0000000000000000000000000000000000000000000000000000000000000001\"",
                  "id": "Gba-PX5sBU3gwAE7esQld"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "aNlFJQ14WWGGcEN6QJUv8",
      "type": "paragraph",
      "children": [
        {
          "text": "example-",
          "id": "LOmZG-ckIBrqfm4Jg1p4f"
        },
        {
          "text": "",
          "id": "u04wSeqWrFyuusLbD427y"
        }
      ]
    },
    {
      "id": "jMVmD84X_kRdkPExVCJQe",
      "type": "bulleted-list",
      "children": [
        {
          "id": "qtUz37X6s5CnFdbNsyd6f",
          "type": "list-item",
          "children": [
            {
              "id": "UE0OLx5k5RDUCGpg2jHwg",
              "type": "list-item-child",
              "children": [
                {
                  "text": "evaluateSmartContractTransactionWithContractInfo(\"0xd38fcFD88C41F32E4711f3722375dD611b42A024\",\"0x963d0aef2a6ba868b38cb032f2a81db145c467fb\",\n\"transfer\",[(\"address\",\"0x6705ff69a6745ee35e2a7c3a0A8fb27698C7ea67\"),(\"uint\",\"1\")])",
                  "id": "_2eEiZzBcHWcvb6iiXwwE"
                },
                {
                  "text": "",
                  "id": "rZUsj8KhOwW1TJ6VCH9kL"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}