Tokens

Decode File Token

Validate a file token without requiring the transmission of a secret passphrase.

Method: POST

https://ardr.nownodes.io/nxt?requestType=decodeFileToken

Example body (x-www-form-urlencoded)

requestType = decodeFileToken
token = omoihgb7dludrhljfabms8nqcse4lksmbhsnh80buoen0sj6fpfa4j3lljm0cu82quiktk1ipehcf0fgrk6g1vcjbso50eip66njsqq0s3ng4eghap75082dmenmmmuccesc0i0fdc0bd7g3l64h204fiqq8b7s1

Example response: 200


{
    "errorDescription": "Incorrect \"file\" cannot read file data",
    "errorCode": 4
}
```

Decode Token

Validate a token without requiring the transmission of a secret passphrase.

Method: GET

https://ardr.nownodes.io/nxt?requestType=decodeToken&website=test&token=omoihgb7dludrhljfabms8nqcse4lksmbhsnh80buoen0sj6fpeumj3ladjg0282m1pcfs3mhlhu7nlt1phnpjt29nllpvq1p2634m0tjg6gpueh6vfp26erhkjq52c1u4m3iqqrn8hk2lt5m01rrd8u1c1q00r4

Example response: 200

{
    "valid": true,
    "accountRS": "ARDOR-QBXE-E8V8-7975-HP7N4",
    "requestProcessingTime": 3,
    "account": "17388597592554416044",
    "timestamp": 41836011
}

Generate File Token

Generate a file token.

Method: POST

https://ardr.nownodes.io/nxt?requestType=decodeFileToken

Example body (x-www-form-urlencoded)

requestType = decodeFileToken
token = omoihgb7dludrhljfabms8nqcse4lksmbhsnh80buoen0sj6fpfa4j3lljm0cu82quiktk1ipehcf0fgrk6g1vcjbso50eip66njsqq0s3ng4eghap75082dmenmmmuccesc0i0fdc0bd7g3l64h204fiqq8b7s1

Example response: 200

{
    "errorDescription": "Incorrect \"file\" cannot read file data",
    "errorCode": 4
}

Generate Token

Generate a token.

Method: POST

https://ardr.nownodes.io/nxt?requestType=generateToken

Example body (x-www-form-urlencoded)

requestType = generateToken
secretPhrase = xxx
website = xxx

Example response: 200

{
    "valid": true,
    "accountRS": "ARDOR-LHBC-J6TQ-6N9X-5XCGQ",
    "requestProcessingTime": 3,
    "account": "4267544931404954922",
    "timestamp": 197552382,
    "token": "q9kfbdfqkhnmpq7l6utl36a3kmoradksi230bu367osndbklopkfsfop9bdhai8blu41q4ipl2cbjp7ing07fu8258vqcfsa12e20ta1idd0nh1v5r7943qg035mvn89oqf50v0pdggha4d2c2ur055d49gjlqjk"
}

Last updated