Skip to main content

10 posts tagged with "sui"

View All Tags

· 4 min read
Dora Noda

Blockchain technology has emerged as a leading force in the digital world, offering revolutionary solutions that extend beyond cryptocurrency. Programming languages dedicated to blockchain technology are carving a unique space for themselves. Among these languages, Move has secured a significant spot, thanks to its robustness and inherent security features. Today, we will introduce an innovative tutorial called "Sui Move," designed to teach developers the Move programming language using a learn-by-example approach.

Dive into Blockchain Programming with Sui Move

Understanding Move: The Programming Language

Before we jump into the tutorial, let's briefly recap what Move is. Created by Facebook's subsidiary, Diem Association (formerly Libra), Move is a statically-typed, resource-oriented programming language. Its design is centered around enforcing safety and security, making it the ideal language for coding blockchain and cryptocurrency projects. The Sui Move is a variant of the Move programming language.

Resources in Move are a key construct that makes it stand out from other blockchain programming languages. These are special types that can't be copied or discarded, only moved between storage locations. This feature allows for precise control over digital assets and significantly mitigates the risk of common security issues, such as double-spending.

Sui Move: A Learn-by-Example Tutorial

Located at https://blockeden.xyz/docs/sui/sui-move/intro/, "Sui Move" is a comprehensive, learn-by-example tutorial designed to teach developers how to code using the Move programming language.

"Sui Move" is constructed on the philosophy that hands-on learning accelerates comprehension and proficiency. The tutorial is divided into small, manageable chunks, each focusing on a specific aspect of Move. This allows learners to not only understand the technicalities of the language but also gain insights into how and where they can be implemented.

"Sui Move" stands out in its approach to teaching. Instead of overwhelming the learner with dense theory, it offers an array of examples for every concept. The learner can directly interact with these examples, providing a dynamic learning environment that encourages exploration and understanding at a deep level.

The tutorial is designed to be accessible for various experience levels. Whether you are a seasoned developer looking to dive into blockchain development or a beginner who's just starting, "Sui Move" is tailored to ensure you grasp and master the concepts effectively.

What You'll Learn

"Sui Move" covers a broad range of topics that form the core of Move programming language. Here's a snapshot of what you can expect:

  • Understanding the syntax and structure of Move.
  • Deep dive into Move's unique resource-oriented model.
  • Manipulating data using Move's functions and methods.
  • Learning to create and implement Modules and Scripts.
  • Handling exceptions and ensuring security in your Move programs.
  • Learning how to create a custom coin and NFT.

Why Choose Sui Move?

"Sui Move" is not just a tutorial; it's a well-structured learning journey. It offers:

  1. Real-world Examples: Every concept is paired with a practical example that demonstrates how to use it effectively.
  2. Comprehensive Coverage: It provides a thorough understanding of Move, from basic syntax to advanced constructs.
  3. Step-by-Step Guidance: Every module is designed to gradually build your understanding, reducing the learning curve and making complex concepts easier to grasp.
  4. Flexibility: It caters to a wide range of learners, from beginners to experienced developers.

Blockchain technology is shaping the future of numerous industries, and mastering a language like Move can open new avenues for developers. With "Sui Move," you have a resource that can guide you effectively through your learning journey. So, dive in, start coding, and explore the exciting opportunities that Move and blockchain technology hold for you.

Get started now at https://blockeden.xyz/docs/sui/sui-move/intro/.

· 3 min read
Dora Noda

We are thrilled to announce that Sui, the highly anticipated blockchain platform, has successfully launched its mainnet. At BlockEden.xyz, we are committed to providing our customers with the most innovative and cutting-edge solutions in the blockchain industry. As a result, we are excited to integrate Sui into our robust API suite, offering developers an even greater range of tools to create groundbreaking applications.

Sui Mainnet Launch: BlockEden.xyz Expands API Suite to Include Next-Generation

Why Sui Matters

