Miscellaneous video concept

To Share and +4 nLEARNs

This page contains videos that explore miscellaneous concepts of smart contract development on NEAR.

Cross-contract calls in Rust

<iframe
width="560"
height="315"
src="https://www.youtube-nocookie.com/embed/971dTz6nM2g"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>

StackOverflow question on NEAR Collections, and dealing with large numbers

<iframe
width="560"
height="315"
src="https://www.youtube-nocookie.com/embed/wC6CS7js-tc"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>

Here we address this question on StackOverflow and specifically, we’ll talk about why you’ll likely want to use NEAR Collections instead of HashMap when using Rust. See a list of the available collections here. In this video we discuss:

  • U128 and the difference between the (lowercase) u128
  • why JSON cannot handle very large numbers
  • how to interact with a Rust smart contract using NEAR CLI
  • demonstrate logging, view and call methods, and unit tests
  • benefits of creating subaccounts

We will also walk through the process of writing, building, and deploying a Rust smart contract and then we’ll discover why NEAR subaccounts are useful when you may need to make breaking changes to state.

Got a question?

Ask it on StackOverflow!

Scroll to Top