With the development of the Internet of Things, trust has become a limited factor in the integration of heterogeneous IoT networks. In this regard, we use the combination of blockchain technology and SDN/NFV to build a heterogeneous IoT network resource management model based on the consortium chain. In order to solve the efficiency problem caused by the full amount of data on the chain, we deploy light nodes and full nodes for the consortium chain. At the same time, we use the idea of identification to realize the separation of identification and resource information, build the application mode of on-chain identification and off-chain information, and realize resources endogenous trust management. We also propose a practical Byzantine fault-tolerant consensus mechanism based on reputation value to save consensus costs and improve efficiency. Combined with artificial intelligence technology, we introduce deep reinforcement learning for service function chain orchestration, and design a service function chain orchestration algorithm based on Asynchronous Advantage Actor-Critic to optimize orchestration costs. The final simulation results show that the consensus algorithm and service function chain orchestration algorithm we designed have good performance in terms of cost saving and efficiency improvement.