Developer Questions
Issue with CreateAMM transaction
8 days ago by Wazen SHBAIR
I am trying to create and sign CreateAMM transaction but keeps get this error:
Error: Payload encoding error: Can not construct UInt16 with given value
This is the payload I send to sign via Xaman wallet
{
txjson: {
TransactionType: 'AMMCreate',
Account: 'r4HSNew6ftswsRzw8Xbx8iqYWeysTrXEPW',
Amount: '1000000',
Amount2: {
currency: 'USDG',
issuer: 'ra3KftDZoSykPMVdmj1fHFcXMes19TVDw8',
value: '1'
},
TradingFee: '400',
Fee: '2000000'
}
}