Skip to content

userData in metadata is not recorded on http://coloredcoins.org/explorer/  #18

@Nd60

Description

@Nd60

I am using Colu SDK. It is basically the sample code for "Send Asset" in the Colu Engine Documentation. I am trying to modify the user metadata and send the asset.

var Colu = require('colu');
var assetId = 'Ua4VMXDsJ9bqyRty8zoNdiLS5rWfhDia8MK1hA'
var fromAddress = '18yQggmxK4wgVDvLgH5syf2DkaEQqfkoDh'
var settings = {
    network: "mainnet",
    privateKey: "thePrivateKey",
    apiKey: "myApiKey"
}

var colu = new Colu(settings)
var privateSeed = colu.hdwallet.getPrivateSeed()

colu.on('connect', function () {
    var toAddress = '1HoVgpcDVygbKRCrZ8kHNwmWyXM6H4X1Us';
    var args = {
        from: [fromAddress],
        to: [{
            address: toAddress,
            assetId: assetId,
            amount: 3
        }],
        metadata: {
            'userData': {
                'meta' : [
                    {
                "key":"assetName",
                "value":"Entrada para el partido",
                "type":"String"
            },{
                "key":"partido",
                "value":"Real Madrid - Rayo Vallecano",
                "type":"String"
            },{
                "key":"fecha",
                "value":"22 abril 2017",
                "type":"String"
            },{
                "key":"jornada",
                "value":33,
                "type":"Number"
            },{
                "key":"puerta",
                "value":"1",
                "type":"String"
            },{
                "key":"seccion",
                "value":"2",
                "type":"String"
            },{
                "key":"asiento",
                "value":"17",
                "type":"String"
            }]
            }
        }
    }

  colu.sendAsset(args, function (err, body) {
        if (err) return console.error(err)
        console.log("Body: ", body)
    })
})

colu.init()

However, when I check the Colu Dashboard or the coloredcoins Block Explorer, the new metadata does not show up: http://coloredcoins.org/explorer/asset/Ua4VMXDsJ9bqyRty8zoNdiLS5rWfhDia8MK1hA/a83184fadfd99468011faf86dea2b7885aaf6f39dba25fe9d6a7aea415ef3325/0

Why is this not working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions