Figured out why that error occurs. Its because it wants the private key to be in a plain text format. If we give the json (encrypted), it cannot create the transaction in the required format and then .split() fails.
Figured out why that error occurs. Its because it wants the private key to be in a plain text format. If we give the json (encrypted), it cannot create the transaction in the required format and then .split() fails.