Tagged Data

Detect Mime Type

Gets the mime type of uploaded file or data.

Method: POST

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

Example body (x-www-form-urlencoded)

requestType = detectMimeType
data = /9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRo...
isText = false

Example response: 200

{
    "errorDescription": "Invalid hex number: /9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRo...",
    "errorCode": 4,
    "error": "java.lang.NumberFormatException: Invalid hex number: /9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRo..."
}

Download Tagged Data

Download tagged data as a file if it is still available.

Method: GET

https://ardr.nownodes.io/nxt?requestType=downloadTaggedData&chain=2&transactionFullHash=380760822f5cc9bc184b9c3136d42da0aa1d1e697798b3e296cf3c8039827df7

Example response: 200

{
    "errorDescription": "Incorrect \"transaction\" Tagged data not found",
    "errorCode": 4
}

Get Account Tagged Data

Get all available tagged data uploaded by a given account in reverse chronological order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAccountTaggedData&chain=2&account=ARDOR-4VDY-LNVT-LMAY-FMCKA&lastIndex=0

Example response: 200

{
    "data": [],
    "requestProcessingTime": 0
}

Get All Tagged Data

Get all available tagged data in reverse chronological order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAllTaggedData&chain=2&lastIndex=0

Example response: 200

{
    "data": [
        {
            "channel": "contracts",
            "description": "{}",
            "transactionFullHash": "be208706bfa3c074ddcda31506fd6884af6da48b3d0453dba9eb0bc923e77fdf",
            "type": "application/java-archive",
            "parsedTags": [],
            "transactionTimestamp": 196182899,
            "tags": "",
            "filename": "SellMachineGiftzAsset.jar",
            "accountRS": "ARDOR-ARQZ-MDV2-EX9E-4NEGZ",
            "name": "com.tarasca.ardor.contracts.SellMachineGiftzAsset",
            "blockTimestamp": 196182911,
            "account": "3438943183747440351",
            "isText": false
        }
    ],
    "requestProcessingTime": 26
}

Get Channel Tagged Data

Get available tagged data by channel, optionally filtered by account, in reverse chronological order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getChannelTaggedData&chain=2&channel=video&lastIndex=0

Example response: 200

{
    "data": [],
    "requestProcessingTime": 0
}

Get Data Tag Count

Get the total number of distinct available data tags.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getDataTagCount&chain=2

Example response: 200

{
    "numberOfDataTags": 5,
    "requestProcessingTime": 0
}

Get Data Tags

Get the distinct tags of all available tagged data, with the number of uses of each tag, in order of number of uses, then alphabetical order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getDataTags&chain=2

Example response: 200

{
    "requestProcessingTime": 0,
    "tags": [
        {
            "count": 33,
            "tag": "art"
        },
        {
            "count": 1,
            "tag": "artworks"
        },
        {
            "count": 1,
            "tag": "copyright"
        },
        {
            "count": 1,
            "tag": "nft"
        },
        {
            "count": 1,
            "tag": "tarasca"
        }
    ]
}

Get Data Tags Like

Prefix search of available data tags, return in alphabetical order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getDataTagsLike&chain=2&tagPrefix=con

Example response: 200

{
    "requestProcessingTime": 4,
    "tags": []
}

Get Tagged Data

Get available tagged data given a transaction full hash.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getTaggedData&transactionFullHash=380760822f5cc9bc184b9c3136d42da0aa1d1e697798b3e296cf3c8039827df7&chain=2

Example response: 200

{}

Search Tagged Data

Full text search on available tagged data name, description and tags; optionally filtered by tag, channel or uploading account; return in reverse relevance order.

Method: GET

https://ardr.nownodes.io/nxt?requestType=searchTaggedData&chain=2&query=contrac?&lastIndex=0

Example response: 200

{
    "data": [],
    "requestProcessingTime": 17
}

Upload Tagged Data

Upload and broadcast new tagged data.

Method: POST

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

Example body (x-www-form-urlencoded)

requestType = uploadTaggedData
chain = 2
name = Stargate SG1 full series
description = Hash of the torrent.
tags = video, scifi, torrent
channel = torrent
data = d4f167249340d6d746f49441b8ccdb1bd3521feb
secretPhrase = xxx
feeNQT = 100000000
deadline = 60

Example response: 200

{
    "errorDescription": "Unknown account",
    "errorCode": 5
}

Verify Tagged Data

Verify expired tagged data downloaded from another node, against the hash in the blockchain.

Method: GET

https://ardr.nownodes.io/nxt?requestType=verifyTaggedData&chain=2&transactionFullHash=95abb707e526cd14d01e5c41f62effa78a90a7b3887e1c5521309a7698ea4af7&data=d4f167249340d6d746f49441b8ccdb1bd3521feb&name=Stargate SG1 full series&description=Hash of the torrent.&tags=video, scifi, torrent&channel=torrent

Example response: 200

{
    "errorDescription": "Unknown transaction",
    "errorCode": 5
}

Last updated