Carbon trading is an important way to reduce greenhouse gas emission and develop a low-carbon economy. In the process of traditional carbon trading, there are mainly problems such as wide distribution of subjects, poor data interoperability and low efficiency. Taking the consortium blockchain with access mechanism as the infrastructure of carbon trading, the security and traceability of transaction data can be ensured. Therefore, a double auction transaction algorithm based on consortium blockchain was proposed, which was divided into two phases considering user satisfaction. In the first phase, the price ranges of quotation were proposed by all nodes, and the transactions were concluded immediately by the nodes meeting the conditions in this phase. Then, the remaining transaction nodes entered the second phase, where the transaction volume matching degree was calculated, and the overall user satisfaction was taken as the optimization goal, so that, the result with the maximum overall satisfaction was output. The proposed algorithm was compared with the Hungarian algorithm and the Gale-Shapley (GS) algorithm. Experimental results showed that the proposed algorithm improved user satisfaction, and the average matching time was reduced by 26.2% and 36.0%, respectively. With the HLF (HyperLedger Fabric) used to deploy a double auction algorithm smart contract to calculate and process user transaction requests automatically, and the transaction results recorded on the channel ledger of the consortium blockchain through consensus, the proposed algorithm can achieve stable transaction throughput under different block sizes and transaction requests.