Updated to not use deprecated API and added step to get transaction receipt for serverside validation