Sui is a next-generation blockchain platform designed to address the challenges faced by existing solutions in scalability, interoperability, and energy efficiency. It brings together the best features from various blockchain technologies, offering a more efficient and flexible platform for developers to build decentralized applications (dApps) and smart contracts. Some key aspects of Sui include:

  1. Scalability: Sui employs a unique consensus algorithm, which allows it to process 297k transactions per second, thus ensuring high throughput and minimal latency. This makes it an ideal choice for building dApps that require fast and secure transactions.
  2. Energy Efficiency: Sui's consensus algorithm also addresses the energy consumption concerns associated with traditional Proof-of-Work (PoW) mechanisms. By utilizing a more environmentally friendly approach, Sui contributes to a greener and more sustainable blockchain industry.

What This Means for BlockEden.xyz Users:

As Sui joins our API suite, developers can look forward to:

  1. Access to Sui's Blockchain: Our API will enable developers to easily interact with the Sui blockchain, allowing them to build and deploy smart contracts, create tokens, and develop dApps on this revolutionary platform.
  2. Continued Support: BlockEden.xyz remains committed to providing exceptional customer support, offering guidance and assistance in implementing Sui's technology within your projects.
  3. Stake with BlockEden.xyz and Earn Rewards: By staking your tokens with BlockEden.xyz, you can participate in the Sui ecosystem and earn rewards for contributing to the platform's growth and security.

Getting Started with BlockEden.xyz's Sui RPC Key

If you're ready to start developing on the Sui blockchain using BlockEden.xyz's API suite, follow these simple steps to get your Sui RPC key and kickstart your project:

Step 1: Obtain a Connection String

Visit our API Marketplace at https://blockeden.xyz/api-marketplace to obtain a connection string. This string will enable you to access the Sui blockchain through our API and begin developing your decentralized application.

Step 2: Develop Your First Sui DApp

To build your first DApp on the Sui platform, follow our comprehensive guide available at https://blockeden.xyz/docs/sui/sui-typescript-sdk/. This tutorial provides step-by-step instructions for setting up your development environment, implementing Sui's TypeScript SDK, and creating a fully functional DApp using the Sui blockchain.

By following these steps, you'll be well on your way to harnessing the power of the Sui blockchain and BlockEden.xyz's API suite to develop innovative and groundbreaking decentralized applications. If you need any assistance, our dedicated support team is always ready to help guide you through the process.

Conclusion

BlockEden.xyz is proud to welcome Sui into our growing family of blockchain technologies. By adding Sui to our API suite, we are further expanding the possibilities for developers to create groundbreaking solutions in the blockchain space. As always, we remain dedicated to providing our users with the most innovative and reliable tools to empower their projects and drive the future of decentralized technology.

· 3 min read
Dora Noda

The Sui Foundation recently conducted a series of tests to determine the current peak throughput and time to finality for various workloads on the Sui network. A year after its announcement, the Sui network has made significant strides in performance, becoming a promising decentralized protocol for the future.

Key Findings

  • The Sui network, consisting of 100 globally distributed validators, achieved peak throughput ranging from 10,871 TPS to 297,000 TPS on different workloads.
  • Sui's time to finality is approximately 480 milliseconds, providing rapid transaction confirmations.

Performance Evaluation

To measure the performance of the Sui protocol, the foundation used a globally-distributed setup that closely mirrors the mainnet in terms of hardware configurations, number of validators, geographic distribution, and voting power distribution. The tests were conducted using 100 validators, 24-core AMD hardware, 256GB memory, and 25Gbps NIC.

Measuring Throughput with Programmable Transaction Blocks (PTB)

Sui's core developer primitive, PTB, allows for a complex and composable sequence of transactions. Chained transactions in a PTB can execute and fail atomically, providing increased efficiency and expressivity. Each PTB can support up to 1024 transactions, enabling Sui to handle large workloads and reduce transaction fees for users.

The Challenge of Measuring Throughput

