| Aspect | Aptos | Sui |
|---|---|---|
| Launch date | Oct 17 2022 – “Aptos Autumn” mainnet¹ | May 3 2023 – Mysten Labs mainnet² |
| Programming language | Move (Aptos Move) & Move Prover for formal verification | Move (Sui Move) & Sui Prover |
| Consensus mechanism | DPoS + AptosBFT v4 (HotStuff lineage) with quorum-store mempool & leader-reputation rotation; ~0.9 s finality³ | DPoS + Narwhal & Bullshark (DAG-BFT); ~0.4 s finality in tests⁵ |
| Execution model | Block-STM optimistic parallel execution (conflict detection & rollback)⁴ | Object-centric parallel execution (independent-object txns skip global consensus) |
| Peak benchmark TPS | 170 k TPS on 32-core lab setup⁴ | 297 k TPS on 100-validator distributed test⁵ |
| Signature features | • Quorum-Store batched mempool • Account-abstraction primitives • On-chain upgrade path | • zkLogin (social-lo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use flashbots_rs::{ | |
| client::FlashbotsClient, | |
| types::{Bundle, Transaction}, | |
| }; | |
| fn main() { | |
| // Establish a connection to the Flashbots RPC endpoint | |
| let client = FlashbotsClient::new("https://rpc.flashbots.net"); | |
| // Create a transaction object with the necessary details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "github.com/ethereum/go-ethereum/crypto" | |
| hdwallet "github.com/rafaelescrich/go-ethereum-hdwallet" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "fmt" | |
| "math/big" | |
| ) | |
| type Prover struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {useState, useEffect} from 'react'; | |
| let Web3 = require('web3'); | |
| function Index() { | |
| const [web3, setWeb3] = useState(null) | |
| const [address, setAddress] = useState(null) | |
| const [contract, setContract] = useState(null) | |
| const [totalSupply, setTotalSupply] = useState(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import EIP712Domain from "eth-typed-data"; | |
| import BigNumber from "bignumber.js"; | |
| import * as ethUtil from 'ethereumjs-util'; | |
| import { ethers } from "ethers"; | |
| import axios from "axios"; | |
| /* | |
| * Safe relay service example | |
| * * * * * * * * * * * * * * * * * * * */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/portto/solana-go-sdk/client" | |
| "github.com/portto/solana-go-sdk/client/rpc" | |
| "github.com/portto/solana-go-sdk/common" | |
| "github.com/portto/solana-go-sdk/program/sysprog" | |
| "github.com/portto/solana-go-sdk/types" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Code generated - DO NOT EDIT. | |
| // This file is a generated binding and any manual changes will be lost. | |
| package token | |
| import ( | |
| "math/big" | |
| "strings" | |
| ethereum "github.com/ethereum/go-ethereum" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| ethereum "github.com/ethereum/go-ethereum" | |
| "github.com/ethereum/go-ethereum/common" | |
| "github.com/ethereum/go-ethereum/ethclient" |
NewerOlder