-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse signed transaction error #525
Comments
same here, I use wallet-core library to sign the transaction and broadcast it using rosseta |
Hi bro, are you solve it ? |
Rosetta expects a specific format, for that reason it’s advised to go through the entire process using Rosetta (query, construct , sign, submit). Do you use any of the above functionalities of Rosetta? If not, you might as well submit it by connection a submit-api to your node socket, Of course, you can reverse engineer the Rosetta format, you’ll you have to wrap your CBOR in the Rosetta JSON envelope and then CBOR encode it again. @Kartiiyer12 @linconvidal I believe we have examples of this somewhere? |
It would be easier to build submit api within the cardano-rosetta image and use that to submit transactions. To add submit api within the existing Dockerfile -
|
Thanks for the replies guys, I'm using the cardano-rosetta api for the whole process, and after much exploration I realized that it's the signing that's the problem. |
Good to hear! Let us know how to help! btw, if you are working with an exchange with can also support you directly through a dedicated channel. Let me know if that’s useful to you! |
I am a exchange wallet devloper, our product need support cardano chain. |
hello @zhanghuize-git can you reach out to [email protected] ? We're happy to set up a dedicated channel to smoothen the support with your team. |
Ask a question
I use the serialization library to sign a transaction, and then use the construction/submit endpoint of rosetta-api to broadcast the hex signature data, but it returns "Parse signed transaction error"
eg:
// build tx
const txBody = txBuilder.build();
const txHash = CardanoWasm.hash_transaction(txBody);
const transaction = CardanoWasm.Transaction.new(txBody, witnesses, undefined);
const txHex = Buffer.from(transaction.to_bytes()).toString("hex");
// send txHex
curl -X POST 'localhost:8888/construction/submit'
-H "Content-Type: application/json"
-d '{"network_identifier": {"blockchain": "cardano","network": "mainnet"},"signed_transaction": txHex}'
return:
{
"code": 5003,
"message": "Parse signed transaction error",
"retriable": false
}
What's the problem ? Does Rosetta not support transactions signed with serialization libraries?
The text was updated successfully, but these errors were encountered: