Decode unsigned tx

Decode an unsigned transaction

post
Body
unsignedTxstringRequired
Responses
200
Ok
application/json
post
POST /transactions/decode-unsigned-tx HTTP/1.1
Host: alephium.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "unsignedTx": "35d1b2a520a0da34c5eb8d712aa9cc"
}
{
  "fromGroup": 1,
  "toGroup": 2,
  "unsignedTx": {
    "txId": "503bfb16230888af4924aa8f8250d7d348b862e267d75d3147f1998050b6da69",
    "version": 1,
    "networkId": 1,
    "gasAmount": 20000,
    "gasPrice": "100000000000",
    "inputs": [
      {
        "outputRef": {
          "hint": 23412,
          "key": "798e9e137aec7c2d59d9655b4ffa640f301f628bf7c365083bb255f6aa5f89ef"
        },
        "unlockScript": "00d1b70d2226308b46da297486adb6b4f1a8c1842cb159ac5ec04f384fe2d6f5da28"
      }
    ],
    "fixedOutputs": [
      {
        "hint": 1,
        "key": "798e9e137aec7c2d59d9655b4ffa640f301f628bf7c365083bb255f6aa5f89ef",
        "attoAlphAmount": "2000000000000000000",
        "address": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y",
        "tokens": [
          {
            "id": "2d11fd6c12435ffb07aaed4d190a505b621b927a5f6e51b61ce0ebe186397bdd",
            "amount": "42000000000000000000"
          },
          {
            "id": "bd165d20bd063c7a023d22232a1e75bf46e904067f92b49323fe89fa0fd586bf",
            "amount": "1000000000000000000000"
          }
        ],
        "lockTime": 1611041396892,
        "message": "798e9e137aec7c2d59d9655b4ffa640f301f628bf7c365083bb255f6aa5f89ef"
      }
    ]
  }
}