Fuel pump connects to circuit opening relay.
Positive coming out of efi main relay goes to +B , +B1 of ecu and circuit opening relay.
To make it easy, in 4 pin relay. (For fuel pump)
There are 2 coil pins, 1 common and 1 normally open.
1 coil pin (+) and common pin of relay goes to the wire coming out of efi main relay other coil pin (-) goes to FC pin of ecu.
Last pin which is normally open of relay goes to fuel pump.
In toyota fuel pump will not turn on until you crank the engine. While it stays on for 2 seconds and turns off if engine doesn't start.