text
stringlengths
46
74.6k
Meet the Builders of the Open Web: Top Speakers at NEARCON ’23 NEAR FOUNDATION October 19, 2023 If you thought last year’s NEARCON was epic, then wait until you see what’s in store for NEARCON ’23 in Lisbon, kicking off on November 7th. From deep dives into the open web to insightful sessions featuring global leaders i...
--- NEP: 452 Title: Linkdrop Standard Author: Ben Kurrek <ben.kurrek@near.org>, Ken Miyachi <ken.miyachi@near.foundation> DiscussionsTo: https://gov.near.org/t/official-linkdrop-standard/32463/1 Status: Final Type: Standards Track Category: Contract Version: 1.0.0 Created: 24-Jan-2023 Updated: 19-Apr-2023 --- ## Summa...
--- id: frontend-multiple-contracts title: Frontend Interacting with Multiple Contracts sidebar_label: Frontend & Multiple Contracts --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import {CodeTabs, Language, Github} from "@site/src/components/codetabs" This example showcases how to interact ...
--- id: welcome title: Tools sidebar_label: Home --- Welcome! The NEAR ecosystem has a complete set of tools for you to make the most out of the NEAR network. In this page you will find: 1. [Wallets](https://www.mynearwallet.com/) to handle your assets. 2. [Explorers](explorer.md) to quickly obtain information from t...
NEAR & Social Good: Change Through Crypto COMMUNITY July 18, 2022 Harnessing emerging technologies and showing no signs of slowing, social good initiatives focused on bettering society and our planet have become a force in 2022. Despite a rocky crypto market, activism investment and funds focused on environmental, soci...
Case Study: Indexer’s Mary Korch on Building a Multichain Indexing Platform NEAR FOUNDATION August 18, 2023 NEAR is a home to a number of amazing apps and projects. These developers, founders, and entrepreneurs are using NEAR to effortlessly create and distribute innovative decentralized apps, while helping build a mor...
A Deep Dive into DAOs: How DAOs Are Changing Everything NEAR FOUNDATION March 17, 2022 The global community is being heard. Web3 continues to surge in popularity as developers and end-users alike instill confidence in decentralized blockchains, where information lives transparently and out in the open, in direct opposi...
--- id: runtime title: Runtime --- This section contains videos that explore the core Runtime, its operation, and how it implements cross-contract calls. ## Runtime Overview An in-depth code overview of NEAR Runtime. <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Xi_8PapFCjo" f...
Women in Web3 Changemakers: Zoe Leavitt NEAR FOUNDATION October 17, 2023 “Trust yourself. Believe in yourself. Having that trust and belief that if there’s something you really believe in, you can really take it forward,” says Zoe Leavitt, founder and CEO of Glass, the first web three platform purpose built for the $1....
Meet the Startups in OWC’s Batch II: Accelerating Web 3.0 Adoption COMMUNITY February 10, 2021 At NEAR, we’re excited at the prospect of championing and uplifting promising Web 3.0 founders – it’s the reason the Open Web Collective (OWC)was created. As a protocol-agnostic collective, user-centrism and metric-driven exp...
--- id: functions title: External Interface hide_table_of_contents: true --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import {CodeTabs, Language, Github} from "@site/src/components/codetabs" import CodeBlock from '@theme/CodeBlock' import {ExplainCode, Block, File} from '@site/src/componen...
--- id: best-practices title: Indexing best practices sidebar_label: Best Practices --- In this article you can find suggested best practices when building blockchain indexers using [QueryAPI](intro.md). If you're planning to design a production-ready indexer, please check the recommendations for [indexing development...
# Multi Token Metadata :::caution This is part of the proposed spec [NEP-245](https://github.com/near/NEPs/blob/master/neps/nep-0245.md) and is subject to change. ::: Version `1.0.0` ## Summary An interface for a multi token's metadata. The goal is to keep the metadata future-proof as well as lightweight. This will...
Limitations of Zilliqa’s Sharding approach DEVELOPERS August 29, 2018 Zilliqa published a blog post on their sharding design today. It is evident that if you don’t have sharding from day 1, your blockchain has no chance of scaling with adoption. Building sharding after the fact is extremely hard. For instance, Ethereu...
```js import { Wallet } from './near-wallet'; const AMM_CONTRACT_ADDRESS = "v2.ref-finance.near"; const wallet = new Wallet({ createAccessKeyFor: AMM_CONTRACT_ADDRESS }); await wallet.callMethod({ method: 'swap', args: { actions: [ { pool_id: 79, token_in: "token.v2.ref-finance.near", ...
NEAR Web Wallet Security Update COMMUNITY August 4, 2022 The recent wallet hacks on other platforms have brought to light potentially serious security issues connected to the use of common analytics tools in Web3. In light of those hacks, we are sharing a perspective on a recent experience involving similar tools. On ...
--- NEP: 297 Title: Events Author: Olga Telezhnaya <olga@near.org> DiscussionsTo: https://github.com/near/NEPs/issues/297 Status: Final Type: Standards Track Category: Contract Created: 03-Mar-2022 --- ## Summary Events format is a standard interface for tracking contract activity. This document is a meta-part of oth...
--- id: error-implementation title: Source Code Survey sidebar_label: Source Code Survey --- This page provides a very high level, sometimes "pseudocode", view of error types and related messages as implemented by the NEAR platform. Errors raised by the NEAR platform are implemented in the following locations in `nea...
--- id: db-migrations title: Safe Database Migrations sidebar_label: Safe Database Migrations description: How to do database migrations without corrupting the database sidebar_position: 3 --- # Database Migrations ## Background Nodes use [RocksDB](https://rocksdb.org/) database to store blockchain information local...
NEAR Weekly On-Chain Data Report: December 16 NEAR FOUNDATION December 16, 2022 As part of the Foundation’s commitment to transparency, each week it will publish data to help the NEAR community understand the health of the ecosystem. This will be on top of the quarterly reports, and the now monthly funding reports. Y...
# Fraction ## numerator _type: u64_ ## denominator _type: u64_
```js import { Wallet } from './near-wallet'; const DAO_FACTORY_CONTRACT_ADDRESS = "sputnik-dao.near"; const wallet = new Wallet({ createAccessKeyFor: DAO_FACTORY_CONTRACT_ADDRESS }); await wallet.viewMethod({ method: 'get_dao_list', args: {}, contractId: DAO_FACTORY_CONTRACT_ADDRESS }); ``` _The `Wallet` o...
--- id: index-functions title: Indexing Functions sidebar_label: Indexing Functions --- :::info QueryAPI is a fully managed service that allows you to create and manage indexers on-chain seamlessly. ::: ## Indexing Let's review a [very simple indexer](https://near.org/dataplatform.near/widget/QueryApi.App?selectedI...
Introducing the NEAR Foundation NEAR FOUNDATION May 13, 2020 The Why of NEAR When Alex, Illia and the rest of the early team came together in 2018 to explore the ideas that would eventually become the NEAR Protocol, we each used slightly different words to express a single feeling — that the trends of both governments ...
Open Call for NEAR Accelerator Service Partners NEAR FOUNDATION April 5, 2023 The NEAR blockchain is an open-source, decentralized blockchain protocol that is designed to be scalable, developer-friendly, and able to support a wide range of decentralized applications (dApps) and smart contracts. NEAR has built the Block...
--- id: protocol title: Protocol --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; The RPC API enables you to retrieve the current genesis and protocol configuration. --- ## Genesis Config {#genesis-config} > Returns current genesis configuration. - method: `EXPERIMENTAL_genesis_config` -...
```js Near.call( "primitives.sputnik-dao.near", "act_proposal", { id: 0, action: "VoteApprove" }, 300000000000000 ); ``` :::note Available vote options: `VoteApprove`, `VoteReject`, `VoteRemove`. :::
--- id: feature-request-and-bug-report title: Feature Request and Bug Report sidebar_label: Feature Request and Bug Report description: NEAR Node Feature Request and Bug Report --- <blockquote class="info"> <strong>Did You Know?</strong><br /><br /> As a node operator, you are welcome to create feature requests and ...
Cosmose and NEAR Foundation Set To Revolutionize Retail with Web3 and AI NEAR FOUNDATION April 24, 2023 The Artificial Intelligence (AI) wave is touching just about every corner of commerce and culture, and retail is no exception. Cosmose AI, one of the leaders in AI and retail, has received a strategic investment from...
# Receipt All cross-contract (we assume that each account lives in its own shard) communication in Near happens through Receipts. Receipts are stateful in a sense that they serve not only as messages between accounts but also can be stored in the account storage to await DataReceipts. Each receipt has a [`predecesso...
NEAR Now Integrated into Ledger Live For More Security and Ownership NEAR FOUNDATION January 30, 2023 Wallet security can be intimidating, especially for newcomers. But it just got a whole lot easier for NEAR users. NEAR Foundation is excited to announce full integration with Ledger Live, making it easier than ever for...
--- id: wallet title: Wallet Chain Key Rules --- ## Overview In this article you'll find details on how to parse and present multichain transactions to the user so they can take an informed decision about their wallet's assets, while minimizing the number of times the user has to consent. You'll also learn how to en...
# Fungible Token Event Version `1.0.0` ## Summary Standard interfaces for FT contract actions. Extension of [NEP-297](../../EventsFormat.md) ## Motivation NEAR and third-party applications need to track `mint`, `transfer`, `burn` events for all FT-driven apps consistently. This extension addresses that. Keep in m...
# Approval Management ## [NEP-178](https://github.com/near/NEPs/blob/master/neps/nep-0178.md) Version `1.1.0` ## Summary A system for allowing a set of users or contracts to transfer specific Non-Fungible Tokens on behalf of an owner. Similar to approval management systems in standards like [ERC-721]. [ERC-721]:...
Case Study: NEAR Foundation’s Laura Cunningham on the NEAR Horizon Startup Accelerator CASE STUDIES July 26, 2023 NEAR is a home to a number of amazing apps and projects. These developers, founders, and entrepreneurs are using NEAR to effortlessly create and distribute innovative decentralized apps, while helping build...
--- id: explorer title: Explorer sidebar_label: Explorers --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; An Explorer allows you to quickly obtain information from the blockchain through a friendly user interface. These useful tools enable for example to: 1. Search for a transactions and its...
- Proposal Name: Batched Transactions - Start Date: 2019-07-22 - NEP PR: [nearprotocol/neps#0008](https://github.com/nearprotocol/neps/pull/8) # Summary [summary]: #summary Refactor signed transactions and receipts to support batched atomic transactions and data dependency. # Motivation [motivation]: #motivation It...
--- id: approvals title: Approvals sidebar_label: Approvals --- import {Github} from "@site/src/components/codetabs" In this tutorial you'll learn the basics of an approval management system which will allow you to grant others access to transfer NFTs on your behalf. This is the backbone of all NFT marketplaces and al...
--- sidebar_position: 1 sidebar_label: "Introduction" --- # Pagoda Alerts & Triggers :::warning Please be advised that these tools and services will be discontinued soon. ::: ## What are Alerts & Triggers? Pagoda Alerts & Triggers are designed to notify, and automated responses to important events that occur on t...
--- sidebar_position: 2 sidebar_label: "Webhooks Example" --- # Turn on the (Hue) lights with NEAR NFTs and Pagoda Alerts & Triggers :::warning Please be advised that these tools and services will be discontinued soon. ::: ## Overview How cool would it be to have your lights turn on or your favorite song on spot...
--- id: introduction title: NFT Zero to Hero JavaScript Edition sidebar_label: Introduction --- > In this _Zero to Hero_ series, you'll find a set of tutorials that will cover every aspect of a non-fungible token (NFT) smart contract. > You'll start by minting an NFT using a pre-deployed contract and by the end you'll...
Berry Club Part II: How Does The Berry Club Yield Farming App Work? CASE STUDIES February 17, 2021 Let’s Put It To The Test For an introduction to Yield Farming on NEAR, see Part 1, Berry Club: A Fun, Creative Example of a DeFi Yield Farming App on NEAR Protocol Berry Club Background Berry Club is one of the oldest an...
--- title: 1.2 The History of Money description: The History of Money and Reserve Currencies --- # 1.2 Bitcoin, The History of Money, and Reserve Currencies ## Introduction This lecture is perhaps one of the most important in setting the stage for the ‘What’ and ‘Why’ of Web3. As a prequel, it is fair to say that in...
Stake Wars III is Halfway to the Finish Line: What Does This Mean for NEAR’s Sharding? DEVELOPERS August 19, 2022 The incredible Stake Wars III journey is still unfolding, but now is a good time to celebrate some important milestones. Let’s look at a few quick stats and updates, as the organizers move forward in this e...
```bash near call v2.keypom.near create_drop '{"public_keys": <PUBLIC_KEYS>, "deposit_per_use": "10000000000000000000000", "ftData": {"contractId": "ft.primitives.near","senderId": "bob.near", "amount": "1"}}}' --depositYocto 23000000000000000000000 --gas 100000000000000 --accountId bob.near ```
Community Update: NEAR EDU, Flux Beta Program, and GooGuild COMMUNITY August 4, 2020 Hello citizens of NEARverse! This is NiMA coming to you from a NEARby planet in the Milky Chain … This week marks the beginning of a series of educational workshops that will help us onboard more web 2.0 and web 3.0 developers to ...
NEAR’s Road to Decentralization: Building Bridges NEAR FOUNDATION March 14, 2022 The NEAR community’s big-picture vision has always been straightforward — onboard billions of people into Web3. In this new iteration of the Internet, blockchain platforms and apps will be decentralized, open-source, transparent, and human...
Introducing Endlesss: Gamifying Music Creation with NFTs COMMUNITY July 1, 2022 Endlesss, the creation, marketing, and community building platform built for musicians, has just launched on NEAR mainnet. As music production software with social media features, Endlesss is a virtual space for musicians, fans, and collect...
--- id: transfers title: Transferring Fungible Tokens sidebar_label: Transferring FTs --- import {Github} from "@site/src/components/codetabs" In this tutorial, you'll learn how to implement the [core standards](https://nomicon.io/Standards/Tokens/FungibleToken/Core) into your smart contract. You'll implement the logi...
Why NEARCON is the Must-See Global Web3 Event of 2023 NEAR FOUNDATION November 1, 2023 Just less than a week until Lisbon rumbles as the epicenter of the NEAR ecosystem. Step into the open web at NEARCON ‘23 across three different stunning venues, with the Convento Do Beato being the main hub for things like founder a...
2020 NEAR In Review & Ecosystem Tour COMMUNITY December 23, 2020 Most of us won’t be sorry to say goodbye to 2020, but this year was a big one for NEAR. From Ready Layer One to announcing the NEAR Foundation, Hacking the Rainbow to launching the NEAR Mainnet, there are many milestones to be proud of. So, to every devel...
--- NEP: 492 Title: Restrict creation of Ethereum Addresses Authors: Bowen Wang <bowen@near.org> Status: Final DiscussionsTo: https://github.com/near/NEPs/pull/492 Type: Protocol Version: 0.0.0 Created: 2023-07-27 LastUpdated: 2023-07-27 --- ## Summary This proposal aims to restrict the creation of top level accounts...
--- id: dao title: Decentralized Autonomous Organizations sidebar_label: Autonomous Organizations (DAO) hide_table_of_contents: false --- import {FeatureList, Column, Feature} from "@site/src/components/featurelist" import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import BOSGetDAOList from "./da...
NEAR Boosts Web3 Gaming with New South Korea Regional Hub Launch COMMUNITY November 1, 2022 South Korea will soon have its own NEAR Regional Hub dedicated to Web3 innovation, business development, education, and talent throughout the country. The hub will be led by entrepreneurs Scott Lee and Ben Kang – both influent...
--- id: transactions title: Transactions --- Users interact with NEAR by creating transactions. Specifically, user's use their account's [private keys](./access-keys.md) to sign transactions, which are then broadcasted and processed by the network. ![](@site/static/docs/assets/welcome-pages/data-lake.png) A transact...
NEAR Wallet Will Remain Online Until the End of the Year NEAR FOUNDATION October 26, 2023 To avoid the rush of last minute transfers, and to support the inclusion of new wallets coming into the ecosystem, we are delaying the sunset of the NEAR wallet. The NEAR wallet sunset is now targeted for December 31st, 2023. We...
NEAR MainNet is now Community-Operated COMMUNITY September 24, 2020 As of today, the NEAR Foundation has spun down its nodes, making the NEAR Protocol MainNet fully community run. This is the most significant (though not the last!) milestone in NEAR’s multi-year journey from excited scribbles on a whiteboard to a fully...
--- title: 5.2 Sputnik V2 and Astro DAO on NEAR description: Sputnik and Astro and developing robust DAO infrastructure on NEAR --- # 5.2 Sputnik V2 and Astro DAO on NEAR Sputnik V2 and Astro DAO refer to NEAR DAO tooling logic, deployed exclusively on NEAR’s native network (not Aurora). In the context of the emergen...
Women in Web3 Changemakers: Erica Kang NEAR FOUNDATION October 3, 2023 “The space needs more women,” says Erica Kang, the CEO and founder of KryptoSeoul, a community building team focused on highlighting projects that are actively building in the space, connecting audiences in Asia and beyond. “I think many people fi...
--- id: contribute-nearcore title: Contribute to nearcore sidebar_label: NearCore Contributions --- Please see nearcore's [CONTRIBUTING.md](https://github.com/near/nearcore/blob/master/CONTRIBUTING.md).
--- id: hardware title: Hardware Requirements for Validator Node sidebar_label: Hardware Requirements sidebar_position: 1 description: NEAR Validator Node Hardware Requirements --- This page covers the minimum and recommended hardware requirements for engaging with the NEAR platform as a validator node. ## Recommend...
John Smith joins NEAR Inc. as CISO to redefine safety in the Blockchain Ecosystem NEAR FOUNDATION October 29, 2021 We are thrilled to announce that John Smith has joined NEAR Inc as its Chief Information Security Officer (CISO). John will be leading NEAR Inc’s information security strategy, working closely with core de...
Case Study: Building on the NEAR Blockchain Operating System (BOS) CASE STUDIES July 24, 2023 NEAR is a home to a number of amazing apps and projects. These developers, founders, and entrepreneurs are using NEAR to effortlessly create and distribute innovative decentralized apps, while helping build a more open web — f...
# Wallet Selector An easy-to-navigate modal that allows users to select their preferred wallet to easily interact with the NEAR protocol. Launched in March 2022 by the NEAR Foundation, this simple modal will appear whenever users are given the option to “Connect Wallet” to the NEAR blockchain. ![Preview](/docs/asset...
--- sidebar_position: 4 sidebar_label: "Hash the solution, unit tests, and an init method" title: "Introduction to basic hashing and adding unit tests" --- import {Github} from "@site/src/components/codetabs" import batchCookieTray from '/docs/assets/crosswords/batch-of-actions--dobulyo.near--w_artsu.jpg'; # Hash the...
# Multi Token Standard Approval Management :::caution This is part of the proposed spec [NEP-245](https://github.com/near/NEPs/blob/master/neps/nep-0245.md) and is subject to change. ::: Version `1.0.0` ## Summary A system for allowing a set of users or contracts to transfer specific tokens on behalf of an owner. ...
How the NEAR Foundation is Supporting Network Decentralization NEAR FOUNDATION October 30, 2020 Now that inflationary rewards are live, token holders are able to earn rewards from staking. Even without running a node, they can support the stability and security of NEAR by staking to validators. In just a few weeks, mor...
NEAR Foundation Hires Chris Ghent To Lead Global Brand and Communications Efforts NEAR FOUNDATION November 2, 2021 NEAR Foundation is delighted to announce that Chris Ghent has joined NEAR Foundation as Global Head of Brand Strategy & Partnerships. Chris will be spearheading the Foundation’s efforts to build on its str...
--- id: run-rpc-node-without-nearup title: Run an RPC Node sidebar_label: Run a Node 🚀 sidebar_position: 2 description: How to run an RPC Node without nearup --- The following instructions are applicable across localnet, testnet, and mainnet. If you are looking to learn how to compile and run a NEAR RPC node nativel...
NEAR Community Update: May 17th, 2019 COMMUNITY May 17, 2019 We had a blast in NYC, kicking off Consensus week on Monday with a DeFi panel in a completely packed room. We followed it up the next day with a fascinating panel exploring the future of gaming in blockchain (meme of the week right below from this panel!). We...
NEAR at ETHDenver 2022 Highlights COMMUNITY February 24, 2022 Couldn’t make it to the NEAR Lounge for #BUIDL Week at this year’s ETHDenver? This post has you covered with highlights from events at the NEAR Lounge and ETHDenver stages, as well as a major ecosystem announcement from NEAR Co-Founder Illia Polosukhin. NEA...
--- id: sybil title: Sybil Attacks --- While developing your smart contract, keep in mind that an individual can potentially create multiple NEAR accounts. This is especially relevant in ecosystems involving crowd decisions, such as [DAOs](../../../2.build/5.primitives/dao.md). Imagine that you open the voting to an...
AI is NEAR: The Future of AI on the Open Web at NEARCON ‘23 NEAR FOUNDATION October 25, 2023 If you’re as excited as we are about the future of AI and blockchain, then get ready because NEARCON ’23 is just around the corner. If you haven’t registered yet, consider this your invitation to do so now on the official NEARC...
--- id: update-contract-migrate-state title: Self Upgrade & State Migration --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import {CodeTabs, Language, Github} from "@site/src/components/codetabs" Three examples on how to handle updates and [state migration](../../2.build/2.smart-contracts/re...
--- id: multichain-server title: Multichain Relayer Server sidebar_label: Multichain Relayer Server --- The [Multichain Relayer Server](https://github.com/near/multichain-relayer-server) facilitates cross-chain transactions and enables Chain Abstraction. ## Overview The main function of this server is interfacing ...
--- sidebar_position: 5 sidebar_label: Transaction --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # `Transaction` Structure ## Definition Transaction is the main way of interraction between a user and a blockchain. Transaction contains: - Signer account ID - Receiver account ID - Actions ...
- Proposal Name: NEAR economics specs - Start Date: 2020-02-23 - NEP PR: [nearprotocol/neps#0000](https://github.com/nearprotocol/NEPs/pull/33) - Issue(s): link to relevant issues in relevant repos (not required). # Summary [summary]: #summary Adding economics specification for NEAR Protocol based on the NEAR whitep...
--- id: welcome title: NEAR - Your Gateway to an Open Web hide_table_of_contents: true --- import {FeatureList, Column, Feature} from "@site/src/components/featurelist" Welcome, this is the starting point for all NEAR documentation. Learn to build and publish blockchain applications. Embrace the power of Web3. <div c...
NEAR Foundation Signs Up to the Ethereum Climate Platform NEAR FOUNDATION July 17, 2023 NEAR Foundation is thrilled to announce that it is signed up to the Ethereum Climate Platform. The Foundation has worked on making the NEAR Protocol and open web sustainable from the get-go, and this move is a major demonstration of...
```bash near view v2.ref-finance.near get_deposits '{"account_id": "bob.near"}' ``` <details> <summary>Example response</summary> <p> ```bash { 'token.v2.ref-finance.near': '0', 'wrap.near': "0" } ``` </p> </details>
Register for NEAR’s June Town Hall: NEAR at Consensus COMMUNITY June 3, 2022 Howdy, NEAR World! This month the NEAR Town Hall will be broadcasting from Coindesk’s Consensus conference in Austin, Texas. Join us on Sunday, June 12, 2022 at 5:00pm GMT (1:00PM EDT/10:00PM PDT) for updates on the NEAR ecosystem and Web3 onb...
NEAR Weekly On Chain Data Report: December 9 NEAR FOUNDATION December 9, 2022 As part of the Foundation’s commitment to transparency, each week it will publish data to help the NEAR community understand the health of the ecosystem. This will be on top of the quarterly reports, and the now monthly funding reports. You...
The Evolution of the Open Web COMMUNITY April 29, 2020 Developers have been pitched Blockchain technology for many years based on a hand-wavy set of “use cases” which are tied to unclear definitions of how the technology works, what it’s actually good for and how the platforms that employ it are meaningfully different ...
```bash near call v2.keypom.near create_drop '{"public_keys": <PUBLIC_KEYS>, "deposit_per_use": "10000000000000000000000", "fcData": {"methods": [[{"receiverId": "nft.primitives.near","methodName": "nft_mint","args": {"token_id": "1", "metadata": {"title": "My NFT drop","description": "","media": ""}, "accountIdField":...
# Miscellaneous API ```rust value_return(value_len: u64, value_ptr: u64) ``` Sets the blob of data as the return value of the contract. ###### Panics - If `value_len + value_ptr` exceeds the memory container or points to an unused register it panics with `MemoryAccessViolation`; --- ```rust panic() ``` Terminate...
```js import { Wallet } from './near-wallet'; const KEYPOM_CONTRACT_ADDRESS = "v2.keypom.near"; const DROP_AMOUNT = "10000000000000000000000"; // 0.1 NEAR const wallet = new Wallet({ createAccessKeyFor: KEYPOM_CONTRACT_ADDRESS }); await wallet.callMethod({ method: "create_drop", contractId: KEYPOM_CONTRACT_AD...
Understanding Rust Lifetimes DEVELOPERS January 9, 2019 No, seriously, this time for real Coming to Rust from C++ and learning about lifetimes is very similar to coming to C++ from Java and learning about pointers. At first, it looks like an unnecessary concept, something a compiler should have taken care of. Later, a...
AI is NEAR: Illia Polosukhin on AI and the Open Web at NEARCON ’23 NEAR FOUNDATION October 26, 2023 Artificial Intelligence and Web3 have been two of the hottest topics of 2023. There has been significant interest in how the two technology ecosystems may converge in the coming years, with lots of interest from investor...
--- sidebar_position: 4 --- # Deploying Contracts You might want your smart contract to deploy subsequent smart contract code for a few reasons: * The contract acts as a Factory, a pattern where a parent contract creates many child contracts ([Mintbase](https://www.mintbase.io/) does this to create a new NFT store f...
Avalanche vs The new IOTA consensus algorithm, with a touch of Spacemesh DEVELOPERS June 5, 2019 Intro IOTA Foundation recently announced a project called Coordicide, and an accompanying paper. The goal of the project is to remove the so-called IOTA Coordinator, a centralized service that finalizes transactions on IOTA...
NEAR APAC Day One: Scaling Local Adoption, Regional Regulation, and AI in Web3 COMMUNITY September 9, 2023 After many months in the making, the inaugural NEAR APAC conference kicked off today in Ho Chi Min City, Vietnam. Held in conjunction with the NEAR Vietnam community and NEAR Foundation, NEAR APAC is showcasing th...
NEAR Foundation and Seracle Team to Nurture the Web3 Ecosystem with DevOps Efficiency NEAR FOUNDATION June 7, 2023 NEAR Foundation and Seracle, a top blockchain cloud platform, have established a partnership to revolutionize the world of Web3 development. This alliance, forged in the name of innovation and cost-efficie...
--- id: maintenance-windows title: Maintenance Windows --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; The RPC API enables you to query future maintenance windows for a specific validator in current epoch --- ## Maintenance windows {#maintenance-windows} > The maintenance windows for a sp...
Case Study: Aurora’s Alex Shevchenko on Scaling Solidity Smart Contracts COMMUNITY August 16, 2023 NEAR is a home to a number of amazing apps and projects. These developers, founders, and entrepreneurs are using NEAR to effortlessly create and distribute innovative decentralized apps, while helping build a more open we...
--- id: usecases title: Interacting with a Contract sidebar_label: 💡 Interacting with a Contract --- Here we enumerate case scenarios, and point to where the documentation is present. --- ## Integrating Contracts into a Web App If you are developing a website (or a web-app), then you will be using `near-api-js` to ...
--- id: mpc title: Multi-Party Computation (MPC) --- MPC, or multi-party computation, is about how multiple parties can do shared computations on private inputs without revealing the private data. As an example, suppose two investors want to compare who holds more crypto tokens without revealing their account balance...
```js Near.call( "primitives.sputnik-dao.near", "add_proposal", { proposal: { description: "My first proposal", kind: { Transfer: { token_id: "", receiver_id: "bob.near", amount: "10000000000000000000000000", }, }, }, }, 300000000000000, ...
--- title: 2.5 Composability description: Open source and open protocols are the foundation of Web3. This article explains how composability is the key to unlocking the full potential of Web3 --- # 2.5 Composability and Why It Matters There is perhaps no other more important thesis in crypto that has developed in the...
# Staking and slashing ## Stake invariant `Account` has two fields representing its tokens: `amount` and `locked`. `amount + locked` is the total number of tokens an account has: locking/unlocking actions involve transferring balance between the two fields, and slashing is done by subtracting from the `locked` value. ...
--- sidebar_position: 2 --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Sending $NEAR You might want to send tokens from a contract for many reasons. * The contract uses something like the [Storage Standard](https://nomicon.io/Standards/StorageManagement) and needs to return deposits to ...