algosdk.error.AlgodHTTPError: msgpack decode error [pos 86]: cannot decode unsigned integer: unrecognized descriptor byte: cb/float with Python

This is my code to transfer funds,

def create_transaction():

    #params = algod_client.suggested_params()

    form = TransferForm(request.form)

    if request.method == 'POST' and form.validate():

        sender =

        receiver =

        amount = int(

    # Debugging

        params = algod_client.suggested_params()

        params.flat_fee = True

        params.fee = 0.001

        print(params, params.fee)

        unsigned_txn = PaymentTxn(sender, params, receiver, amount, None)


        #return unsigned_txn

    # End



            signed_txn = unsigned_txn.sign(mnemonic.to_private_key(session['passphrase']))

            # Commitprint(signed_txn)

        except WrongChecksumError:

            return {"passphrase": "Checksum error"}

        except ValueError:

            return {"passphrase": "unknown word in the passphrase"}

        except WrongMnemonicLengthError:

            return {"passphrase": "Incorrect size of the passprase"}


        transaction_id = algod_client.send_transaction(signed_txn)


Please help me to solve the below error.

The fee here should be 1000. All amounts should be integers including for fees.

1000 here is in microalgos and is equivalent to 0.001A

1 Like