Question: how to transfer esim to new iphone?
Answer: On your new iPhone, open Settings > Cellular > Add Cellular Plan.
If your eSIM plan is listed, tap Add Cellular Plan at the bottom of the screen. ... 
Look on your previous iPhone for a message asking if you want to transfer your eSIM phone number to your new phone.