---
title: /approveMpcRequest
slug: approvempcrequest
createdAt: 2024-01-09T12:30:00.566Z
---

{
  "id": "CzVBOwNxxt6dSIxNzSTNU",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/approveMpcRequest",
    "servers": [
      {
        "url": "http://1.1.1.1/approveMpcRequest"
      }
    ],
    "name": "",
    "description": "<p>#IMPORTANT - can not be executed from Swagger UI, please use approveMpcRequestForSwagger instead</p>\n<ul>\n<li>\n<p>Approves an MPC request.</p>\n</li>\n<li>\n<p>This function sends an approval request for a specific MPC operation to a list of designated approvers.</p>\n</li>\n<li>\n<p>return - regular response if succeed else error</p>\n</li>\n</ul>\n<p>example - approveMpcRequest(\"9e2626a39663f285fdfae2fc0b329baf\",\"<a href=\"mailto:bob@gk8.io\" target=\"_blank\">bob@gk8.io</a>\",\"bob bobson\",1,\"BTC\",1,\"36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm\", \"100000000\", ,\"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021\",[(\"0\",\"<a href=\"mailto:david@gk8.io\">david@gk8.io</a>\"),(\"3\",\"<a href=\"mailto:alice@gk8.io\">alice@gk8.io</a>\")])</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "request_id",
          "type": "string",
          "example": "9e2626a39663f285fdfae2fc0b329baf",
          "description": "<p>id of the sent transaction request (get by using getBulletins)</p>",
          "default": "9e2626a39663f285fdfae2fc0b329baf"
        },
        {
          "kind": "required",
          "name": "request_creator_id",
          "type": "string",
          "example": "john@gk8.io",
          "description": "id of the sent transaction creator",
          "default": "john@gk8.io"
        },
        {
          "kind": "required",
          "name": "request_type",
          "type": "integer",
          "example": 0,
          "description": "<p>int 0 mean TRANSACTION_REQUEST</p>",
          "default": 0
        },
        {
          "kind": "required",
          "name": "coin_type",
          "type": "string",
          "example": "BTC",
          "description": "coin type used in this operation",
          "default": "BTC"
        },
        {
          "kind": "required",
          "name": "account_id",
          "type": "integer",
          "example": 1,
          "description": "the account used in this operation",
          "default": 1
        },
        {
          "kind": "required",
          "name": "to",
          "type": "string",
          "example": "36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm",
          "description": "The address sent to in this operation",
          "default": "36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm"
        },
        {
          "kind": "required",
          "name": "amount",
          "type": "string",
          "example": "100000000",
          "description": "The amount sent in this operation",
          "default": "100000000"
        },
        {
          "kind": "required",
          "name": "tx_access_token",
          "type": "string",
          "example": "a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021",
          "description": "<p>transaction request access token (get by using getBulletins)</p>",
          "default": "a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021"
        },
        {
          "kind": "required",
          "name": "approvers_list",
          "type": "array",
          "description": "An array of objects representing approvers with the following structure:\n- `Action` (integer): The action associated with the approver.\n- `User` (string): The email address of the approver.                            \n:[{\"Action\":0,\"User\":\"87654321\"},{\"Action\":0,\"User\":\"david@gk8.io\"}] \n",
          "schema": [],
          "itemType": "object",
          "customType": "object[]"
        },
        {
          "kind": "optional",
          "name": "specific_from_address",
          "type": "string",
          "example": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3",
          "description": "the deposit address we sent from",
          "default": "3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3"
        },
        {
          "kind": "optional",
          "name": "data_for_contract",
          "type": "string",
          "description": "<p>the contract data contract as Json - may contain a function name in \"FunctionName\" field</p>\n<ul>\n<li>and parameters types &#x26; values in \"ParametersFieldsTypesAndValues field, or all the data parsed to bytes in \"RawData\" field.</li>\n</ul>"
        },
        {
          "kind": "optional",
          "name": "bytes_to_sign",
          "type": "string",
          "example": "233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859",
          "description": "64 hexadecimal chars signed on without 0x for raw Stellar transactions",
          "default": "233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859"
        },
        {
          "kind": "optional",
          "name": "fee",
          "type": "integer",
          "example": 20,
          "description": "<p>the fee transferred - integer or object with values of gas limit, max priority fee, max</p>\n<ul>\n<li>storage (Backward Compatible)</li>\n</ul>",
          "default": 20
        },
        {
          "kind": "optional",
          "name": "is_eth1_to_eth2_conversion",
          "type": "boolean",
          "example": "False",
          "description": "whether the transaction type is sendConvertEth1ToEth2Transaction",
          "default": "False"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Request data for an Ethereum (ETH) transaction.",
          "customType": "approveMpcRequestRequest",
          "schema": [
            {
              "name": "FunctionData",
              "kind": "optional",
              "type": "object",
              "description": "Contains the function-specific data for an Ethereum transaction.",
              "example": "",
              "schema": [
                {
                  "name": "AccountId",
                  "kind": "optional",
                  "type": "integer",
                  "description": "The ID of the user's account.",
                  "example": 1,
                  "default": 1
                },
                {
                  "name": "ApproversList",
                  "kind": "optional",
                  "type": "array",
                  "description": "List of approvers for the transaction.",
                  "example": "",
                  "itemType": "object",
                  "customType": "object[]",
                  "schema": [
                    {
                      "name": "Action",
                      "kind": "optional",
                      "type": "integer",
                      "description": "The action for the approver (0 for approval, 1 for rejection).",
                      "example": 0,
                      "default": 0
                    },
                    {
                      "name": "User",
                      "kind": "optional",
                      "type": "string",
                      "description": "The email of the approver.",
                      "example": "eli@gk8.io",
                      "default": "eli@gk8.io"
                    }
                  ]
                },
                {
                  "name": "BytesToSign",
                  "kind": "optional",
                  "type": "string",
                  "description": "The bytes to sign for the transaction.",
                  "example": "233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859",
                  "default": "233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859"
                },
                {
                  "name": "CoinType",
                  "kind": "optional",
                  "type": "string",
                  "description": "The type of cryptocurrency (e.g., ETH).",
                  "example": "ETH",
                  "default": "ETH"
                },
                {
                  "name": "DataForContract",
                  "kind": "optional",
                  "type": "object",
                  "description": "Data for an Ethereum smart contract.",
                  "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": "List of parameter types and values.",
                      "example": "",
                      "itemType": "object",
                      "customType": "object[]",
                      "schema": [
                        {
                          "name": "type",
                          "kind": "optional",
                          "type": "string",
                          "description": "The data type of the parameter.",
                          "example": "{\"functionName\":\"transfer\",\"parametersFieldsTypesAndValues\":[{\"type\":\"address\",\"value\":\"0xE4Fd4d9190075de22826DdeC437594d27fb549Ab\"},{\"type\":\"uint256\",\"value\":\"6000\"}]}"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "Fee",
                  "kind": "optional",
                  "type": "object",
                  "description": "Transaction fee details for Ethereum.",
                  "example": "",
                  "schema": [
                    {
                      "name": "GasLimit",
                      "kind": "optional",
                      "type": "integer",
                      "description": "The gas limit for the transaction.",
                      "example": 21000,
                      "default": 21000
                    },
                    {
                      "name": "GasPrice",
                      "kind": "optional",
                      "type": "string",
                      "description": "The gas price in Gwei.",
                      "example": "100000",
                      "default": "100000"
                    }
                  ]
                },
                {
                  "name": "Outputs",
                  "kind": "optional",
                  "type": "array",
                  "description": "List of transaction outputs.",
                  "example": "",
                  "itemType": "object",
                  "customType": "object[]",
                  "schema": [
                    {
                      "name": "AmountToTransfer",
                      "kind": "optional",
                      "type": "string",
                      "description": "The amount to transfer in ETH.",
                      "example": "6000",
                      "default": "6000"
                    },
                    {
                      "name": "DestinationAddress",
                      "kind": "optional",
                      "type": "string",
                      "description": "The destination Ethereum address.",
                      "example": "0xE4Fd4d9190075de22826DdeC437594d27fb549Ab",
                      "default": "0xE4Fd4d9190075de22826DdeC437594d27fb549Ab"
                    }
                  ]
                },
                {
                  "name": "RequestCreator",
                  "kind": "optional",
                  "type": "string",
                  "description": "The email of the request creator.",
                  "example": "john@gk8.io",
                  "default": "john@gk8.io"
                },
                {
                  "name": "RequestId",
                  "kind": "optional",
                  "type": "string",
                  "description": "The ID of the transaction request.",
                  "example": "9e2626a39663f285fdfae2fc0b329baf",
                  "default": "9e2626a39663f285fdfae2fc0b329baf"
                },
                {
                  "name": "RequestType",
                  "kind": "optional",
                  "type": "integer",
                  "description": "The type of the transaction request (0 for some type).",
                  "example": 0,
                  "default": 0
                },
                {
                  "name": "SpecificFromAddress",
                  "kind": "optional",
                  "type": "string",
                  "description": "The specific Ethereum address used as the sender.",
                  "example": "0x862842A56B5D5F30B7d519cCe683983F57499cE6",
                  "default": "0x862842A56B5D5F30B7d519cCe683983F57499cE6"
                },
                {
                  "name": "TxAccessToken",
                  "kind": "optional",
                  "type": "string",
                  "description": "The access token for the transaction.",
                  "example": "a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021",
                  "default": "a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021"
                }
              ]
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokenapproveMpcRequest",
              "customType": "MetaTokenapproveMpcRequest",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "approveMpcRequest",
                  "default": "approveMpcRequest"
                },
                {
                  "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/approveMpcRequestRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "approveMpcRequestResponse",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "Status",
                    "kind": "optional",
                    "type": "string",
                    "description": "status of approveCold request",
                    "example": "success",
                    "default": "success"
                  }
                ]
              },
              {
                "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/approveMpcRequestResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/approveMpcRequest?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=john%40gk8.io&request_type=integer&coin_type=BTC&account_id=1&to=36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm&amount=100000000&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=array&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&bytes_to_sign=233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859&fee=20&is_eth1_to_eth2_conversion=False' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data-raw '{\n     \"FunctionData\": {\n     \"AccountId\": 1,\n     \"ApproversList\": [\n     {\n     \"User\": \"eli@gk8.io\"\n     }\n     ],\n     \"BytesToSign\": \"233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859\",\n     \"CoinType\": \"ETH\",\n     \"DataForContract\": {\n     \"functionName\": \"transfer\"\n     },\n     \"Fee\": {\n     \"GasLimit\": 21000,\n     \"GasPrice\": \"100000\"\n     },\n     \"Outputs\": [\n     {\n     \"AmountToTransfer\": \"6000\",\n     \"DestinationAddress\": \"0xE4Fd4d9190075de22826DdeC437594d27fb549Ab\"\n     }\n     ],\n     \"RequestCreator\": \"john@gk8.io\",\n     \"RequestId\": \"9e2626a39663f285fdfae2fc0b329baf\",\n     \"SpecificFromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n     \"TxAccessToken\": \"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021\"\n     },\n     \"Meta\": {\n     \"FunctionName\": \"approveMpcRequest\",\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      \"AccountId\": 1,\n      \"ApproversList\": [\n         {\n            \"User\": \"eli@gk8.io\"\n         }\n      ],\n      \"BytesToSign\": \"233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859\",\n      \"CoinType\": \"ETH\",\n      \"DataForContract\": {\n         \"functionName\": \"transfer\"\n      },\n      \"Fee\": {\n         \"GasLimit\": 21000,\n         \"GasPrice\": \"100000\"\n      },\n      \"Outputs\": [\n         {\n            \"AmountToTransfer\": \"6000\",\n            \"DestinationAddress\": \"0xE4Fd4d9190075de22826DdeC437594d27fb549Ab\"\n         }\n      ],\n      \"RequestCreator\": \"john@gk8.io\",\n      \"RequestId\": \"9e2626a39663f285fdfae2fc0b329baf\",\n      \"SpecificFromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n      \"TxAccessToken\": \"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021\"\n   },\n   \"Meta\": {\n      \"FunctionName\": \"approveMpcRequest\",\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/approveMpcRequest?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=john@gk8.io&request_type=integer&coin_type=BTC&account_id=1&to=36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm&amount=100000000&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=array&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&bytes_to_sign=233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859&fee=20&is_eth1_to_eth2_conversion=False\", 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/approveMpcRequest?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=john@gk8.io&request_type=integer&coin_type=BTC&account_id=1&to=36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm&amount=100000000&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=array&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&bytes_to_sign=233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859&fee=20&is_eth1_to_eth2_conversion=False\")\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      \"AccountId\": 1,\n      \"ApproversList\": [\n         {\n            \"User\": \"eli@gk8.io\"\n         }\n      ],\n      \"BytesToSign\": \"233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859\",\n      \"CoinType\": \"ETH\",\n      \"DataForContract\": {\n         \"functionName\": \"transfer\"\n      },\n      \"Fee\": {\n         \"GasLimit\": 21000,\n         \"GasPrice\": \"100000\"\n      },\n      \"Outputs\": [\n         {\n            \"AmountToTransfer\": \"6000\",\n            \"DestinationAddress\": \"0xE4Fd4d9190075de22826DdeC437594d27fb549Ab\"\n         }\n      ],\n      \"RequestCreator\": \"john@gk8.io\",\n      \"RequestId\": \"9e2626a39663f285fdfae2fc0b329baf\",\n      \"SpecificFromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n      \"TxAccessToken\": \"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021\"\n   },\n   \"Meta\": {\n      \"FunctionName\": \"approveMpcRequest\",\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/approveMpcRequest?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=john@gk8.io&request_type=integer&coin_type=BTC&account_id=1&to=36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm&amount=100000000&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=array&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&bytes_to_sign=233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859&fee=20&is_eth1_to_eth2_conversion=False\"\n\npayload = json.dumps({\n   \"FunctionData\": {\n      \"AccountId\": 1,\n      \"ApproversList\": [\n         {\n            \"User\": \"eli@gk8.io\"\n         }\n      ],\n      \"BytesToSign\": \"233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859\",\n      \"CoinType\": \"ETH\",\n      \"DataForContract\": {\n         \"functionName\": \"transfer\"\n      },\n      \"Fee\": {\n         \"GasLimit\": 21000,\n         \"GasPrice\": \"100000\"\n      },\n      \"Outputs\": [\n         {\n            \"AmountToTransfer\": \"6000\",\n            \"DestinationAddress\": \"0xE4Fd4d9190075de22826DdeC437594d27fb549Ab\"\n         }\n      ],\n      \"RequestCreator\": \"john@gk8.io\",\n      \"RequestId\": \"9e2626a39663f285fdfae2fc0b329baf\",\n      \"SpecificFromAddress\": \"0x862842A56B5D5F30B7d519cCe683983F57499cE6\",\n      \"TxAccessToken\": \"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021\"\n   },\n   \"Meta\": {\n      \"FunctionName\": \"approveMpcRequest\",\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    \"Status\": \"success\"\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": "d8UfLv_H8U1DwgWgrORtE",
      "type": "paragraph",
      "children": [
        {
          "text": "#IMPORTANT - can not be executed from Swagger UI, please use approveMpcRequestForSwagger instead",
          "id": "nVZwy9hYx_iLUJYTHL4YW"
        }
      ]
    },
    {
      "id": "i5lFsGKj8W6-hk5KsHrpY",
      "type": "bulleted-list",
      "children": [
        {
          "id": "crhLUHht2nEqtRLgU-CLs",
          "type": "list-item",
          "children": [
            {
              "id": "DUcB6Eh_mWVbLn2_aBBU9",
              "type": "list-item-child",
              "children": [
                {
                  "text": "Approves an MPC request.",
                  "id": "Vl2iRwD5pPV6-Kop4EFgQ"
                }
              ]
            }
          ]
        },
        {
          "id": "dncsqIDf_bU6vk3P_NsjC",
          "type": "list-item",
          "children": [
            {
              "id": "PngPNmjjHVFyrjJaJH_B0",
              "type": "list-item-child",
              "children": [
                {
                  "text": "This function sends an approval request for a specific MPC operation to a list of designated approvers.",
                  "id": "lRQkQyn-zv31gT8WRqe7P"
                }
              ]
            }
          ]
        },
        {
          "id": "cO5OQqQra8sJ6yoFBRDoY",
          "type": "list-item",
          "children": [
            {
              "id": "68xDtbpZe2cHt6qV0HWKr",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - regular response if succeed else error",
                  "id": "XxUxb5NzmrSHaIngIp6qI"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "8gDQoYcLzeR13ZhDlqBth",
      "type": "paragraph",
      "children": [
        {
          "text": "example - approveMpcRequest(\"9e2626a39663f285fdfae2fc0b329baf\",\"",
          "id": "iTn5RSpWbvJ0A6eH-DdYS"
        },
        {
          "id": "m0X9OFFCvbMbZFBX_qtbj",
          "type": "link",
          "data": {
            "href": "mailto:bob@gk8.io"
          },
          "children": [
            {
              "text": "bob@gk8.io",
              "id": "YzPFtDCVgg8e1UQaQSITd"
            }
          ]
        },
        {
          "text": "\",\"bob bobson\",1,\"BTC\",1,\"36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm\", \"100000000\", ,\"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021\",[(\"0\",\"",
          "id": "WgWBhQWwJMjN11BwzhY6S"
        },
        {
          "id": "t19Ot6uRiMUjzgHg3EbP5",
          "type": "link",
          "data": {
            "href": "mailto:david@gk8.io"
          },
          "children": [
            {
              "text": "david@gk8.io",
              "id": "hDZUUoNUM6fc6eGB8zozD"
            }
          ]
        },
        {
          "text": "\"),(\"3\",\"",
          "id": "vwZfIovefc8ySKtZJeR2t"
        },
        {
          "id": "BZxMOjuFFfhTmuvH2IjAX",
          "type": "link",
          "data": {
            "href": "mailto:alice@gk8.io"
          },
          "children": [
            {
              "text": "alice@gk8.io",
              "id": "_Hxq_2ZhbWLNRwnSYQ70w"
            }
          ]
        },
        {
          "text": "\")])",
          "id": "mH75x6OoG4NTQtb24CG3g"
        }
      ]
    }
  ]
}