Skip to main content
POST
/
v1
/
resimulation
Resimulation
curl --request POST \
  --url https://api.mpcvault.com/v1/resimulation \
  --header 'Content-Type: application/json' \
  --header 'x-mtoken: <api-key>' \
  --data '
{
  "signingRequestUuid": "<string>"
}
'
import requests

url = "https://api.mpcvault.com/v1/resimulation"

payload = { "signingRequestUuid": "<string>" }
headers = {
"x-mtoken": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-mtoken': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({signingRequestUuid: '<string>'})
};

fetch('https://api.mpcvault.com/v1/resimulation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mpcvault.com/v1/resimulation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'signingRequestUuid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-mtoken: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.mpcvault.com/v1/resimulation"

payload := strings.NewReader("{\n \"signingRequestUuid\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-mtoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.mpcvault.com/v1/resimulation")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"signingRequestUuid\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.mpcvault.com/v1/resimulation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-mtoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"signingRequestUuid\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "simulation": "aSDinaTvuI8gbWludGxpZnk=",
  "error": {
    "message": "<string>"
  }
}
Re-simulates a signing request to get updated results (e.g. gas, success/failure). Useful before executing if conditions have changed since the request was created.

Authorizations

x-mtoken
string
header
required

Your API token. Required for all API requests.

Body

application/json
signingRequestUuid
string

required:true symbol_value:"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a" comment:signing_request_uuid is the UUID of the signing request to be simulated.

Response

200 - application/json

Success

simulation
string<byte>

required:true symbol_value:"eyJtZXNzYWdlcyI6W3siYWRkcmVzcyI6IkVRRC1IR09CYlh4dzNQWWQ4SzM5TXN3SlZYN1lvb19oM1FTRWl1cFdFUXA2dWlOVSIsImFtb3VudCI6IjE5MDAwMDAwMCIsInBheWxvYWQiOiJ0ZTZjY2tFQkFnRUFwZ0FCckErS2ZxVUFBQUJUVVpIL0ZpQStpQUR2TzVrQ29uR3lvQnlKT0tVanorSk9jWVI2cnJhbUlBQWUxRXAzckE1d25RQWhCUlhOT04yMUFHa1NqN0hVaUJ5N0F2UHBwYmVialh2NWl0Z1h3VnpzSE1nTzVyS0JBUUNWSlpPRllZQUNLaGFqRmt4TldxTVRQekVRL3hCSmJnREtpc2lyNy94UUorQWswelNBdytZRWllc0FJUVVWelRqZHRRQnBFbyt4MUlnY3V3THo2YVczbTQxNytZcllGOEZjN0J6UUZKNjVtZz09In1dLCJ2YWxpZF91bnRpbCI6MTcyMjQ3NzQ3MDU4MiwiZnJvbSI6IjA6eDg0MTQ1NzM0RTM3NkQ0MDFBNDRBM0VDNzUyMjA3MkVDMEJDRkE2OTZERTZFMzVFRkU2MkI2MDVGMDU3M0IwNzMiLCJuZXR3b3JrIjoiLTIzOSJ9" comment:simulation is the simulation of the signing request.

error
execute_signing_requests_error_code · object