I’m trying to build in python a transaction payload with native token but i’m keep getting errors on the structure. can someone help me understand what i’m doing wrong?
This is the output:
{
0: [[b'\x8f\xbb\xc8\xba\x1f]\xf1#\x83\xb07x\x8e\xc4K\xee\xcaSE\xe50\xa1C\x80l\t\xe6\xf1\x15C\\|', 1]],
1: [
# First output
[
# Address
b'\x00\x00\xc6NF\x16N\x98\x17\x1cFi\x9a\xf3\xbd8\xbd\xd1k\xc2O\xe7;\xc7\nI\xf7\x80~\x99\x06#Qe\xdfZN\xb1\xfd\x08[\xa63\x8f\xdd\tl\x17\xe3\x0fJ&\xe74\x1b\x99\x12',
# Value as a flat list, not nested
['lovelace', 1000000,
'0254a6ffa78edb03ea8933dbd4ca078758dbfc0fc6bb0d28b7a9c89f', '4c454e4649', 1]
],
# Second output
[
# Address
b'\x00\xf7Q\xdb\xdd\xee\xeb=*\xa2\x00\xb0<\xf3\xa6\x0e\xdf\xae\xa5E\xba&7\xc0\'\xa7\x93dV\xb4\xf8\xc5_\xed;\xb8`@c2\x97\x01\xaf;\\\xc2\x14\xb6\xe4[w+\xe3\xc8dVT',
# Value as a flat list
['lovelace', 448526931,
'0254a6ffa78edb03ea8933dbd4ca078758dbfc0fc6bb0d28b7a9c89f', '4c454e4649', 199999999]
]
],
2: 300000
}
This is the error:
{
"contents": {
"contents": [
"DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 102 \"expected word\")",
"DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 102 \"expected word\")",
"DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 103 \"Size mismatch when decoding Record RecD.\nExpected 5, but found 2.\")",
"DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding Record RecD.\nExpected 3, but found 4.\")",
"DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding Record RecD.\nExpected 3, but found 4.\")",
"DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding Record RecD.\nExpected 3, but found 4.\")"
],
"tag": "TxCmdTxReadError"
},
"tag": "TxSubmitFail"
}