Transactions Per Second (TPS) is a commonly used metric to measure a blockchain protocol's capacity. However, measuring the number of PTBs executed per second doesn't accurately reflect Sui's computational capacity. As the average PTB size increases, Sui's throughput increases, but the PTB/second metric would remain unchanged. Therefore, the foundation has chosen to measure the number of individual transactions within a PTB executed per second as a more consistent and practical metric.

Time to Finality

Finality in blockchain refers to the point where a transaction is considered irrevocable and cannot be modified or reverted. For this performance update, the Time to Finality measures the point in the transaction lifecycle where both the transaction itself and its effects are final and can be used in subsequent transactions. Sui's Time to Finality is approximately 480 milliseconds, with a 95th percentile latency of around 550 milliseconds.

Future Optimization and Scalability

The Sui protocol has made significant progress in its performance, but there are still many opportunities for optimization and scalability. In the near future, the Sui Foundation plans to refine the following aspects:

  • Scalability and coverage of benchmark tooling
  • Horizontal scalability to support intra-validator scaling across multiple machines
  • Resilience to under-performance of individual validators

As the Sui protocol evolves and its performance improves, the Sui Foundation will continue to share updates with the community for feedback and consideration. With its impressive throughput and time to finality, the Sui network is poised to make a significant impact in the world of decentralized systems.

· 3 min read
Dora Noda

The SUI Network is a high-performance public blockchain developed by former Meta engineers. Built with the Move programming language, it prioritizes security, scalability, and upgradability.

What is POAP?

POAP, or Proof-Of-Attendance Protocol, is a mechanism for distributing encrypted badges to record and commemorate specific events. POAP tokens can serve as proof that a user attended an event or as collectible items, similar to concert tickets or commemorative badges.

Event organizers typically use POAP to distribute tokens to participants, who can then collect unique POAP tokens (NFT badges) to remember their attendance at an event.

Introducing SUIA: The First POAP Application on the SUI Network

Suia.io is the first POAP application on the SUI blockchain, currently launched on SUI's devnet. In the future, Suia will have multiple purposes, such as event tickets, contribution awards, and gaming, providing a new immersive, gamified interaction method between web3 brands and users.

What are the features of SUIA?

Anyone can create POAP events on Suia, with all creation and distribution occurring transparently on the SUI blockchain. Users own their Suia assets, and the unique architecture and parallel performance of the SUI blockchain allow Suia to combine and create more gameplay possibilities, accommodating large-scale user participation, low latency, and low fees, facilitating connections with the web2 application market.

How to use SUIA?

  1. Visit the Suia website at https://suia.io/, click "connect wallet" to link a wallet, currently supporting Sui wallet and Suiet Wallet.

  2. After connecting the wallet, click "create Suia" to experience creating a POAP NFT distribution event on the SUI blockchain. Follow the prompts to upload the NFT's type, name, description, amount, and whitelist restrictions if needed. Click "create" to complete the process, which requires a small amount of SUI tokens in the devnet environment.

  3. After creating the event, it will appear on the homepage, allowing other users to discover and claim your POAP.

Conclusion

Suia, developed by the Mynft team (creators of the first vote-to-earn web3 platform on the Flow blockchain), has a mature market and development experience, as well as a solid community foundation. Developing Suia on the SUI blockchain leverages the team's NFT expertise while filling the gap in POAP applications.

With a well-developed product and clear roadmap, strong project collaboration, and community management capabilities, Suia has attracted over 6,000 participants on its first day of testing. SUI World DAO will continue to monitor Suia's future collaborations and user growth as the SUI mainnet launches.

· 2 min read
Dora Noda

Sui Blockchain is a promising Layer-1 (L1) project that employs a unique set of technical innovations and tokenomics to deliver a scalable and efficient platform. This article will explore Sui's core innovations and evaluate its potential as a solution for mass adoption of Web 3.0 applications.

