I am trying to call a smart contract via RPC, but keep getting this error:
"Failed to parse the request body: No case matched:\n At /kind, unexpected string instead of endorsement\n At /kind, unexpected string instead of seed_nonce_revelation\n At /kind, unexpected string instead of double_endorsement_evidence\n At /kind, unexpected string instead of double_baking_evidence\n At /kind, unexpected string instead of activate_account\n At /kind, unexpected string instead of proposals\n At /kind, unexpected string instead of ballot\n At /kind, unexpected string instead of reveal\n At /parameters, missing object field entrypoint\n At /kind, unexpected string instead of origination\n At /kind, unexpected string instead of delegation"
This is what I am sending:
{
"branch": "BLJWtitW4vnxKaLSyVB4Naybp112MWc3hwifosU8FhzRAh6LcT8",
"contents": [
{
"source": "tz1S8g2w1YCzFwueTNweWPnA852mgCeXpsEu",
"public_key": "edpkuvD4ebMTaVm7qqKUrh8mJXZGe5TyJNjWNFpSwdM1dLPDsM3wV4",
"storage_limit": "0000000",
"gas_limit": "0010000",
"fee": "0001272",
"kind": "reveal",
"counter": "663191"
},
{
"amount": "0000000",
"source": "tz1S8g2w1YCzFwueTNweWPnA852mgCeXpsEu",
"destination": "KT1BgA1y2Epm3qDh1HDf2mzjaiAx5hrNngcE",
"storage_limit": "0000257",
"gas_limit": "0010100",
"fee": "0001272",
"kind": "transaction",
"counter": "663192",
"parameters": {
"string": "votes"
}
}
]
}
The call is expecting an input of string, you can check out the contract at KT1BgA1y2Epm3qDh1HDf2mzjaiAx5hrNngcE
on Zeronet.
Would you happen to know what parameters are wrong/missing or some reference that I can compare my call to?
Thanks in advance.