Preprocess

Preprocess a set of operations for construction

post

Provides any additional metadata required for transaction construction based on the requested operations.

Body
Responses
200
Preprocess output
application/json
post
POST /v1/<YOUR_API_KEY_HERE>/construction/preprocess HTTP/1.1
Host: icp-mainnet.icp.validationcloud.io
Content-Type: application/json
Accept: */*
Content-Length: 767

{
  "network_identifier": {
    "blockchain": "Internet Computer",
    "network": "00000000000000020101",
    "sub_network_identifier": {
      "network": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  },
  "operations": [
    {
      "operation_identifier": {
        "index": 1,
        "network_index": 1
      },
      "related_operations": [
        {
          "index": 1,
          "network_index": 1
        }
      ],
      "type": "text",
      "status": "text",
      "account": {
        "address": "text",
        "sub_account": {
          "address": "text",
          "metadata": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          }
        },
        "metadata": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      },
      "amount": {
        "value": "text",
        "currency": {
          "symbol": "text",
          "decimals": 1,
          "metadata": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          }
        },
        "metadata": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      },
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  ],
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "options": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "required_public_keys": [
    {
      "address": "text",
      "sub_account": {
        "address": "text",
        "metadata": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      },
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  ]
}

Was this helpful?