Key Innovations

  • Sui Move: A custom version of the Move language optimized for parallel execution, enabling frictionless mass asset creation and a smoother programming experience.
  • Single-Writer Transactions: A novel approach to handling simple transactions without consensus, using Byzantine Consistent Broadcast for security and efficiency.
  • Narwhal-Tusk Consensus Engine: A cutting-edge consensus mechanism using directed acyclic graph (DAG) data structures for high throughput and low latency.
  • Unique Tokenomics: Sui's tokenomics model addresses storage costs on the network by implementing a storage fund, which helps maintain relatively constant gas prices throughout the blockchain's lifetime. This design incentivizes validators and ensures ample storage space is available.

Evaluation

Sui Blockchain stands out with its innovative solutions to scalability, particularly the unlimited upper bound for single-write transactions. This makes it suitable for applications that rely heavily on single-writer transactions, like social media apps and mass NFT distribution.

Sui's scalability solutions unlock the potential for NFTs with low intrinsic value but high social purpose, such as on-chain coupons, decentralized IDs, and credit cards. Furthermore, Sui Move's language features can enable structurally storing objects on a blockchain with the security and permanence guarantees of the blockchain.

Conclusion

Sui Blockchain provides a viable blueprint for an L1 blockchain that can handle Web 2.0 level scalability. It symbolizes Web 3.0's growing maturity and the potential for a billion-user scale. Regardless of its long-term success, Sui's innovative approach to blockchain technology already represents a significant achievement.

· 3 min read
Dora Noda

In the world of blockchain, speed and efficiency are vital for the success of any platform. Enter Sui Blockchain, a platform that promises to deliver low latency transaction processing and smart contract execution.

Sui and BlockEden.xyz

One of the unique features of Sui Blockchain is its ability to distinguish between different kinds of object ownership. Unlike other blockchain platforms where every contract and object is mutably shared, Sui allows an object to be owned by an address and can be mutably owned, immutably owned, or mutably shared. This feature is leveraged for parallel execution of smart contracts and asset management.

Sui uses a decentralized permissionless smart contract platform, biased towards low-latency management of assets. It uses the Move programming language to define assets as objects that may be owned by an address. The platform is maintained by a permissionless set of authorities that play a role similar to validators or miners in other blockchain systems.

To achieve low latency, Sui separates transaction processing into two phases: 1) acquiring distributed locks at the granularity of objects and 2) executing the transaction and committing its effects.

Phase one is performed through a reliable broadcast primitive that requires no global synchronization within the authority, allowing for scalability through sharding. For transactions involving shared objects, sequencing is required using a consensus protocol.

Sui aggressively reduces bottlenecks and points of synchronization requiring global locks within authorities, allowing for quasi-linear scaling with increased resources. The platform also allows for parallel execution of smart contracts, with Move virtual machines on multiple cores or physical machines reading versioned input objects, executing, and writing resulting objects from and to stores.

The consistency requirements on stores for objects and transactions are very loose, allowing scalable distributed key-value stores to be used internally by each authority. Sui uses a Byzantine consistent broadcast protocol between authorities to ensure the safety of common operations on assets, ensuring lower latency and better scalability as compared to Byzantine agreement.

Overall, Sui Blockchain's design choices and optimizations make it a promising platform for applications that require fast and efficient processing of transactions. Its ability to 1) distinguish between different kinds of object ownership, 2) acquiring distributed locks at the granularity of objects, and 3) parallel execution of smart contracts are key features that set it apart from other blockchain platforms. With Sui Blockchain, the future of fast and efficient transaction processing is here.

· 3 min read
Dora Noda

On January 25, the second wave of the Sui testnet went live and it would endure for 2 to 3 weeks. As part of this wave, BlockEden.xyz is helping hundreds of projects test and build on a secure and high-performance Sui network. This latest wave will bring more clarity to developers and users as they get ready for full deployment of the Sui network. Let’s take a closer look at what makes this testnet wave so important.

What is Testnet Wave 2?

Testnet Wave 2 is the second phase of testing for Sui, a blockchain platform that enables developers to easily create decentralized applications (dApps) with smart contracts, deploy them on its public blockchain and leverage its built-in tools to keep their applications secure, fast and reliable. During this phase, hundreds of projects are now able to test and build on the secure, high-performance Sui Network using BlockEden.xyz.

