Great thanks it worked.
Just another querry regarding ASA
Following is transfer of ASA `def transfertoken(sender,sender_private_key,purchaser_address,amt,asset_id):
transfer asset of 10 from account 1 to account 3
params = algod_client.suggested_params()
# comment these two lines if you want to use suggested params
params.fee = 1000
params.flat_fee = True
txn = AssetTransferTxn(
sender=sender,
sp=params,
receiver=purchaser_address,
amt=amt,
index=asset_id)
stxn = txn.sign(sender_private_key)
txid = algod_client.send_transaction(stxn)
# print(txid)
# Wait for the transaction to be confirmed
stxd = wait_for_confirmation(algod_client, txid)
# The balance should now be 10.
print_asset_holding(algod_client, purchaser_address, asset_id)
return txid,stxd`
Transfer for whole number works fine but for float it gives error
File "/home/ubuntu/.local/lib/python3.6/site-packages/algosdk/future/transaction.py", line 1323, in __init__
raise error.WrongAmountType
algosdk.error.WrongAmountType