The invention discloses a medium and long term power transaction method and
system based on a
smart contract, and belongs to the field of
distributed power transaction, and the method comprises the steps: S1, a
power grid enterprise sets a
power transmission and distribution price, and uploads the
power transmission and distribution price to a block chain; S2, after the
electricity seller and the
electricity purchaser reach a transaction intention, an intelligent contract is called to obtain the
power transmission and distribution price from the block chain to draw up a medium and long term transaction contract and the transaction contract is stored to the block chain through the
smart contract; S3, the
power grid enterprise calls an intelligent contract to obtain a transaction contract from the block chain and performs
security check and when the
security check result is that the transaction is approved, contract signing succeeds; S4, the
power grid enterprise uploads the measured transaction electric quantity of the seller and the buyer to the block chain through the
smart contract for electric quantity settlement; and S5, the
electricity purchaser sends the settled transaction fee to the smart contract account so that the smart contract account can distribute the transaction fee, and contract execution is completed. According to the invention, the problems of low cross-department
data processing efficiency and difficulty in transaction information tracing and supervision in medium and long-term power transactions can be solved.