If you are not using a portable inverter, then the dwelling and inverter should meet NEC for a normal home. The transfer switch is almost always at the main panel, not a sub. You need to explain that first.
To safely backfeed, your inverter must be wired like the house. In the US, gensets under 5kw usually have floating neutrals. That is to say both plug slots on the output outlet are hot, 60v and out of phase so if you connect both across a load it adds up to 120v. This is the safe way for portable gensets. Touching one wire won't kill you, you have to touch them both at the same time to complete a circuit. The shell of the genset is grounded to earth somewhere nearby, but does not have a connection to neutral except in case you are using a grounded appliance and it shorts out. The ground in this case carries the short to the earth and away from you. You cannot backfeed a house in the US with a floating neutral source like that because the neutral and ground are tied together at the panels and inside the outlets.
On the US grid (a normal home in suburbia) the pole outside runs one wire phase through a transformer to step it down. The transformer is center tapped and the center tap is the neutral. From one side of the transformer to the middle is 120v and the other side is also 120v. If you use both hot wires you get 240 split phase.
Local code determines where the copper spike in the earth ground(s) must be located. And those are never at a sub panel as far as I know.
I'm guessing the inverter won't run everything, that is why you are making the connection at a sub.