Skip to content

Verification

reviewed: 28 March 2024

Nota bene

All requests should be sent via POST method to https://pheix.org/api endpoint.


Decode hex input data

Transaction 0x02ab0e18b9...216fea95b2 is considered in the example below.

Request

{
  "credentials": {
    "token": "0x95c27722267bc8f668a84688374dc8feb53af09e564b43598df3390881c89f3d"
  },
  "method": "GET",
  "route": "/api/ethelia/transaction/decode",
  "payload": {
    "function": "set",
    "inputdata": "0xf609bacf00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000065e9743700000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000010457874656e73696f6e457468656c69610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a9425a6836314159265359f8924c7700000b1f8040067ff23bbfbff03ffffff430015333661aa9e4264da3518268c83469e49a69a06834d3268229a7a468ca30d4cd20d32340c4d311a34000625348d08d1e9b51934269a66819469843d4343d437516307829ceeb90d35dc1f9823adbe0febfa88234b638ab017828b60b172e555ad8c764a55208f4911c58af8b2cd4daaf6a231a2dc0b815fd8678552ae93894d1b893b8a4d1d360402452445219b43e0f8e728223e8c64b5f665e30bf26115b6af0cab5abf0321db2527884121385d61c3638689bd1deb08394448730f6a3f8e79e6881d11a62acd874ae47d923dbda00b3abf09982e628a448bd72f7ae319328e4da458081243839303f3da599308b552cc52a2ea1482475e67ead0dec8fdc5838370f2c3808eb461bd0125256689f6bb520d0c776f7e69ce0782c4c1a04dde2996ec004002108b11358299aae40a315da1b6eae5546be7b801279da18c5683346c0bf74fc21c4b234151422199e5bb3839ced6a537b7c8166233df3d46cc495d300ac59b5aafc154112ae3cda2c5a81d7c3b36e8dc6aa58ea5f2dd4a3f8bb9229c28487c49263b80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008430783133444642434642383744414444414131443944434237433931354336413039323837453330393741304232424441433232424345354631463636313436314435354231323641333432383842323533303232324433414643464539323937423236374645344444394638303334324446393839333132413739464530363043303100000000000000000000000000000000000000000000000000000000"
  }
}

Arguments:

  1. token — current access token;
  2. method — API transport method/direction, only GET value is supported;
  3. route — API data decoding route: /api/ethelia/transaction/decode;
  4. payload.functionsmart contract function name: set or insert are supported;
  5. payload.inputdata — hexadecimal function call data of transaction.

Response

