-
When registering a stake address on-chain, can you just provide the stake verification hash or is a script needed when creating the stake credentials and registration? Using the code in the sample.txt, I keep getting the following error from blockfrost: When the transaction is ran without the "certificates" it works without issue. "blockfrost.utils.ApiError: {'error': 'Bad Request', 'message': '"transaction read error RawCborDecodeError [DecoderErrorDeserialiseFailure \"Byron Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding TxAux.\\nExpected 2, but found 4.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 4, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 4, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 4, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 128 \"expected bytes\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 128 \"expected bytes\")]"', 'status_code': 400}" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
cardano cli uses the following format when creating a stake.cert file: { does pycardano do this in the certificate module? I looked in source and could not find it... |
Beta Was this translation helpful? Give feedback.
-
You can follow this example to create a stake registration: https://github.com/Python-Cardano/pycardano/blob/main/integration-test/test/test_certificate.py#L41-L44 |
Beta Was this translation helpful? Give feedback.
You can follow this example to create a stake registration: https://github.com/Python-Cardano/pycardano/blob/main/integration-test/test/test_certificate.py#L41-L44