🎉 Gate Square Growth Points Summer Lucky Draw Round 1️⃣ 2️⃣ Is Live!
🎁 Prize pool over $10,000! Win Huawei Mate Tri-fold Phone, F1 Red Bull Racing Car Model, exclusive Gate merch, popular tokens & more!
Try your luck now 👉 https://www.gate.com/activities/pointprize?now_period=12
How to earn Growth Points fast?
1️⃣ Go to [Square], tap the icon next to your avatar to enter [Community Center]
2️⃣ Complete daily tasks like posting, commenting, liking, and chatting to earn points
100% chance to win — prizes guaranteed! Come and draw now!
Event ends: August 9, 16:00 UTC
More details: https://www
NEAR Testnet Deployment Rust smart contracts Practical Guide
Rust smart contracts development practice: deployment and invocation
This article will introduce how to deploy a simple example smart contract to the NEAR test network, execute the contract, and query the execution results.
Introduction to the NEAR Network
NEAR Protocol, as a protocol, can support multiple independent networks based on it. The three main networks commonly used are as follows:
NEAR CLI Installation
NEAR CLI is a NodeJS command line interface for interacting with the NEAR network. Installation steps:
sudo npm install -g near-cli
near --version
Deploying Contracts on TestNet
Register TestNet account
Log in to NEAR CLI
Execute the following command to log in to your account:
near login
View account information
near state <账户名>
Contract Compilation and Deployment
call contract function
Use the near call command to invoke functions in the smart contracts, for example:
near call '{"parameter":"value"}' --accountId
transaction query
You can query specific transaction details in NEAR Explorer using the transaction ID.
By following the above steps, we have completed the entire process of smart contracts from compilation to deployment and then to invocation. The next step can be to discuss how to write safer smart contracts from a security perspective.