Accessing networks and smart contracts
Now that our application has connected to a gateway, it's time to start interacting with smart contracts in the available networks. Let's look at an expanded scenario for Pedro, whose organization has access to multiple networks:
Figure 7.9: A gateway provides access to multiple network channels and smart contracts
In Figure 7.9, we can see that Pedro has two applications that he's using—a registration
application, and a trading
application. We can see three network channels to which these applications are connected, the Vehicle registration network, the Car trading network, and the Insurance network.
Figure 7.9 also shows how only certain peers are connected to certain networks, and that only certain smart contracts are available on certain peers. As we saw in earlier chapters, this helps management and scalability. For example, Peer1
must be used for vehicle-registration
access, but it can also be used...