cross-contract-calls icon indicating copy to clipboard operation
cross-contract-calls copied to clipboard

trafficstars

Cross-Contract Call Examples 👋

example workflow example workflow example workflow example workflow

This repository contains examples on how to perform cross-contract calls in both JavaScript and Rust.

  • contract-simple-rs - Rust example
  • contract-simple-ts - JavaScript example
  • contract-advanced-rs - Rust advanced example
  • contract-advanced-ts - JavaScript advanced example

What These Examples Show

  1. How to make a NEAR contract call another and handle its response
  2. How to call multiple contracts at the same time and handle their responses
  3. How to call multiple functions on a same contract and handle its reponse

Learn More

  1. Learn more about the contract through its README.
  2. Check our documentation.