Any wall section wider than 2 feet must have a receptacle.
Attic receptacle requirements.
Also it may not be as simple as stapling the wiring to the structural members.
Wall receptacles may be placed no farther than 12 feet apart on any wall surface.
If the attic space is smaller than these specs then an access hatch is not required.
Where gfcis are required gfci protection is required for 125 volt to 250 volt receptacles supplied by single phase branch circuits rated 150 volts or less to the ground.
This switch can control either a ceiling light a wall light or a receptacle for plugging in a lamp.
Minimum vertical height of 30 inches measured from the top of the ceiling framing members to the bottom of the roof framing members.
5 hollow spaces of walls ceilings and attics where such spaces are insulated by loose rolled or foamed inplace insulating material that envelops the conductors.
Gfci receptacles are required in bathrooms garages crawl spaces basements laundry rooms and areas where a water source is present.
Monday june 18 2018 the nec national electrical code specifies at 210 70 a 3 that any attics underfloor spaces utility rooms and basements have at least one lighting outlet but only where these spaces are used for storage or contain equipment requiring servicing.
The ceiling fixture must be controlled by a wall switch rather than a pull chain.
The receptacle outlet shall not be connected to the load side of the equipment disconnecting means.
The receptacle shall be located on the same level and within 7 5 m 25 ft of the heating air conditioning and refrigeration equipment.
Concealed knob and tube wiring shall not be used in the following.
Receptacle outlets shall be installed as specified in sections 210 52 through 210 64.
As noted in sec.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
The following links will assist you with your electrical question.
Nec 2008 394 12 uses not permitted.