Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
}
},
"redirects": [
{
"source": "/smart-contracts/tutorials/zero-to-hero/nfts-js",
"destination": "/smart-contracts/tutorials/zero-to-hero/nfts"
},
{
"source": "/smart-contracts/contracts-list",
"destination": "/tools/contracts-list"
Expand Down Expand Up @@ -382,8 +386,7 @@
"icon": "rocket",
"pages": [
"smart-contracts/tutorials/zero-to-hero/fts",
"smart-contracts/tutorials/zero-to-hero/nfts",
"smart-contracts/tutorials/zero-to-hero/nfts-js"
"smart-contracts/tutorials/zero-to-hero/nfts"
]
}
]
Expand Down
11 changes: 4 additions & 7 deletions index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ mode: wide
<div class="flex flex-wrap gap-2 mb-4">
<Badge color="green" icon="clock">~5 min</Badge>
<Badge color="gray">Rust</Badge>
<Badge color="gray">JavaScript</Badge>
<Badge color="gray">Python</Badge>
<Badge color="gray">Go</Badge>
</div>
<h3 class="text-xl font-bold mb-2">Deploy your first contract in minutes</h3>
<p class="text-gray-500 mt-2 mb-5">
Write smart contracts in Rust, JavaScript, TypeScript or Python. Scaffold a working project with a single command, then build, test, and deploy.
Write smart contracts in Rust. Scaffold a working project with a single command, then build, test, and deploy.
</p>
<a href="/smart-contracts/quickstart" style={{display:'inline-flex',alignItems:'center',gap:'8px',padding:'9px 18px',borderRadius:'8px',background:'#2563eb',color:'#fff',fontWeight:'600',textDecoration:'none',fontSize:'14px',marginBottom:'16px'}}>
Start the quickstart →
Expand Down Expand Up @@ -176,8 +173,8 @@ async function main() {
<Card title="Near-zero fees" icon="circle-dollar-sign" horizontal>
Transaction fees under $0.001. Storage costs ~1 NEAR per 100 KB — fully refundable on deletion.
</Card>
<Card title="Multi-language contracts" icon="code" horizontal>
Write in Rust, JavaScript/TypeScript, Python, or Go. Full WASM runtime, no new syntax to learn.
<Card title="WASM contracts in Rust" icon="code" horizontal>
Write contracts in Rust with a full WASM runtime — plus community SDKs for JavaScript, Python, and Go.
</Card>
<Card title="Chain Signatures" icon="key" horizontal>
Derive threshold keys for any chain — Bitcoin, Ethereum, Solana — from one NEAR account.
Expand Down Expand Up @@ -220,7 +217,7 @@ async function main() {
Accounts, access keys, gas, transactions, and the NEAR runtime.
</Card>
<Card title="Smart Contracts" icon="code" href="/smart-contracts/what-is" cta="Read docs" arrow>
Write and deploy contracts in Rust, TypeScript, or Python.
Write and deploy smart contracts in Rust.
</Card>
<Card title="Web3 Apps" icon="globe" href="/web3-apps/quickstart" cta="Quickstart" arrow>
Connect frontends to NEAR using near-api-js and the Wallet Selector.
Expand Down
3 changes: 1 addition & 2 deletions primitives/nft/nft.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -531,5 +531,4 @@ While the NFT standard does not define a `burn` method, you can simply transfer

## Tutorials

- [NFT Tutorial](/smart-contracts/tutorials/zero-to-hero/nfts-js) _Zero to Hero_ (JavaScript SDK) - a set of tutorials that cover how to create a NFT contract using JavaScript.
- [NFT Tutorial](/smart-contracts/tutorials/zero-to-hero/nfts) _Zero to Hero_ (Rust SDK) - a set of tutorials that cover how to create a NFT contract using Rust.
- [NFT Tutorial](/smart-contracts/tutorials/zero-to-hero/nfts) _Zero to Hero_ - a set of tutorials that cover how to create a NFT contract using Rust.
4 changes: 2 additions & 2 deletions protocol/storage/storage-staking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Storing data on-chain isn't cheap for the people running the network, and NEAR p
### Use a binary serialization format, rather than JSON

The core NEAR team maintains a library called [borsh](https://borsh.io/),
which is used automatically when you use `near-sdk-rs`. Someday, it will probably also be used by `near-sdk-js`.
which is used automatically when you use `near-sdk-rs`.

Imagine that you want to store an array like `[0, 1, 2, 3]`. You could serialize it as a string and store it as UTF-8 bytes. This is what `near-sdk-js` does today. Cutting out spaces, you end up using 9 bytes.
Imagine that you want to store an array like `[0, 1, 2, 3]`. You could serialize it as a JSON string and store it as UTF-8 bytes. Cutting out spaces, you end up using 9 bytes.

Using borsh, this same array gets saved as 8 bytes:

Expand Down
Loading