📢 Gate Square Exclusive: #PUBLIC Creative Contest# Is Now Live!
Join Gate Launchpool Round 297 — PublicAI (PUBLIC) and share your post on Gate Square for a chance to win from a 4,000 $PUBLIC prize pool
🎨 Event Period
Aug 18, 2025, 10:00 – Aug 22, 2025, 16:00 (UTC)
📌 How to Participate
Post original content on Gate Square related to PublicAI (PUBLIC) or the ongoing Launchpool event
Content must be at least 100 words (analysis, tutorials, creative graphics, reviews, etc.)
Add hashtag: #PUBLIC Creative Contest#
Include screenshots of your Launchpool participation (e.g., staking record, reward
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.