Testnet Wave 2 has 39 validators plus 2 Mysten Labs-operated validators, which are geographically distributed. The network's epoch duration is approximately 24 hours based on 28800 checkpoints and its reference gas price fluctuates from epoch to epoch. The network is updated only as necessary and data would only be wiped in required recovery scenarios. Mysten Labs provides incident support, including oncall support and incident management protocol with necessary coordination with selected validators.

How can I connect to Sui Testnet?

The network is permissionless. Although anyone can engage with the testnet, awards are exclusively given to program participants.

For an end user or crypto holder:

  1. Sui Web wallet can be downloaded here
  2. Open Sui wallet -> Setting (3 lines) -> Network -> Sui testnet
  3. Use Sui Discord #testnet-faucet channel to receive testnet tokens on Sui testnet.
  4. On testnet, Capy NFT can be tested by visiting https://testnet.capy.art/

The deployment of Dapps will take a few days as the Testnet has just recently launched.

The testnet SUI coins and staking rewards are exclusively used for testing and have no monetary value.

For a developer,

Grab a free public API key along with the endpoint from https://blockeden.xyz/keys and apply it to your SDK or HTTP clients. If you need a dedicated key, please sign up and it's free.

Sui RPC keys

What Does Testnet Wave 2 Mean for Developers?

For developers who are building on Sui or plan to do so in the future, Testnet Wave 2 means more clarity about how their applications will perform when fully deployed onto the main blockchain network. They can use this opportunity to gain insight into how their application works under different conditions before going live in production mode which could result in fewer surprises once they launch their project publicly. With improved security features such as enhanced privacy options available during this testing phase along with advanced analytics capabilities being provided by BlockEden.xyz, developers have everything they need to make sure their applications are running smoothly before taking them live onto the main blockchain network.

Source Link: https://blockeden.xyz/blog/2023/01/30/riding-sui-testnet-wave-2/

· 2 min read
Jack Sim

We are among the first Sui Devnet JSON-RPC providers. Now we are excited to expand our API Service to WebSocket too. WebSocket would be useful to those dApps that need to take action on real-time on-chain events.

How to get started?

Step 1. Go to https://blockeden.xyz/dash/. Please sign up if you haven’t done so.

Step 2. Input your name for the API key, select Sui Devnet Websocket, and then click + Create key.

create sui ws key

Step 3. Grab your access URL by clicking Copy to copy it to the clipboard.

Step 4. Use the access URL in your project like the following. Remember to replace <access_key> with your own key.

How to use WebSocket?

To quickly play around WebSocket endpoint in the command line, you could use wscat. To download it, run the following command:

npm install -g wscat

Then, run the following command to connect to the WebSocket endpoint (remember replacing with your own API key):

wscat -c wss://sui-devnet.blockeden.xyz/kjz2sTknHkNE9aXQ6j1N

Now in the session, you could give the command. For example, you could say subscribing events that matchin some cerntain criteria:

Connected (press CTRL+C to quit)
> {"jsonrpc":"2.0", "id": 1, "method": "sui_subscribeEvent", "params": [{"All":[{"EventType":"MoveEvent"}, {"Package":"0x2"}, {"Module":"devnet_nft"}]}]}
< {"jsonrpc":"2.0","result":6240320950310564,"id":1}

And you would also observe events being streamed to your console:

< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297607,"txDigest":"PDPBHEo5pmMeLK8Dc4226MZxUA2dkQK91W2ECHFgN1a","id":{"txSeq":1471806,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0x35a09652085b5c4c178d9cfe234d8c1a6b89306b","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0x35a09652085b5c4c178d9cfe234d8c1a6b89306b","name":"Example NFT","object_id":"0x7631724b6eb066b8514c6159f716a8826055ee5e"},"bcs":"djFyS26wZrhRTGFZ9xaogmBV7l41oJZSCFtcTBeNnP4jTYwaa4kwawtFeGFtcGxlIE5GVA=="}}}}}
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297614,"txDigest":"XcTtaU28vUsR18ZMRhE7XuMadeUfCj8kTZfHD1Xs8H7","id":{"txSeq":1471807,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0xc9a7020d260599e06b63baae7504b2ead68a580a","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0xc9a7020d260599e06b63baae7504b2ead68a580a","name":"Example NFT","object_id":"0xdc2961ac31f550fcae6ac050c4cc5c364f3736c3"},"bcs":"3ClhrDH1UPyuasBQxMxcNk83NsPJpwINJgWZ4Gtjuq51BLLq1opYCgtFeGFtcGxlIE5GVA=="}}}}}
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297617,"txDigest":"ZpnGea1XkkzfsBeSCnR37xKvkdCSgjcfp81owD6QS4i","id":{"txSeq":1471808,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0x96e31283ad37fe2ebbdff635501c9feaa2bd8af7","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0x96e31283ad37fe2ebbdff635501c9feaa2bd8af7","name":"Wizard Land","object_id":"0xe63f7ee979d23d4ab60b598529dc4136d33f07a8"},"bcs":"5j9+6XnSPUq2C1mFKdxBNtM/B6iW4xKDrTf+Lrvf9jVQHJ/qor2K9wtXaXphcmQgTGFuZA=="}}}}}
...

For more details of subscribing Sui events via WebSocket, please refer to the offical doc.

Misc

To prevent too many outstanding idle connections, we will drop any WebSocket connection that hasn't exchanged data in the past 5 minutes. Client will receive an error code: 1006.

· 3 min read
Jack Sim

BlockEden.xyz is now offering an RPC connection to the Sui devnet, allowing Web3 developers and apps to easily communicate with the new Move-based blockchain.

Sui API

This service is compatible with the Sui SDK, enabling more streamlined development. Keep reading to learn more about what this means for you and your blockchain needs!

How to get started?

Step 1. Go to https://blockeden.xyz/dash/. Please sign up if you haven’t done so.

Step 2. Input your name for the API key, select Sui Devnet, and then click + Create key.

Create key for Sui API

Step 3. Grab your access URL by clicking it and copying it to the clipboard.

Step 4. Use the access URL in your project like the following. Remember to replace <access_key> with your own key.

Using CURL to connect Sui

curl -X POST https://sui-devnet.blockeden.xyz/<access_key> \
-H 'Content-Type: application/json' \
-d '{ "jsonrpc":"2.0", "method":"rpc.discover","id":1}'

Using TypeScript SDK to connect Sui

const { JsonRpcProvider } = require("@mysten/sui.js");

(async () => {
const providerUrl = "https://sui-devnet.blockeden.xyz/<access_key>"
const provider = new JsonRpcProvider(providerUrl);
const totalTxNumber = await provider.getTotalTransactionNumber();
console.log(`${providerUrl} getTotalTransactionNumber: ` + totalTxNumber);
})()

What is the Sui Blockchain?

The Sui blockchain is a next-generation, high performance blockchain designed to support a wide range of use cases with advanced features such as accounts, identifiers, and resources. It uses the Move programming language which enables developers to build custom logic into their smart contracts. The Sui team aims to make it the most developer friendly blockchain yet by providing extensive documentation, support, and tools. And they’re off to a great start – BlockEden.xyz is one of the first Web3 infrastructure providers to introduce a new commercial RPC service for this highly anticipated platform!

Builders with Sui

Sui is a blockchain with a lot of potential. There are projects like DEXs, games, launchpads, NFT projects, social networks and wallets building on it.

Why Use BlockEden.yxz?

We listen to Aptos and Sui developers every day and are fully committed to serving the best infra for them.

If you’re a Web3 developer or app owner in need of an RPC connection for the Sui devnet, look no further than BlockEden.xyz! We are proud to be one of the first infrastructure providers offering this service for this highly anticipated new blockchain. In addition to our RPC connection, we will also offer a variety of other essential services and features for any Web3 project. Learn more about us today and see how we can help you succeed in the blockchain space!