Skip to main content
POST
https://api.mpcvault.com
/
v1
/
resimulation
curl -X POST https://api.mpcvault.com/v1/resimulation \
  -H "Content-Type: application/json" \
  -H "x-mtoken: YOUR_API_TOKEN" \
  -d '{
    "signingRequestUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }'
{
  "simulation": {
    "success": true,
    "gasEstimate": "21000",
    "balanceChanges": [
      {
        "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD58",
        "token": "ETH",
        "change": "-1000000000000000000"
      }
    ]
  }
}
Re-simulates a signing request to get updated transaction simulation results. This is useful for checking if a transaction will succeed before execution, especially if time has passed since the original request.

Headers

x-mtoken
string
required
Your API token

Body

signingRequestUuid
string
required
UUID of the signing request to simulate

Response

simulation
object
The simulation results containing predicted outcomes, gas estimates, and potential errors
error
object
Error details (if simulation failed)
curl -X POST https://api.mpcvault.com/v1/resimulation \
  -H "Content-Type: application/json" \
  -H "x-mtoken: YOUR_API_TOKEN" \
  -d '{
    "signingRequestUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }'
{
  "simulation": {
    "success": true,
    "gasEstimate": "21000",
    "balanceChanges": [
      {
        "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD58",
        "token": "ETH",
        "change": "-1000000000000000000"
      }
    ]
  }
}