Executing transaction in block chain system comprises using transaction contract and interface function for confirming variable existence and executing interface function and contract according to preset existence of variable