1

ConseilJS seems not support parameter type List Signature, see at https://github.com/Cryptonomic/ConseilJS/issues/261.

So I want to encode my parameter to JSON code that I can change parameterType from conseilJS.TezosParameterFormat.Michelson to conseilJS.TezosParameterFormat.Micheline. But I don't know how to encode my parameter to tezos required JSON.

1 Answer 1

0
  "prim": "Pair",
  "args": [
    {
      "prim": "Pair",
      "args": [
        {
          "prim": "Pair",
          "args": [
            {
              "int": "1200000"
            },
            [
              {
                "string": "edsigteSbYS1LWAJue2RhoczKG8C48imf8Nag1bxrifqr1yAteYencA6BfwMgud1A8Z76iG2YSqQxMUXiXXMCNtNkYQvRzzsSFV"
              },
              {
                "string": "edsigtrVeUQqMs9Uw8QuwNHJb37yKZA1BsnwtRxbyXF7KAQzf3CbrCuXbgLpG1pbZzeK7HTrPTPhfe3pKUGoDkAo7Aczd6GKCwX"
              }
            ]
          ]
        },
        {
          "string": "tz1WfxXzNgcsMrQBV6YHChmyQgNVvfo44ihi"
        }
      ]
    },
    {
      "string": "123123123"
    }
  ]
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.