buildXY description

buildXY description
Builds a unit at the given x- and y-coordinates. If you don’t have enough gold, it will not build.

costOf description
Returns the gold cost for the given build or summon type.

My Question
What is the cost of the fence ?

Fences and Fire-traps don’t have a cost. They first item which costs something is the decoy.