Build chained

Build a chain of transactions

post
Bodyone of[]
itemsone ofOptional
or
or
Responses
200
Ok
application/json
post
POST /transactions/build-chained HTTP/1.1
Host: alephium.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 394

[
  {
    "type": "Transfer",
    "value": {
      "fromPublicKey": "d1b70d2226308b46da297486adb6b4f1a8c1842cb159ac5ec04f384fe2d6f5da28",
      "destinations": [
        {
          "address": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y",
          "attoAlphAmount": "2000000000000000000"
        }
      ]
    }
  },
  {
    "type": "ExecuteScript",
    "value": {
      "fromPublicKey": "d1b70d2226308b46da297486adb6b4f1a8c1842cb159ac5ec04f384fe2d6f5da28",
      "bytecode": "35d1b2a520a0da34c5eb8d712aa9cc"
    }
  }
]
[
  {
    "type": "Transfer",
    "value": {
      "unsignedTx": "35d1b2a520a0da34c5eb8d712aa9cc",
      "gasAmount": 20000,
      "gasPrice": "100000000000",
      "txId": "503bfb16230888af4924aa8f8250d7d348b862e267d75d3147f1998050b6da69",
      "fromGroup": 1,
      "toGroup": 2
    }
  },
  {
    "type": "ExecuteScript",
    "value": {
      "fromGroup": 2,
      "toGroup": 2,
      "unsignedTx": "35d1b2a520a0da34c5eb8d712aa9cc",
      "gasAmount": 20000,
      "gasPrice": "100000000000",
      "txId": "503bfb16230888af4924aa8f8250d7d348b862e267d75d3147f1998050b6da69",
      "simulatedOutputs": [
        {
          "type": "AssetOutput",
          "hint": 1,
          "key": "798e9e137aec7c2d59d9655b4ffa640f301f628bf7c365083bb255f6aa5f89ef",
          "attoAlphAmount": "2000000000000000000",
          "address": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y",
          "tokens": [
            {
              "id": "2d11fd6c12435ffb07aaed4d190a505b621b927a5f6e51b61ce0ebe186397bdd",
              "amount": "42000000000000000000"
            },
            {
              "id": "bd165d20bd063c7a023d22232a1e75bf46e904067f92b49323fe89fa0fd586bf",
              "amount": "1000000000000000000000"
            }
          ],
          "lockTime": 1611041396892,
          "message": "798e9e137aec7c2d59d9655b4ffa640f301f628bf7c365083bb255f6aa5f89ef"
        }
      ]
    }
  }
]