Cardano-submit-api

I have experience with the Cardano node, but I’m having trouble setting up a cardano-submit-api. I’ve read all of the documentation here: cardano-node/cardano-submit-api at master · input-output-hk/cardano-node · GitHub

When I try to use YJ I get this error.
$ cat tx-submit-mainnet-config.yaml | yj -jy > submit-api-config.yaml
Error parsing JSON: invalid character ‘#’ looking for beginning of value

I tried to work around this by using a different yaml to JSON converter, but then I get this error when running it against my network.

$ cardano-submit-api --config submit-api-config.yaml --socket-path /home/cardano/cnode/sockets/node.socket --port 8090 --mainnet
cardano-submit-api: FatalError {fatalErrorMessage = "readTxSubmitNodeConfig: Error parsing config: InvalidYaml (Just (YamlParseException {yamlProblem = "did not find expected “, yamlContext = “”, yamlProblemMark = YamlMark {yamlIndex = 2850, yamlLine = 126, yamlColumn = 1}}))”}

Any help would be appreciated.

NVM I kept tinkering and figured it out.

Hey I am having the same issue. What were you able to do to get it to work?

I deleted all the #notes and used an online yaml to JSON converter.

I used this site. I think its safe.

{
“EnableLogMetrics”: false,
“EnableLogging”: true,
“minSeverity”: “Info”,
“rotation”: {
“rpLogLimitBytes”: 5000000,
“rpKeepFilesNum”: 10,
“rpMaxAgeHours”: 24
},
“setupBackends”: [
“AggregationBK”,
“KatipBK”
],
“defaultBackends”: [
“KatipBK”
],
“setupScribes”: [
{
“scKind”: “StdoutSK”,
“scName”: “stdout”,
“scFormat”: “ScText”,
“scRotation”: null
}
],
“defaultScribes”: [
[
“StdoutSK”,
“stdout”
]
],
“options”: {
“cfokey”: {
“value”: “Release-1.0.0”
},
“mapSubtrace”: {
“benchmark”: {
“contents”: [
“GhcRtsStats”,
“MonotonicClock”
],
“subtrace”: “ObservableTrace”
},
#ekgview”: {
“contents”: [
[
{
“tag”: “Contains”,
“contents”: “cardano.epoch-validation.benchmark”
},
[
{
“tag”: “Contains”,
“contents”: “.monoclock.basic.”
}
]
],
[
{
“tag”: “Contains”,
“contents”: “cardano.epoch-validation.benchmark”
},
[
{
“tag”: “Contains”,
“contents”: “diff.RTS.cpuNs.timed.”
}
]
],
[
{
“tag”: “StartsWith”,
“contents”: “#ekgview.#aggregation.cardano.epoch-validation.benchmark”
},
[
{
“tag”: “Contains”,
“contents”: “diff.RTS.gcNum.timed.”
}
]
]
],
“subtrace”: “FilterTrace”
},
“cardano.epoch-validation.utxo-stats”: {
“subtrace”: “NoTrace”
},
#messagecounters.aggregation”: {
“subtrace”: “NoTrace”
},
#messagecounters.ekgview”: {
“subtrace”: “NoTrace”
},
#messagecounters.switchboard”: {
“subtrace”: “NoTrace”
},
#messagecounters.katip”: {
“subtrace”: “NoTrace”
},
#messagecounters.monitoring”: {
“subtrace”: “NoTrace”
},
“cardano.#messagecounters.aggregation”: {
“subtrace”: “NoTrace”
},
“cardano.#messagecounters.ekgview”: {
“subtrace”: “NoTrace”
},
“cardano.#messagecounters.switchboard”: {
“subtrace”: “NoTrace”
},
“cardano.#messagecounters.katip”: {
“subtrace”: “NoTrace”
},
“cardano.#messagecounters.monitoring”: {
“subtrace”: “NoTrace”
}
},
“mapBackends”: {
“cardano.epoch-validation.benchmark”: [
“AggregationBK”
],
#aggregation.cardano.epoch-validation.benchmark”: [
“EKGViewBK”
]
}
}
}