This example showcases how to interact with multiple contracts from a single frontend. Particularly, this example shows how to:Documentation Index
Fetch the complete documentation index at: https://docs.near.org/llms.txt
Use this file to discover all available pages before exploring further.
- Query data from multiple contracts.
- Call methods in multiple contracts simultaneously.
Query Data from Multiple Contracts
To query multiple contracts simply perform multipleview calls:
Dispatching Multiple Transactions
Thewallet object enables to dispatch multiple transactions simultaneously. However, please notice that the transactions execute independently.
Dispatching multiple transactions at once is just a nice way to improve UX, because the user interacts with the wallet only once.
In this example, the user signs two independent transactions:
- A transaction to call
set_greetingin our Hello NEAR example - A transaction to call
add_messagein our GuestBook example