The invention relates to a cross-block chain
interaction method based on a
relay chain, and belongs to the field of inter-block chain communication, the cross-block chain
interaction method comprises matching transaction by using a transaction matching
algorithm,
relay chain coordination transaction and sub-mark
smart contract verification transaction, and the method specifically comprises the following steps: S1, a user joins in the
relay chain; s2, a relay chain user submits a transaction demand, the transaction demand is packaged and stored in a block on the relay chain, the user carries out matching through a transaction matching
algorithm, when cross-chain transactions are successfully matched, a mark
smart contract for coordinating the cross-chain transaction is generated on the relay chain, the contract generates a unique ID for identifying the cross-chain transaction, and when the cross-chain transactions are successfully matched, the mark
smart contract is used for coordinating the cross-chain transaction; the matching information is sent to the user successfully matched this time; s3, after matching succeeds, entering a
preparation stage, and making preparation for the following actual cross-chain behavior by the relay chain and the block chain which specifically participates in cross-chain; s4, after all preparatory work is completed, entering a coordination stage; the coordination stage is a specific execution process of the cross-chain transaction.