TOKEN="0xdc254f53137c0e774681ab3ea48bfa5aa67e6d8f676ec9a13e5d528581407ff8" && \
HEXDATA="0xf609bacf00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000065e9743700000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000010457874656e73696f6e457468656c69610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a9425a6836314159265359f8924c7700000b1f8040067ff23bbfbff03ffffff430015333661aa9e4264da3518268c83469e49a69a06834d3268229a7a468ca30d4cd20d32340c4d311a34000625348d08d1e9b51934269a66819469843d4343d437516307829ceeb90d35dc1f9823adbe0febfa88234b638ab017828b60b172e555ad8c764a55208f4911c58af8b2cd4daaf6a231a2dc0b815fd8678552ae93894d1b893b8a4d1d360402452445219b43e0f8e728223e8c64b5f665e30bf26115b6af0cab5abf0321db2527884121385d61c3638689bd1deb08394448730f6a3f8e79e6881d11a62acd874ae47d923dbda00b3abf09982e628a448bd72f7ae319328e4da458081243839303f3da599308b552cc52a2ea1482475e67ead0dec8fdc5838370f2c3808eb461bd0125256689f6bb520d0c776f7e69ce0782c4c1a04dde2996ec004002108b11358299aae40a315da1b6eae5546be7b801279da18c5683346c0bf74fc21c4b234151422199e5bb3839ced6a537b7c8166233df3d46cc495d300ac59b5aafc154112ae3cda2c5a81d7c3b36e8dc6aa58ea5f2dd4a3f8bb9229c28487c49263b80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008430783133444642434642383744414444414131443944434237433931354336413039323837453330393741304232424441433232424345354631463636313436314435354231323641333432383842323533303232324433414643464539323937423236374645344444394638303334324446393839333132413739464530363043303100000000000000000000000000000000000000000000000000000000" && \
curl -X POST https://pheix.org/api \
     -H 'Content-Type: application/json' \
     -d '{"credentials":{"token":"'$TOKEN'"},"method":"GET","route":"/api/ethelia/transaction/decode","payload":{"function":"set","inputdata":"'$HEXDATA'"}}'
{
  "content": {
    "component_render": "0.236361775",
    "tparams": {
      "transaction": {
        "comp": {
          "reference": 1,
          "type": "bool"
        },
        "rowdata": {
          "filechain": "1709798455|0xb33d4cffe2e98ede2b5d31578ba2e84f522d9381|iqair-1711634462|Thu, 28 Mar 2024 14:06:30 GMT|ewogICJkZXRhaWxzIjogImF1dG9tYXRlZCIsCiAgImVucmljaG1lbnQiOiB7CiAgICAidGl0bGUiOiAiYy9tIEtvay1KYXIiLAogICAgInBvc2l0aW9uIjogewogICAgICAibG5nIjogIjc0LjYzNzQ5OTMiLAogICAgICAibGF0IjogIjQyLjg0NTcyNjgiCiAgICB9CiAgfSwKICAic2Vuc29ydmFsdWUiOiA3NCwKICAiZGV2aWNlIjogIkFsYS1BcmNoYSBMaW51eCIsCiAgIm5vdGlmaWNhdGlvbiI6ICJJUWFpciBub3RpZmljYXRpb25zIiwKICAiYXBwbGljYXRpb24iOiAiY3JvbnRhYiIsCiAgInNlbnNvcmRldmljZSI6ICJJUWFpciIKfQ==|cmKokJar|1",
          "hexdata": "0x425A6836314159265359F8924C7700000B1F8040067FF23BBFBFF03FFFFFF430015333661AA9E4264DA3518268C83469E49A69A06834D3268229A7A468CA30D4CD20D32340C4D311A34000625348D08D1E9B51934269A66819469843D4343D437516307829CEEB90D35DC1F9823ADBE0FEBFA88234B638AB017828B60B172E555AD8C764A55208F4911C58AF8B2CD4DAAF6A231A2DC0B815FD8678552AE93894D1B893B8A4D1D360402452445219B43E0F8E728223E8C64B5F665E30BF26115B6AF0CAB5ABF0321DB2527884121385D61C3638689BD1DEB08394448730F6A3F8E79E6881D11A62ACD874AE47D923DBDA00B3ABF09982E628A448BD72F7AE319328E4DA458081243839303F3DA599308B552CC52A2EA1482475E67EAD0DEC8FDC5838370F2C3808EB461BD0125256689F6BB520D0C776F7E69CE0782C4C1A04DDE2996EC004002108B11358299AAE40A315DA1B6EAE5546BE7B801279DA18C5683346C0BF74FC21C4B234151422199E5BB3839CED6A537B7C8166233DF3D46CC495D300AC59B5AAFC154112AE3CDA2C5A81D7C3B36E8DC6AA58EA5F2DD4A3F8BB9229C28487C49263B8",
          "length": 425,
          "payload": {
            "application": "crontab",
            "details": "automated",
            "device": "Ala-Archa Linux",
            "enrichment": {
              "position": {
                "lat": "42.8457268",
                "lng": "74.6374993"
              },
              "title": "c/m Kok-Jar"
            },
            "notification": "IQair notifications",
            "sensordevice": "IQair",
            "sensorvalue": 74
          },
          "reference": 224,
          "type": "bytes"
        },
        "rowid": {
          "reference": 1709798455,
          "type": "uint256"
        },
        "signature": {
          "hexdata": "0x307831334446424346423837444144444141314439444342374339313543364130393238374533303937413042324244414332324243453546314636363134363144353542313236413334323838423235333032323244334146434645393239374232363746453444443946383033343244463938393331324137394645303630433031",
          "length": 132,
          "reference": 704,
          "type": "string"
        },
        "tabname": {
          "hexdata": "0x457874656E73696F6E457468656C6961",
          "length": 16,
          "reference": 160,
          "type": "string"
        }
      }
    }
  },
  "msg": "/api/ethelia/transaction/decode fetch is successful",
  "render": "0.237108828",
  "status": 1
}

Explanation of content.tparams.transaction key-value pairs:

  1. comp — data compression flag;
  2. rowdata.filechain — decompressed data;
  3. rowdata.hexdata — data as it is;
  4. rowdata.payload — parsed data in JSON;
  5. tabname — table name in database on blockchain;
  6. rowid — data identifier in table;
  7. signature — data signature;