getJoint(s)

Request data of a specific unit(s)

Spec

getJoint(unit: string);
getJoints(units: string[]);

Example

await Client.getJoint('ofcDRw4QwqbhfBw81jJES+dIZaS8ztA1M9VxR4cWbCg=');
await Client.getJoints(['ofcDRw4QwqbhfBw81jJES+dIZaS8ztA1M9VxR4cWbCg=']);

Response getJoint

{
  "unit": {
    "version": "3.0t",
    "alt": "2",
    "messages": [
      {
        "app": "data",
        "payload_location": "inline",
        "payload_hash": "o5JptRYBqJVZkATd1X50GuTg3UeEFPbk0Uxk8OvUtBQ=",
        "payload": {
          "asset": "0SzqnsanCrfIbDq5lIzd1i3P8SY260x14P8Io4O+t/k="
        }
      },
      {
        "app": "payment",
        "payload_location": "inline",
        "payload_hash": "Z7G3Ts+rsQMx8E75DS3oacZtb9SSvTC+ZlHHWbG8+us=",
        "payload": {
          "inputs": [
            {
              "unit": "8a1byImND4WAEsVadqp9yRk20GlCjmWJ0z9JzFiYl/A=",
              "message_index": 1,
              "output_index": 1
            }
          ],
          "outputs": [
            {
              "address": "7VW3WKTRDRI7DE6345LEN23C3FDUOT7H",
              "amount": 100000000
            },
            {
              "address": "EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU",
              "amount": 669642665
            }
          ]
        }
      }
    ],
    "authors": [
      {
        "address": "EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU",
        "authentifiers": {
          "r": "D6sz0N+TaUrADvskvMh/FAJ45R8ybBFgUP4BJh7CYhNpoXMM+bAEr+aoYlmdngq24xxKxG4akPEaRrvb/S81sQ=="
        }
      }
    ],
    "parent_units": [
      "drkpsuhBVDjPRDOThoW1+ycUQ8b+nkZZE3Y+V1CjOIw="
    ],
    "last_ball": "Yx6/62g6LUH3JTx04vOByC1HYD9Gyf4Q/juQ2IoDCic=",
    "last_ball_unit": "zlZU3dg8jFqr1n/ChWY0te8Gv4Lgh5kCwpopNTbtqHo=",
    "timestamp": 1705521116,
    "witness_list_unit": "TvqutGPz3T4Cs6oiChxFlclY92M2MvCvfXR5/FETato=",
    "headers_commission": 452,
    "payload_commission": 452,
    "unit": "ofcDRw4QwqbhfBw81jJES+dIZaS8ztA1M9VxR4cWbCg=",
    "main_chain_index": 3344950
  },
  "ball": "GsZ7W+5lPvQMFAnAcnvfrS6pMz6CU+il7odht0lhKVY=",
  "skiplist_units": [
    "3bV8lMnIgVlGv9QvSUTig6RRxnQrh68I0AZ4Rx4dPZA="
  ]
}

Response getJoints

Last updated