NEAR Documentation
  • Concepts
  • Develop
  • Tools
  • Tutorials
  • Community
  • Tokens
  • Stake
  • Integrate
  • GitHub

›Videos

General

  • Create a Transaction
  • Ledger Connection
  • Figment Tutorials

Front-End

  • API Examples
  • API Workshop

Smart Contracts

    AssemblyScript

    • AssemblyScript Workshop
    • Issue a Token
    • Cross Contract Calls

    Rust

    • Intro to Rust

Videos

  • Accounts & keys
  • Application Reviews
  • Contract Reviews
  • Misc
Edit

Miscellaneous video concept

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

Cross-contract calls in Rust

StackOverflow question on NEAR Collections, and dealing with large numbers

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!

Last updated on 2/10/2021 by Josh
← Contract Reviews
  • Cross-contract calls in Rust
  • StackOverflow question on NEAR Collections, and dealing with large numbers
  • Wallet
  • Explorer
  • Examples
  • Forum
  • Twitter
  • GitHub
  • Discord
  • Telegram
  • WeChat
  • YouTube

Developers

  • Overview
  • Technology
  • GitHub
  • Bounties
  • Grants

Community

  • Forum
  • Events
  • Contributor Program
  • Guild Program
  • Startup Accelerator
  • Bounties
  • Tokens

About

  • Team
  • Careers
  • Backers
  • Press Kit
  • Brand Guidelines
  • Privacy Policy

2020 NEAR Protocol|All rights reserved|hello@near.org|Privacy Policy