# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.doschain.com/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# DOS Overview

DOS Chain architecture and overview

### DOS Chain: The Future of AI-Powered Web3 Gaming[​](https://docs.avax.network/#introduction)﻿ <a href="#id-27gig" id="id-27gig"></a>

DOS Chain is more than just a gaming blockchain—it’s a scalable, AI-driven Web3 ecosystem that empowers gamers, developers, and content creators to shape the future of gaming. As a dedicated Avalanche subnet, DOS Chain delivers gasless transactions, sub-second finality, and AI-enhanced security, ensuring seamless Web3 integration for both players and developers.

DOS Chain operates as an independent gaming-focused Layer-1 blockchain while benefiting from the speed, security, and interoperability of Avalanche’s infrastructure. This enables a high-performance, low-latency gaming experience without sacrificing decentralization or accessibility.

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2F65NnjZIrHN9QsdI9f75Z%2Fimage.png?alt=media&amp;token=22b3d82d-226b-4ff8-bcf8-3a075bc81088" alt=""><figcaption><p>Fastest and Gasless</p></figcaption></figure>

### **Why DOS Chain?**

🚀 Zero Gas Fees – All whitelisted smart contract functions on DOS Chain are gasless, making Web3 gaming affordable and frictionless.

⚡ Sub-Second Finality – Transactions are confirmed instantly, allowing real-time in-game interactions and smooth multiplayer experiences.

🔗 Scalability & Interoperability – DOS Chain processes 4,500+ TPS, with the potential to scale further by adding more L1s or cross-chain bridges.

🤖 AI-Driven Web3 Experience – DOS Chain integrates AI-powered smart wallets, risk detection, automated asset management, and NPC AI agents, making blockchain security and usability effortless.

🎮 Gaming-Optimized Infrastructure – Supports EVM compatibility, Unity & Unreal Engine SDKs, and a plug-and-play Web3 toolkit for developers.

🌍 Multi-Chain & Cross-Game Compatibility – DOS Chain enables game asset interoperability, allowing NFTs and in-game currencies to move seamlessly between games.

🛡️ Enhanced Security & Decentralization – Provides stronger security guarantees than standard PoW or PoS while maintaining a user-friendly gaming experience.

### **DOS Token ($DOS): The Heart of the Ecosystem**

$DOS is the native token powering transactions, governance, and in-game economies within the DOS Chain ecosystem. Key utilities include:

💰 Gasless Gaming – Enables frictionless interactions within Web3 games and applications.\
🎮 Interoperability – Used as a unit of account across multiple games, ensuring seamless cross-game transactions.\
🗳 Decentralized Governance – Holders of $DOS can participate in on-chain governance, influencing the future of DOS Chain.\
🚀 Staking & Rewards – Supports validator incentives, GameFi staking models, and community-driven rewards.

### **A Complete Gaming & Web3 Ecosystem**

DOS Chain is more than just a blockchain—it’s a comprehensive gaming ecosystem designed to support Web3 game development, NFT trading, and decentralized identity solutions:

🎮 OverMint – A gasless NFT marketplace for in-game assets and collectibles.\
🔥 MetaDOS – AAA Battle Royale game showcasing DOS Chain’s high-performance gaming capabilities.\
🔍 DOScan – A blockchain explorer providing real-time transparency.\
👤 DOS Me – A Web3 identity and account abstraction service.\
🔐 DOSafe – A non-seed phrase AI-powered Web3 wallet for security and convenience.\
💱 DOSwap – A Web3 finance service enabling cross-chain transactions and decentralized trading.

### **Future Vision: Onboarding the Next Billion Gamers into Web3**

DOS Chain aims to become the world’s most accessible and scalable Web3 gaming platform. By leveraging AI, blockchain technology, and seamless interoperability, we are building the foundation for the next generation of interactive gaming experiences.

🌍 Permissionless & Decentralized – Anyone can build and play without restrictions.\
🔗 Multi-Chain Expansion – Bridging to Ethereum, Avalanche, and other Layer-1/Layer-2 networks.

### Resources[​](https://docs.bnbchain.org/docs/overview#resources)﻿ <a href="#id-3h8wd" id="id-3h8wd"></a>

* Contact Us: <hi@doschain.com>
* Social Channels: <https://dos.me/DOS>


# Architecture

This document serves as a starting point for new users to the DOS Chain ecosystem. General knowledge of cryptocurrency is assumed, and in particular familiarity with the Ethereum or Avalanche ecosystem. If you don't understand something right away, that's OK. Search for an answer online, and if you don't find it, ask on our [Discord](http://discord.gg/DOS).

### Architecture[​](https://docs.bnbchain.org/docs/getting-started#architecture)﻿ <a href="#id-5qh2j" id="id-5qh2j"></a>

DOS Chain utilizes the L1s technology of Avalanche. Before you start developing DApps on the DOS Chain, it is important to learn about its underlying architecture.

An Avalanche L1 is a sovereign network which defines its own rules regarding its membership and token economics. It is composed of a dynamic subset of Avalanche validators working together to achieve consensus on the state of one or more blockchains. Each blockchain is validated by exactly one Avalanche L1, while an Avalanche L1 can validate many blockchains.

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FCQ1Sutv0nrOe9cYknFPV%2Fimage.png?alt=media&amp;token=6fb6ce19-ffb3-44cf-a585-711d911c935b" alt=""><figcaption></figcaption></figure>

### Ecosystem Account <a href="#fxqvi" id="fxqvi"></a>

DOS Chain has partnered with Openfort to provide the end-users and developers a better experience on Web3. DOS Chain tools are built on public goods infrastructure like the [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337) or [ERC-6551](https://eips.ethereum.org/EIPS/eip-6551) standards, which are scalable and make them simple to use.

DOSafe, our ecosystem wallet, is not a 1-to-1 mapping of any wallet solution you've seen. While we offer many of the features that other solutions have, we go much further than anyone else because: (1) We're based on smart accounts not EOAs, and (2) we build the server stack so you don't have to worry about the reliability of the infrastructure.&#x20;

DOSafe consists of modules that allow you to plug-and-play the tools to achieve your success.

Our infrastructure orchestrates everything under the hood to make the development and maintenance easy. The 4 key components we take care of are:

* **Smart accounts**: We offer optimized and diverse set of smart accounts to fit your needs. [Types of smart accounts](https://github.com/openfort-xyz/openfort-contracts).
* **Embedded Signers**: Signers create non-custodial wallets for your users. [Embedded wallet](https://www.openfort.xyz/docs/guides/javascript/wallets).
* **Bundlers/RPCs**: We built a Meta Bundler Network to ensure reliable access to the blockchain. If one fails, another takes over.
* **Paymasters**: We built the most customizable paymasters to configure granular rate limits and policies for gas sponsoring, through either our API or dashboard.
* **Backend wallets**: These are externally-owned accounts to be used internally to manage the projects flows and experience. They can execute logic like escrow for competition or sending a minted asset to a user after winning a competition.

<figure><img src="https://blog-cms.openfort.xyz/uploads/Group_295_min_3ec4bfb35f.png" alt=""><figcaption></figcaption></figure>

### Advantages <a href="#advantages" id="advantages"></a>

#### Independent Networks <a href="#independent-networks" id="independent-networks"></a>

* DOS Chain uses virtual machines to specify its own execution logic, determine its own fee regime, maintain its own state, facilitate its own networking, and provide its own security.
* DOS's performance is isolated from other Avalanche L1s in the ecosystem, so increased usage on other Avalanche L1s won't affect DOS.
* DOS has its own token economics with its own native tokens, gasless support, and incentives.
* DOS can host multiple blockchains with customized [virtual machines](https://build.avax.network/docs/quick-start/virtual-machines).

#### Native Interoperability <a href="#native-interoperability" id="native-interoperability"></a>

Avalanche Warp Messaging enables native cross-Avalanche L1 communication and allows Virtual Machine (VM) developers to implement arbitrary communication protocols between DOS and any other Avalanche L1.

#### Accommodate App-Specific Requirements <a href="#accommodate-app-specific-requirements" id="accommodate-app-specific-requirements"></a>

Different blockchain-based applications may require validators to have certain properties such as large amounts of RAM or CPU power.

DOS Chain could require that validators meet certain hardware requirements so that the application doesn't suffer from low performance due to slow validators.

#### Networks Designed With Compliance <a href="#launch-networks-designed-with-compliance" id="launch-networks-designed-with-compliance"></a>

DOS's architecture makes regulatory compliance manageable. Some examples of requirements the DOS may choose include:

* Validators must be located in a given country.
* Validators must pass KYC/AML checks.
* Validators must hold a certain license.

#### Control Privacy of On-Chain Data <a href="#control-privacy-of-on-chain-data" id="control-privacy-of-on-chain-data"></a>

DOS is ideal for organizations interested in keeping their information private.

Institutions conscious of their stakeholders' privacy can create private blockchains of DOS where the contents of the blockchains would be visible only to a set of pre-approved validators.

﻿﻿


# Network Details

Discover the official information regarding the DOS Chain network.

## Mainnet <a href="#id-9z8mi" id="id-9z8mi"></a>

* Network Name: DOS Chain
* RPC URL: [https://main.doschain.com](https://main.doschain.com/)﻿
* Chain ID: 7979
* Token symbol: DOS
* Block explorer URL (pick one depending on your style):
  * [﻿https://doscan.io﻿](https://docs.doschain.com/overview/%EF%BB%BFhttps://doscan.io%EF%BB%BF)
  * [https://7979.snowtrace.io](https://7979.snowtrace.io/)﻿

## Testnet <a href="#p7-jn" id="p7-jn"></a>

* Network Name: DOS Chain Testnet
* RPC URL: [﻿](https://test.doschain.com/)[https://test.doschain.com](https://test.doschain.com/)﻿﻿
* Chain ID: 3939
* Token symbol: DOS
* Block explorer URL (pick one depending on your style):

  * ﻿[https://test.doscan.io](https://test.doscan.io/)﻿
  * [﻿](https://3939.testnet.snowtrace.io/)[https://3939.testnet.snowtrace.io](https://3939.testnet.snowtrace.io/)

  ﻿

## Adding DOS Chain to the MetaMask Wallet <a href="#h_e5922571ae" id="h_e5922571ae"></a>

Log in to **MetaMask** -> Click the Network drop-down -> Select **Add network**

&#x20;&#x20;

<figure><img src="https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87aa42ac-900e-4a4b-a859-c60f5a68cc52_535x901.png" alt="" width="375"><figcaption></figcaption></figure>

Select **Add a network manually**

<figure><img src="https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F38d4ce86-0a3a-4879-8d23-4c2b2f6b0ce9_756x942.png" alt="" width="375"><figcaption></figcaption></figure>

&#x20;Input DOS Mainnet Information

* Network name: DOS Chain
* New RPC URL: [https://main.doschain.com](https://main.doschain.com/)
* Chain ID: 7979
* Currency symbol: DOS
* Block explorer URL: [https://doscan.io](https://doscan.io/)


# DOS Tokenomics

Learn about the native token of DOS Chain.

DOS’s tokenomics are designed at the frontier of economic blockchain and gaming research, aiming to deliver an economic ecosystem and financial plumbing at par with DOS’s innovative engineering design.

This page includes a high-level overview of DOS’s economic model.

### DOS Token <a href="#plse0" id="plse0"></a>

DOS Chain’s native asset is called DOS and we generally use one-word "DOS" to distinguish the token from the DOS Chain platform.

The total supply of DOS tokens is capped at 1,000,000,000 (i.e. one billion tokens). A share of DOS’s total supply will be liquid at mainnet launch, with the remaining tokens vesting over the coming years or distributed as future stake reward subsidies. Each DOS token is divisible up to a large number of decimal places.

The DOS token serves four purposes on the DOS Chain:

* You can stake DOS to participate in the proof-of-stake mechanism.
* While whitelisted games and DApps are gasless, a small amount of DOS is still required as the gas fee to execute and store transactions on the DOS Chain.
* DOS can be used as a versatile and liquid asset for various applications including the standard features of money – a unit of account, a medium of exchange, or a store of value – and more complex functionality enabled by smart contracts, interoperability, and composability across the DOS ecosystem.
* DOS token plays an important role in governance by acting as a right to participate in on-chain voting on issues such as protocol upgrades.

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FK6nHCuQ77cAjvsn3Ir85%2Fimage.png?alt=media&amp;token=cbab27da-2d09-4fd8-a857-61d53600eeee" alt=""><figcaption></figcaption></figure>

Since the DOS token is available in finite supply, the same amount of tokens will need to be used across more economic activities in the long run if DOS Chain unlocks many use cases and millions of users migrate to the platform.

### Token Distribution <a href="#k_bsq" id="k_bsq"></a>

&#x20;

<table data-full-width="true"><thead><tr><th></th><th align="center"></th><th width="144" align="center"></th><th width="122" align="center"></th><th width="117" align="center"></th><th width="118" align="center"></th><th align="center"></th></tr></thead><tbody><tr><td>CATEGORY</td><td align="center">Allocation</td><td align="center">DOS</td><td align="center">TGE Unlock</td><td align="center">Cliff (M)</td><td align="center">Vesting (M)</td><td align="center">Amount at TGE</td></tr><tr><td>Seed Round</td><td align="center">8.0%</td><td align="center">80,000,000</td><td align="center">7%</td><td align="center">9</td><td align="center">18</td><td align="center">5,600,000</td></tr><tr><td>Private Round</td><td align="center">10.0%</td><td align="center">100,000,000</td><td align="center">10%</td><td align="center">6</td><td align="center">12</td><td align="center">10,000,000</td></tr><tr><td>Public Sales</td><td align="center">7.0%</td><td align="center">70,000,000</td><td align="center">25%</td><td align="center">3</td><td align="center">6</td><td align="center">17,500,000</td></tr><tr><td>Team &#x26; Advisors</td><td align="center">15.0%</td><td align="center">150,000,000</td><td align="center">0%</td><td align="center">12</td><td align="center">36</td><td align="center">0</td></tr><tr><td>Ecosystem &#x26; Grants</td><td align="center">25.0%</td><td align="center">250,000,000</td><td align="center">10%</td><td align="center">0</td><td align="center">57</td><td align="center">25,000,00</td></tr><tr><td>Community</td><td align="center">20.0%</td><td align="center">200,000,000</td><td align="center">5%</td><td align="center">0</td><td align="center">60</td><td align="center">10,000,000</td></tr><tr><td>Liquidity &#x26; Staking</td><td align="center">10.0%</td><td align="center">100,000,000</td><td align="center">0%</td><td align="center">0</td><td align="center">12</td><td align="center">45,000,000</td></tr><tr><td>Treasury</td><td align="center">5.0%</td><td align="center">50,000,000</td><td align="center">0%</td><td align="center">12</td><td align="center">12</td><td align="center"></td></tr><tr><td>Overall</td><td align="center">100.0%</td><td align="center">1,000,000,000</td><td align="center">10,81%</td><td align="center"> </td><td align="center"> </td><td align="center">108,100,000</td></tr></tbody></table>


# Get DOS Tokens


# Contract Addresses

Discover all the vital contract addresses on DOS Chain.

## DOS ERC-20 Tokens

<table data-full-width="true"><thead><tr><th width="80">Symbol</th><th width="420" align="center">Address</th><th width="100" align="center">Decimals</th><th width="220">Description</th><th width="80" align="center">Logo</th></tr></thead><tbody><tr><td>DOS</td><td align="center">N/A</td><td align="center">18</td><td>DOS native token</td><td align="center"><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FEiW6QP59GsBAjWfrGcoq%2FDOS_icon_256.png?alt=media&amp;token=7ce87c7f-ece6-446a-b2b0-e705ad3c47c9" alt="" data-size="line"></td></tr><tr><td>WDOS</td><td align="center"><a href="https://doscan.io/address/0x1111111111111111111111111111111111111111">0x1111111111111111111111111111111111111111</a></td><td align="center">18</td><td>Wrapped DOS (precompile)</td><td align="center"><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FEiW6QP59GsBAjWfrGcoq%2FDOS_icon_256.png?alt=media&amp;token=7ce87c7f-ece6-446a-b2b0-e705ad3c47c9" alt="" data-size="line"></td></tr><tr><td>USDC</td><td align="center"><a href="https://doscan.io/address/0x2787E8f18da4FC2113268ce8521B7A53df2D5c35">0x2787E8f18da4FC2113268ce8521B7A53df2D5c35</a></td><td align="center">18</td><td>USD Coin</td><td align="center"><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2F6WqaV9g2KDjQkPuNcIr5%2FCircle_USDC.png?alt=media&amp;token=2bb24631-8a61-4ef6-9bed-bd50ca6d0041" alt="" data-size="line"></td></tr><tr><td>HE</td><td align="center"><a href="https://doscan.io/address/0x3F8fF8A3d0dC82Fc21fd93db5df7a83716Bd71E9">0x3F8fF8A3d0dC82Fc21fd93db5df7a83716Bd71E9</a></td><td align="center">18</td><td>Heroes &#x26; Empires token</td><td align="center"><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FFZNw0kn7s57hJmKDEFfY%2Ftokenicon.png?alt=media&amp;token=ddee9141-58d4-4c75-b775-587228635847" alt="" data-size="line"></td></tr></tbody></table>

## Bridge Contracts

<table data-full-width="false"><thead><tr><th width="285">Contract</th><th width="460">Address</th></tr></thead><tbody><tr><td>LayerZero HE Bridge</td><td><a href="https://doscan.io/address/0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9">0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9</a></td></tr><tr><td>LayerZero DOS Bridge</td><td><a href="https://doscan.io/address/0xbd6743653cf679cc061aA7153750A3b34d3610a4">0xbd6743653cf679cc061aA7153750A3b34d3610a4</a></td></tr><tr><td>MetaDOS Asset</td><td><a href="https://doscan.io/address/0x5b8671aea1b84F697427eabB204ffE4BB342333F">0x5b8671aea1b84F697427eabB204ffE4BB342333F</a></td></tr><tr><td>Gasless Forwarder</td><td><a href="https://doscan.io/address/0xfd41dBd4d540363Ad8CAc7d37377a047a75D7a19">0xfd41dBd4d540363Ad8CAc7d37377a047a75D7a19</a></td></tr><tr><td>Proxy Forwarder Upgradeable</td><td><a href="https://doscan.io/address/0x89CaB4B725d84965C3dbB637CA16A080Ced4C8aA">0x89CaB4B725d84965C3dbB637CA16A080Ced4C8aA</a></td></tr><tr><td>OverMint Admin Proxy</td><td><a href="https://doscan.io/address/0x475c8Ed03502270Ba815E3F2C03b9a270DBb93d2">0x475c8Ed03502270Ba815E3F2C03b9a270DBb93d2</a></td></tr><tr><td>OverMint Fee Manager Proxy</td><td><a href="https://doscan.io/address/0xb250adbB535D024d0A8e461d0eCD77D859359409">0xb250adbB535D024d0A8e461d0eCD77D859359409</a></td></tr></tbody></table>

## LayerZero V2 Protocol (EID 30149)

Docs: <https://docs.layerzero.network/v2/deployments/chains/dos>

<table data-full-width="false"><thead><tr><th width="285">Contract</th><th width="541">Address</th></tr></thead><tbody><tr><td>EndpointV2</td><td><a href="https://doscan.io/address/0x1a44076050125825900e736c501f859c50fE728c">0x1a44076050125825900e736c501f859c50fE728c</a></td></tr><tr><td>EndpointV2View</td><td><a href="https://doscan.io/address/0xCFc3f9dD0205b76FF04e20243f106465Dd829656">0xCFc3f9dD0205b76FF04e20243f106465Dd829656</a></td></tr><tr><td>SendUln302</td><td><a href="https://doscan.io/address/0x72C91c46d7033dfF1707091Ef32D4951a73bD099">0x72C91c46d7033dfF1707091Ef32D4951a73bD099</a></td></tr><tr><td>ReceiveUln302</td><td><a href="https://doscan.io/address/0xEF7781FC1C4F7B2Fd3Cf03f4d65b6835b27C1A0d">0xEF7781FC1C4F7B2Fd3Cf03f4d65b6835b27C1A0d</a></td></tr><tr><td>Executor</td><td><a href="https://doscan.io/address/0x5B23E2bAe5C5f00e804EA2C4C9abe601604378fa">0x5B23E2bAe5C5f00e804EA2C4C9abe601604378fa</a></td></tr><tr><td>LZ Executor</td><td><a href="https://doscan.io/address/0xBB967E3A329F4c47F654B82a2F7d11E69E5A7143">0xBB967E3A329F4c47F654B82a2F7d11E69E5A7143</a></td></tr><tr><td>BlockedMessageLib</td><td><a href="https://doscan.io/address/0x1ccbf0db9c192d969de57e25b3ff09a25bb1d862">0x1ccbf0db9c192d969de57e25b3ff09a25bb1d862</a></td></tr><tr><td>DeadDVN</td><td><a href="https://doscan.io/address/0x4474B891BF3d93e61676912F0739e04B86232dd5">0x4474B891BF3d93e61676912F0739e04B86232dd5</a></td></tr></tbody></table>

### DVNs (Data Verification Networks)

<table data-full-width="false"><thead><tr><th width="200">DVN</th><th width="450">Address</th><th>Version</th></tr></thead><tbody><tr><td>LayerZero Labs</td><td><a href="https://doscan.io/address/0x203dfa8cbcbe234821da01a6e95fcbf92da065ea">0x203dfa8cbcbe234821da01a6e95fcbf92da065ea</a></td><td>v2</td></tr><tr><td>Nethermind</td><td><a href="https://doscan.io/address/0xacde1f22eeab249d3ca6ba8805c8fee9f52a16e7">0xacde1f22eeab249d3ca6ba8805c8fee9f52a16e7</a></td><td>v2</td></tr><tr><td>BCW Group</td><td><a href="https://doscan.io/address/0x2ac038606fff3fb00317b8f0ccfb4081694acdd0">0x2ac038606fff3fb00317b8f0ccfb4081694acdd0</a></td><td>v2</td></tr><tr><td>Horizen</td><td><a href="https://doscan.io/address/0x33e5fcc13d7439cc62d54c41aa966197145b3cd7">0x33e5fcc13d7439cc62d54c41aa966197145b3cd7</a></td><td>v2</td></tr><tr><td>Canary</td><td><a href="https://doscan.io/address/0x45a7305c65aad28384f20a80f87a5183772e4f70">0x45a7305c65aad28384f20a80f87a5183772e4f70</a></td><td>v2</td></tr><tr><td>TSS</td><td><a href="https://doscan.io/address/0xa6bf2be6c60175601bf88217c75dd4b14abb5fbb">0xa6bf2be6c60175601bf88217c75dd4b14abb5fbb</a></td><td>v1</td></tr></tbody></table>

### V1 Legacy Contracts

<table data-full-width="false"><thead><tr><th width="285">Contract</th><th width="541">Address</th></tr></thead><tbody><tr><td>Endpoint V1</td><td><a href="https://doscan.io/address/0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4">0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4</a></td></tr><tr><td>UltraLightNodeV2</td><td><a href="https://doscan.io/address/0xFe7C30860D01e28371D40434806F4A8fcDD3A098">0xFe7C30860D01e28371D40434806F4A8fcDD3A098</a></td></tr><tr><td>SendUln301</td><td><a href="https://doscan.io/address/0x79089C4eD119900839AdD13a1a8F0298ABFC4aa2">0x79089C4eD119900839AdD13a1a8F0298ABFC4aa2</a></td></tr><tr><td>ReceiveUln301</td><td><a href="https://doscan.io/address/0x94fE59AfAff2d0a8Ea6e8158FeB7C65410867a9b">0x94fE59AfAff2d0a8Ea6e8158FeB7C65410867a9b</a></td></tr><tr><td>NonceContract</td><td><a href="https://doscan.io/address/0x2D61DCDD36F10b22176E0433B86F74567d529aAa">0x2D61DCDD36F10b22176E0433B86F74567d529aAa</a></td></tr><tr><td>TreasuryV2</td><td><a href="https://doscan.io/address/0x6F475642a6e85809B1c36Fa62763669b1b48DD5B">0x6F475642a6e85809B1c36Fa62763669b1b48DD5B</a></td></tr><tr><td>RelayerV2</td><td><a href="https://doscan.io/address/0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9">0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9</a></td></tr></tbody></table>

## Tools Contracts

<table><thead><tr><th width="235">Contract</th><th></th></tr></thead><tbody><tr><td>CreateX Factory</td><td><a href="https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed">0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed</a></td></tr><tr><td>Multicall3</td><td><a href="https://doscan.io/address/0xcA11bde05977b3631167028862bE2a173976CA11">0xcA11bde05977b3631167028862bE2a173976CA11</a></td></tr></tbody></table>


# Validators

A blockchain validator is someone who is responsible for verifying transactions on a blockchain. Once transactions are verified, they are added to the distributed ledger. In proof of stake (PoS) systems like [﻿](https://doschain.com/)**DOS Chain**, our validators are given [rewards](http://support.avalabs.org/en/articles/4587396-what-are-validator-staking-rewards) as long as they correctly participate in the network. This mechanism helps secure the network by imposing the need to lock up value in the network in order to participate in the consensus decisions.

Validators will form the backbone of our DOS network. Each validator processing transactions and participating in consensus will enable DOS to become the most secure and safe network in the world.

A Subnet requires validators that secure both the Subnet, and the primary network (X,P, and C chain). It is up to the node operator to ensure the optimal health of the node.

#### **Hardware requirements and bandwidth:** <a href="#qwi6s" id="qwi6s"></a>

DOS is an incredibly lightweight network, so nodes can run on commodity hardware. Note that as network usage increases, hardware requirements may change.

* CPU: Equivalent of 8 AWS vCPU
* RAM: 16 GB
* Storage: 1 TB
* OS: Ubuntu 20.04 or MacOS >= 12

### Validator Rewards <a href="#o-lx7" id="o-lx7"></a>

When a [Validator](broken://pages/oqa6hZZA5xDX4VgBY5gZ)﻿ is done validating the transaction it receives a reward for helping to secure the network by validating. A validator only receives a validation reward if it is sufficiently responsive and correct during the time it validates. A validator must maintain at least an 80% uptime to receive rewards.

To be able to validate DOS Chain, the node must have a validator of Avalanche Network.

To learn more about Validators on Avalanche, please read the following [article](https://support.avax.network/en/articles/6187511-validator-faq).


# Run a Mainnet Node on DOS Chain

### Introduction <a href="#lke9o" id="lke9o"></a>

This article describes how to run a Mainnet node on [DOS Chain](https://doscan.io/). The following necessary steps are needed to run your node on the DOS Chain:

1. Install AvalancheGo using the Install Script
2. Download the plugin binary for the DOS Subnet-EVM
3. Track the DOS Subnet
4. Connect to the DOS Subnet!

This install script assumes:

* AvalancheGo is not running and not already installed as a service
* User running the script has superuser privileges (can run sudo)

Official documents from Avalanche:

{% embed url="<https://docs.avax.network/nodes/run/subnet-node>" %}

### Install AvalancheGo using the Install Script <a href="#id-5d2kj" id="id-5d2kj"></a>

First, you need to download and install AvalancheGo (handles the orchestration of running Custom VMs). You can follow [this comprehensive guide](https://docs.avax.network/nodes/build/set-up-node-with-installer) to complete this step. For this tutorial, we recommend using the AvalancheGo Installer.

**Notes:** Some configurations you should notice:

* Enter your connection type \[1,2]: **2**
* RPC port should be public (this is a public API node) or private (this is a validator)? \[public, private]: **private**
* Detected 'x.x.x.x' as your public IP. Is this correct? \[y,n]: **y**
* **Done**

Notes:

* Your node should now be bootstrapping. Node configuration file is /home/DOS/.avalanchego/configs/node.json&#x20;
* C-Chain configuration file is /home/DOS/.avalanchego/configs/chains/C/config.json
* Plugin directory, for storing subnet VM binaries, is /home/DOS/.avalanchego/plugins
* To check that the service is running use the following command (q to exit): `sudo systemctl status avalanchego`&#x20;
* To follow the log use (ctrl-c to stop): `sudo journalctl -u avalanchego -f`

### Get the ID, the BLS key, and the proof of possession(BLS signature) of this node

* `nodeID` Node ID is the unique identifier of the node that you set to act as a validator on the Primary Network.
* `nodePOP` is this node's BLS key and proof of possession. Nodes must register a BLS key to act as a validator on the Primary Network. Your node's POP is logged on startup and is accessible over this endpoint.
  * `publicKey` is the 48 byte hex representation of the BLS key.
  * `proofOfPossession` is the 96 byte hex representation of the BLS signature.

To get these info:

```
curl -X POST --data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"info.getNodeID"
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info
```

### Install Avalanche CLI <a href="#uxyy9" id="uxyy9"></a>

<https://docs.avax.network/tooling/cli-guides/install-avalanche-cli>

{% embed url="<https://docs.avax.network/tooling/cli-guides/install-avalanche-cli>" %}

## Run a Subnet Node

<https://build.avax.network/docs/nodes/run-a-node/avalanche-l1-nodes>

{% embed url="<https://build.avax.network/docs/nodes/run-a-node/avalanche-l1-nodes>" %}

### Option1: Build Subnet Binaries[​](https://docs.avax.network/nodes/run/subnet-node#manage-the-subnet-binaries) <a href="#manage-the-subnet-binaries" id="manage-the-subnet-binaries"></a>

*After building AvalancheGo successfully,*

#### 1. Clone [Subnet-EVM](https://github.com/ava-labs/subnet-evm)[​](https://docs.avax.network/nodes/run/subnet-node#1-clone-subnet-evm) <a href="#id-1-clone-subnet-evm" id="id-1-clone-subnet-evm"></a>

```
cd $GOPATH/src/github.com/ava-labs
git clone https://github.com/ava-labs/subnet-evm.git
```

#### 2. Build the Binary and Save as a Plugin[​](https://docs.avax.network/nodes/run/subnet-node#2-build-the-binary-and-save-as-a-plugin) <a href="#id-2-build-the-binary-and-save-as-a-plugin" id="id-2-build-the-binary-and-save-as-a-plugin"></a>

In the Subnet-EVM directory, run the build script, and save it in the “plugins” folder of your `.avalanchego` data directory. Name the plugin after the `VMID` of the Subnet you wish to track. The `VMID` of the DOS Chain is the value beginning with “X5tF...”.

```
cd $GOPATH/src/github.com/ava-labs/subnet-evm
./scripts/build.sh ~/.avalanchego/plugins/X5tFvg9JwoXgaYPQbceSzhGoCF6dhwrDm5BnAav6meFp3xxmg
```

<details>

<summary>Where can I find Subnet parameters like VMID?</summary>

VMID, Subnet ID, ChainID, and all other parameters can be found in the "Chain Info" section of the Subnet Explorer.

* [Avalanche Mainnet](https://subnets.avax.network/c-chain)
* [Fuji Testnet](https://subnets-test.avax.network/wagmi)

</details>

### Option 2: Download subnet-evm Binary <a href="#uxyy9" id="uxyy9"></a>

*For the steps below, we will assume that you completed first step successfully and are now in your AvalancheGo directory (within your $GOPATH).*

Next, you will download the DOS-EVM binary (please notice that we use the same Binary file with the Ava Labs repo):

Download and unzip the latest subnet evm at: <https://github.com/ava-labs/subnet-evm/releases>

{% @github-files/github-code-block url="<https://github.com/ava-labs/subnet-evm/releases>" %}

The long string `X5tFvg9JwoXgaYPQbceSzhGoCF6dhwrDm5BnAav6meFp3xxmg` is the CB58 encoded VMID of the DOS Subnet-EVM. AvalancheGo will use the name of this file to determine what VMs are available to run from the plugins directory.

### Tracking DOS Chain and Restarting the Node <a href="#id-5rks9" id="id-5rks9"></a>

#### Joining DOS Subnet[​](https://docs.avax.network/build/subnet/deploy/on-prod-infra#joining-a-subnet) <a href="#joining-a-subnet" id="joining-a-subnet"></a>

For a node to join a Subnet, there are two prerequisites:

* Primary Network validation
* Subnet tracking

Primary Network validation means that a node cannot join a Subnet as a validator before becoming a validator on the Primary Network itself. So, after you add the node to the validator set on the Primary Network, node can join a Subnet.&#x20;

To have a node start syncing the Subnet, you need to add the `--track-subnets` command line option, or `track-subnets` key to the node config file (found at `.avalanchego/configs/node.json` for installer-script created nodes). A single node can sync multiple Subnets, so you can add them as a comma-separated list of Subnet IDs.

An example of a node config syncing two Subnets:

```
{
  "public-ip-resolution-service": "opendns",
  "http-host": "",
  "track-subnets": "nQCwF6V9y8VFjvMuPeQVWWYn6ba75518Dpf6ZMWZNb3NyTA94,Ai42MkKqk8yjXFCpoHXw7rdTWSHiKEMqh5h8gbxwjgkCUfkrk"
}
```

But that is not all. Besides tracking the SubnetID, the node also needs to have the plugin that contains the VM instance the blockchain in the Subnet will run.&#x20;

If you want to inspect the process of Subnet syncing, you can use the RPC call to check for the blockchain status.&#x20;

**Example Call:**

```
curl -X POST --data '{
    "jsonrpc": "2.0",
    "method": "platform.getBlockchainStatus",
    "params":{
        "blockchainID":"22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv"
    },
    "id": 1
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/P
```

**Example Response:**

```
{
  "jsonrpc": "2.0",
  "result": {
    "status": "Validating"
  },
  "id": 1
}
```

### Running the Node <a href="#e9pzu" id="e9pzu"></a>

First, make sure to shut down your node in case it is still running. Then, you will navigate back into the AvalancheGo directory:

If you went through the steps to set up a config file, then you can launch your node by specifying the config file on the command line:

```
./build/avalanchego --config-file ~/.avalanchego/configs/node.json
```

If you want to track the Subnets through the command-line flag. You can append the other flags or even the --config-file flag as well, according to your need.

```
./build/avalanchego --track-subnets nQCwF6V9y8VFjvMuPeQVWWYn6ba75518Dpf6ZMWZNb3NyTA94
```

### Import DOS Chain Subnet

You firstly import DOS Chain using subnet import public  since DOS Chain is already live.

```
~/.avalanchego$ avalanche subnet import public "DOS Chain"
✔ Mainnet
Provide the path to the genesis file: /home/DOS/.avalanchego/configs/genesis.json
✔ Yes
Please provide an API URL of such a node so we can query its VM version (e.g. http://111.22.33.44:5555): http://20.6.105.146:9650
What is the ID of the blockchain?: 22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv
Getting information from the Mainnet network...
Retrieved information. BlockchainID: 22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv, SubnetID: nQCwF6V9y8VFjvMuPeQVWWYn6ba75518Dpf6ZMWZNb3NyTA94, Name: DOS Chain, VMID: X5tFvg9JwoXgaYPQbceSzhGoCF6dhwrDm5BnAav6meFp3xxmg
✔ Subnet-EVM
Subnet "DOS Chain" imported successfully
```

To see the Subnet Config:

`avalanche subnet describe "DOS Chain"`

```
avalanche subnet describe "DOS Chain"
```

#### Config Chain <a href="#id-7mifm" id="id-7mifm"></a>

DOS Chain allows the node operator to provide some custom configurations. The config file for DOS Chain is located at \~/.avalanchego/configs/chains/22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv/config.json

The content of config.json file should be like:

{ "feeRecipient": "0x50B65C1e3206621b6f9A5Ab2950Ae69f20634b82",//input your wallet }

### Just Want the Commands? We Got You <a href="#iavke" id="iavke"></a>

And finally, share us your **nodeID**.

## Run Another Node

You can reduce the node boostraping time by copying the database.

### **Database Copy**[**​**](https://docs.avax.network/build/subnet/deploy/on-prod-infra#database-copy)

Good way to cut down on bootstrap times on multiple nodes is database copy. Database is identical across nodes, and as such can safely be copied from one node to another. Just make sure to that the node is not running during the copy process, as that can result in a corrupted database. Database copy procedure is explained in detail [here](https://docs.avax.network/nodes/maintain/node-backup-and-restore#database).

Please make sure you don't reuse any node's NodeID by accident, especially don't restore another node's ID, see [here](https://docs.avax.network/nodes/maintain/node-backup-and-restore#nodeid) for details. Each node must has its own unique NodeID, otherwise, the nodes sharing the same ID will not behave correctly, which will impact your validator's uptime, thus staking rewards, and the stability of your Subnet.

{% embed url="<https://docs.avax.network/nodes/maintain/node-backup-and-restore#database>" %}


# How to add validator to DOS Chain with WSL

## Avalanche + Ledger trong WSL (Windows 11) — Hướng dẫn đầy đủ

> Tài liệu này giúp thiết lập và kiểm thử ký giao dịch Avalanche bằng Ledger (Nano S/S+/X hoặc Stax) trong WSL2 (Ubuntu) trên Windows 11. Các bước chỉ đọc/kiểm thử đều không broadcast, an toàn để chạy.

***

### 0) Điều kiện

* Windows 11 + WSL2 (Ubuntu 22.04/24.04 hoặc 24.10).
* Ledger đã cài **Avalanche app** trong Ledger Live.
* Khi ký thật: **đóng Ledger Live** và mọi ví trên Windows.

***

### 1) Cài `usbipd` (Windows) và passthrough Ledger cho WSL

Mở **PowerShell (Run as Administrator)**:

```powershell
# Cài usbipd
winget install usbipd

# Liệt kê USB để tìm Ledger (VID 2c97)
usbipd list

# Bind (chỉ làm lần đầu cho thiết bị đó)
usbipd bind --busid <BUSID>

# Attach vào WSL (mỗi lần cắm lại hoặc sau reboot Windows)
usbipd attach --wsl --busid <BUSID>

# Kiểm tra lại
usbipd list
```

Trong **WSL (Ubuntu)** xác nhận thiết bị đã vào:

```bash
lsusb | grep -i 2c97          # thấy 2c97:xxxx (Stax: 6000, Nano X: 4000)
ls -l /dev/hidraw*            # có hidraw node
```

***

### 2) Bật systemd trong WSL (để udev hoạt động chuẩn)

Trong **WSL (Ubuntu)**:

```bash
sudo tee /etc/wsl.conf >/dev/null <<'INI'
[boot]
systemd=true
INI
```

Trên **Windows (PowerShell)**:

```powershell
wsl --shutdown
```

Mở lại **Ubuntu WSL**, kiểm tra:

```bash
systemctl status systemd-udevd   # phải active (running)
```

***

### 3) Cài Avalanche-CLI trong WSL

```bash
curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-cli/main/scripts/install.sh | sh -s

# Đảm bảo ~/bin đã có trong PATH (idempotent đã cấu hình ở ~/.bashrc)
source ~/.bashrc

avalanche --version
```

***

### 4) Udev rules cho Ledger trong WSL

```bash
# Cài rules chính thức từ LedgerHQ
curl -fsSL https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash

# Đảm bảo user thuộc nhóm plugdev
getent group plugdev || sudo groupadd plugdev
sudo usermod -aG plugdev "$USER"

# Áp rules
sudo udevadm control --reload-rules
sudo udevadm trigger

# Nếu vừa thêm group: đóng WSL rồi mở lại (Windows: wsl --shutdown)
```

Kỳ vọng sau khi re-attach Ledger:

```bash
ls -l /dev/hidraw*
# Ví dụ:
# crw-rw---- 1 root plugdev ... /dev/hidraw0
# crw-rw---- 1 root plugdev ... /dev/hidraw1
```

***

### 5) Kiểm thử an toàn (không ký, không broadcast)

#### 5.1 Kiểm HID mở được (Python, tùy chọn)

```bash
python3 - <<'PY'
import hid, sys
V, P = 0x2c97, 0x6000  # Stax; nếu Nano X: P=0x4000
devs = [d for d in hid.enumerate(V, P)]
print("Found", len(devs), "Ledger interface(s)")
try:
    h = hid.device()
    h.open(V, P)  # chỉ open, không gửi APDU
    print("HID OPEN OK")
    h.close()
except Exception as e:
    print("HID OPEN FAIL:", e); sys.exit(2)
PY
```

#### 5.2 Liệt kê địa chỉ trên Fuji (chỉ đọc)

> Mở khóa Ledger và mở **app Avalanche** trước.

```bash
avalanche key list --ledger 0 --fuji
```

#### 5.3 Liệt kê địa chỉ Mainnet bằng alias (chỉ đọc)

```bash
# Đặt tên (alias) cho index 0 trên Ledger — chỉ tạo bí danh cục bộ, không tạo private key
avalanche key import ledger --name stax0 --ledger 0

# Liệt kê địa chỉ theo tên trên mainnet
avalanche key list --keys stax0 --mainnet
```

***

### 6) (Tùy chọn) Import metadata blockchain vào local

Không bắt buộc. Dùng khi muốn đặt tên và tái sử dụng cấu hình chain gọn hơn. Nếu bản CLI hỗ trợ:

```bash
avalanche blockchain import \
  --rpc https://main.doschain.com \
  --blockchain-id 22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv \
  --name dos-main

avalanche blockchain list
avalanche blockchain describe dos-main
```

Sau đó có thể dùng `dos-main` thay cho `--rpc`/`--blockchain-id` trong các lệnh khác.\
Nếu CLI của bạn chưa có `blockchain import`, bỏ qua bước này (không ảnh hưởng thao tác qua `--rpc`).

***

### 7) Ký Add Validator (khi cần)

Chuẩn bị Ledger: mở khóa PIN, vào **app Avalanche**.

```bash
unset LEDGER_DEVICE
# Dùng trực tiếp RPC:
avalanche blockchain addValidator --rpc https://main.doschain.com

# Hoặc nếu đã import và đặt tên:
# avalanche blockchain addValidator --blockchain-name dos-main
```

Điền: **Mainnet**, BlockchainID (nếu chưa import), NodeID, Weight, Start/End time. Xác nhận ký trên Ledger.

***

### 8) Kiểm tra trạng thái

```bash
avalanche blockchain list
avalanche blockchain describe "TEN_BLOCKCHAIN"
avalanche blockchain validators "TEN_BLOCKCHAIN" --mainnet
avalanche blockchain stats "TEN_BLOCKCHAIN" --mainnet
```

***

### 9) Sau mỗi lần reboot Windows

```powershell
# PowerShell (Run as Administrator)
usbipd attach --wsl --busid <BUSID>
```

Rồi vào WSL xác nhận `lsusb | grep -i 2c97`.

***

### 10) Troubleshooting nhanh

* **WSL không thấy Ledger**
  * Windows: `usbipd list` → `usbipd attach --wsl --busid <BUSID>`
  * WSL: `lsusb | grep -i 2c97`, kiểm tra `/dev/hidraw*`
* **`hidapi: failed to open device`**
  * `systemd-udevd` phải running
  * `/dev/hidraw*` phải `root:plugdev` và `0660`
  * User thuộc `plugdev`
  * Đóng Ledger Live và ví khác trên Windows
  * Rút cắm lại, rồi:

    ```powershell
    usbipd detach --busid <BUSID>
    usbipd attach --wsl  --busid <BUSID>
    ```
  * Có thể bật log:

    ```bash
    LEDGER_LOG_LEVEL=debug avalanche blockchain addValidator --rpc https://main.doschain.com
    ```
* **`avalanche` không vào PATH**
  * `source ~/.bashrc`
  * Đảm bảo cuối file chỉ có **một** khối idempotent thêm `~/bin`.

***

### Phụ lục: Mẫu khối PATH idempotent cho `~/.bashrc`

```bash
# ensure ~/bin is in PATH (idempotent)
case ":$PATH:" in
  *":$HOME/bin:"*) ;;
  *) export PATH="$HOME/bin:$PATH" ;;
esac
```

***

**Ghi chú:** Không bắt buộc “import blockchain về local.” Dùng `--rpc` là thao tác được ngay. Import chỉ để đặt tên, lưu metadata cục bộ cho tiện dùng lại.


# Monitor and troubleshoot your validator

### Resource <a href="#qbe89" id="qbe89"></a>

* <https://docs.avax.network/apis/avalanchego/apis/info>
* <https://docs.avax.network/apis/avalanchego/apis/health>

### &#x20;<a href="#id-8hete" id="id-8hete"></a>

## Backup And Restore

<https://docs.avax.network/nodes/maintain/node-backup-and-restore>

{% embed url="<https://docs.avax.network/nodes/maintain/node-backup-and-restore>" %}

### How to check avalanchego logs? <a href="#id-8hete" id="id-8hete"></a>

tail .avalanchego/logs/main.log

### How to check the subnet successfully deployed?  <a href="#jayq1" id="jayq1"></a>

if the logs file contain these lines:

\[04-17|15:50:45.332] INFO server/server.go:269 adding route {"url": "/ext/bc/22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv", "endpoint": "/rpc"} \[04-17|15:50:45.332] INFO server/server.go:269 adding route {"url": "/ext/bc/22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv", "endpoint": "/ws"}

### If you place the subnet-evm in wrong directory or wrong file name, what happens?  <a href="#h7tlg" id="h7tlg"></a>

You will find this line:

ERROR node/node.go:849 failed to register VM {"vmID": "X5tFvg9JwoXgaYPQbceSzhGoCF6dhwrDm5BnAav6meFp3xxmg", "error": "handshake failed: vm process not found"}

### how to get node information?  <a href="#tvjzi" id="tvjzi"></a>

curl -X POST --data '{ "jsonrpc":"2.0", "id" :1, "method" :"info.getNodeID" }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info

sample output:

{ "jsonrpc": "2.0", "result": { "nodeID": "NodeID-5mb46qkSBj81k9g9e4VFjGGSbaaSLFRzD", "nodePOP": { "publicKey": "0x8f95423f7142d00a48e1014a3de8d28907d420dc33b3052a6dee03a3f2941a393c2351e354704ca66a3fc29870282e15", "proofOfPossession": "0x86a3ab4c45cfe31cae34c1d06f212434ac71b1be6cfe046c80c162e057...." } }, "id": 1 }

### Make sure your node healthy: <a href="#wa6ue" id="wa6ue"></a>

curl -X POST --data '{ "jsonrpc":"2.0", "id" :1, "method" :"health.health" }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/health

Your should see the words "healthy": true in the response object.


# About Us

Founded by industry veterans, DOS Labs is focused on elevating the Web3 gaming experience for both players and developers.

We Are Game Developers

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2Fff9aIsD2hUC90IGWj8bj%2F2025-04-13_11-49-23.png?alt=media&amp;token=19884958-5a7a-44fe-b605-c7e269edb28a" alt=""><figcaption><p>About DOS Labs</p></figcaption></figure>

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FbB87kSYpJvDtOyvJ0tA4%2F2025-04-12_21-38-17.png?alt=media&amp;token=c89da07b-d53a-4349-8a30-2f0ffff0eef4" alt=""><figcaption><p>Based on developers and users need</p></figcaption></figure>

## DOS Alliance - Game Studios & Production

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2F0YVVsoGTGTjQfK1TEz2Z%2F2025-04-13_11-51-21.png?alt=media&amp;token=a2a2eac1-1f18-4d09-8890-7ca361ffff2c" alt=""><figcaption><p>20+ members and counting</p></figcaption></figure>

## Largest Game Developer Community in Asia

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FUlEdy9BPlU02VRG9xZ3B%2F2025-04-13_11-53-57.png?alt=media&amp;token=b3c04006-0372-4fe9-b880-ef02e3a8d96e" alt=""><figcaption></figcaption></figure>

## Our Core Team

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FOSnn0tTOHZls0Ab6vZ6H%2Fimage.png?alt=media&amp;token=ec84d644-0a3e-423b-b533-6bfd64229064" alt=""><figcaption><p>Core Team</p></figcaption></figure>


# Roadmap

DOS Chain official roadmap

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2F5ywdoTcnh5xU4MFYfylj%2Fimage.png?alt=media&amp;token=c2bad85f-867c-40ef-8aad-95f778e2460b" alt=""><figcaption><p>DOS Chain official roadmap</p></figcaption></figure>

You can also find the feature roadmap and share your suggestion at:

{% embed url="<https://roadmap.doschain.com/roadmap>" %}


# Migrate to DOS Chain


# Polygon

In this article, we'll discuss how to migrate deployed tokens from Polygon to DOS and also the migration of vested tokens.

### Token migration <a href="#qzr8x" id="qzr8x"></a>

#### ﻿[​](https://docs.bnbchain.org/docs/migration/evm-chains/token-migration#token-migration)Pre-requisites  <a href="#jvkto" id="jvkto"></a>

### Creating ERC-20 Token on DOS <a href="#j0zua" id="j0zua"></a>

### Bridging Tokens from Polygon to BSC <a href="#id-9e6lp" id="id-9e6lp"></a>

#### LayerZero Bridge <a href="#l9ium" id="l9ium"></a>

### Migrating Vested Token from Polygon to DOS <a href="#i5dgf" id="i5dgf"></a>

#### Migrating Vesting Contract <a href="#mnefs" id="mnefs"></a>

#### Migrating Vesting Tokens[​](https://docs.bnbchain.org/docs/migration/evm-chains/token-migration#migrating-vesting-tokens)﻿ <a href="#id-2mtsh" id="id-2mtsh"></a>


# BNB Chain

In this article, we'll discuss how to migrate deployed tokens from Polygon to DOS and also the migration of vested tokens.

### Token migration <a href="#qzr8x" id="qzr8x"></a>

#### ﻿[​](https://docs.bnbchain.org/docs/migration/evm-chains/token-migration#token-migration)Pre-requisites  <a href="#jvkto" id="jvkto"></a>

### Creating ERC-20 Token on DOS <a href="#j0zua" id="j0zua"></a>

### Bridging Tokens from BNB Chain to DOS <a href="#id-9e6lp" id="id-9e6lp"></a>

#### LayerZero Bridge <a href="#l9ium" id="l9ium"></a>

### Migrating Vested Token from BNB Chain to DOS <a href="#i5dgf" id="i5dgf"></a>

#### Migrating Vesting Contract <a href="#mnefs" id="mnefs"></a>

#### Migrating Vesting Tokens[​](https://docs.bnbchain.org/docs/migration/evm-chains/token-migration#migrating-vesting-tokens)﻿ <a href="#id-2mtsh" id="id-2mtsh"></a>


# Ecosystem OverView

### NFT Marketplace - OverMint <a href="#ak46x" id="ak46x"></a>

### Built-in Wallet - DOSafe <a href="#id-5mxxd" id="id-5mxxd"></a>

### Blockchain Explorer - DOScan <a href="#if65w" id="if65w"></a>

### Decentralized Exchange - DOSwap <a href="#kcjq" id="kcjq"></a>


# DOS Bridge

## LayerZero Addresses

#### DOS Testnet <a href="#id-0u7_u" id="id-0u7_u"></a>

* chainId: 10162
* endpoint: 0x45841dd1ca50265Da7614fC43A361e526c0e6160

#### DOS Mainnet <a href="#tomnd" id="tomnd"></a>

* chainId: 149
* Endpoint: 0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4

Bridging tokens from and to DOS is powered by the [LayerZero protocol](https://layerzero.network/). To learn more about it and how to use it in your own project, visit our [Omnichain token](https://docs.doschain.com/contract-addresses) guide.

## LayerZero Bridge Guide

{% hint style="info" %}
Ensure you understand the risks and technical details of the LayerZero Bridge process before proceeding. It is crucial to double-check all transaction details and addresses.
{% endhint %}

{% stepper %}
{% step %}

#### Access Bridge

To access the LayerZero Bridge, navigate to [bridge.doschain.com](https://bridge.doschain.com).
{% endstep %}

{% step %}
Connect your Wallet

1. Once you’re on the bridge page, locate and click on the “Connect Wallet” button.
2. Choose the appropriate wallet type from the list.
3. Follow the prompts to authorize the bridge to interact with your wallet.
   {% endstep %}

{% step %}

#### Choose the Source and Destination

1. Once your wallet is connected, select the asset you wish to bridge from the drop-down list.
2. Choose the destination network (DOS mainnet or testnet) to which you want to bridge the asset.
3. Input the amount you wish to send and provide the destination address.
   {% endstep %}

{% step %}
Confirm and Send

1. Review the transaction details thoroughly.
2. If everything is correct, click on the “Bridge” button to initiate the transaction.
3. Wait for the transaction to be confirmed on the source network and then on the DOS Chain.
   {% endstep %}
   {% endstepper %}

## FAQ

<details>

<summary>What are OFTs?</summary>

OFTs refer to Omnichain Fungible Tokens. These tokens are designed to seamlessly traverse various blockchain networks, making them highly versatile. With OFTs, you can send a token across existing chains and even future ones without the need for liquidity or incurring additional fees.

</details>

<details>

<summary>How do I add my token to the DOS Bridge?</summary>

If you’re a token owner or developer and want your token to be available for bridging on the DOS Chain, please reach out by contacting [the DOS team](mailto:hi@doschain.com).

</details>

<details>

<summary>Are there any fees associated with the bridge?</summary>

While DOS Chain sponsors all the fees of the destination chain when you bridge your tokens to DOS, LayerZero also applies a fee depending on the source network, to cover the transaction costs for bridging. Make sure to always double-check the displayed fee when using [bridge.doschain.com](https://bridge.onbeam.com/). Users should also be aware of standard network transaction fees which might be applicable depending on the source or destination network.

</details>

<details>

<summary>Is the DOS Bridge safe?</summary>

The DOS Bridge is built on top of the robust and secure [LayerZero framework](https://layerzero.network/). However, as with all cryptocurrency transactions, users are advised to be cautious, double-check all details, and understand the risks involved.

</details>

<details>

<summary>How to test the DOS Bridge?</summary>

Test token contracts have been deployed to DOS Testnet and Fuji for bridging purposes.

On the *DOS* testnet, you can obtain DOS tokens from our test faucet tool [https://faucet.doschain.com](https://faucet.doschain.com/)

On *Fuji*, you can bridge the native AVAX token. Obtain these from the [official faucet](https://core.app/tools/testnet-faucet). Once you’ve acquired the tokens, utilize [bridge.doschain.com](https://bridge.doschain.com) as you normally would to transfer them to the DOS Testnet.

</details>


# DOScan

DOS Chain Block Explorer

## DOScan.io

Our self-hosted explorer [doscan.io](https://doscan.io) offers a suite of powerful tools designed to help you track transactions, analyze DOS usage statistics, and access detailed information about validators.

* Search using address, transaction hash, or block ID
* Delve into detailed transaction information
* Access, verify, and interact with smart contract source codes

A Beam Testnet Explorer is also available: [test.doscan.io](https://test.doscan.io/).

## Snowtrace.io

Access the Snowtrace Explorer for DOS at [7979.snowtrace.io](https://7979.snowtrace.io/), which offers tools for enhanced blockchain interaction:

* View transactions, statistics, and validator details
* Search using an address, transaction hash, or block ID
* Explore details about ERC20, ERC721, and ERC1155 tokens
* Delve into detailed transaction information
* Access, verify, and interact with smart contract source codes


# OverMint

NT Marketplace on DOS Chain

## Overview

OverMint is DOS's designated marketplace for buying, selling, and discovering unique gaming Non-Fungible Tokens (NFTs). It serves gamers and enthusiasts eager to exchange in-game assets from their favorite titles, including weapons, characters, cosmetics, accounts, and certificates of ownership. Designed with a seamless user experience, OverMint emphasizes its assets, enabling users to acquire their desired items swiftly.

Explore DOS's native marketplace at [OverMint.com](https://overmint.com).

## Frequently Asked Questions (FAQ)

<details>

<summary>What networks does OverMint support?</summary>

Apart from DOS, OverMint supports assets on Avalanche, BNB, and Ethereum networks.

</details>

<details>

<summary>Are there any fees associated with OverMint transactions?</summary>

OverMint is built on a gasless model, so users do not pay traditional gas fees when minting, buying, or selling NFTs. However, the platform may incorporate minimal royalties set by the creator or project owner.

</details>

<details>

<summary>How does OverMint work?</summary>

OverMint operates on the Seaport Protocol, which has undergone multiple audits and currently leads the industry in terms of reliability. While it allows for customization, the protocol prioritizes security. Trusting in OpenSea, the creators of the protocol, equates to trusting the smart contracts utilized by OverMint.

</details>

Learn More

* [OverMint Guide and Documentation](https://docs.overmint.com/)


# DOS.Me


# DOS.AI


# DOSwap


# DOSafe

## Overview

**DOSafe** is a white-label solution that offers full control over the developer experience, allowing you to own the npm package a developer installs.

* Efficient User Management:  Acts as a gatekeeper ensuring only authorized users gain access.
* Effortless Wallet Setup: Users can create, fund, and use wallets easily.
* Universal Compatibility

Supports browsers, mobile platforms, and Unity for seamless development.

{% hint style="info" %}
DOSafe is a white-label solution that enables you to control the developer experience fully. Essentially, you own the npm package the developer installs.
{% endhint %}

### Features

<table data-header-hidden><thead><tr><th valign="bottom"></th><th valign="bottom"></th></tr></thead><tbody><tr><td valign="bottom"><strong>Features</strong></td><td valign="bottom"><strong>Status</strong></td></tr><tr><td valign="bottom">Authenticate</td><td valign="bottom">✅</td></tr><tr><td valign="bottom">Third-party auth support</td><td valign="bottom">✅</td></tr><tr><td valign="bottom">Embedded wallet</td><td valign="bottom">✅</td></tr><tr><td valign="bottom">Smart wallet infrastructure</td><td valign="bottom">✅</td></tr><tr><td valign="bottom">Mobile Wallet Protocol compatible</td><td valign="bottom">✅</td></tr><tr><td valign="bottom">Themes and customization</td><td valign="bottom">✅</td></tr></tbody></table>

### Get Started

Explore these popular guides to begin. &#x20;

* **Integrate an Ecosystem Wallet with Wagmi**: Learn how to integrate an ecosystem wallet seamlessly using Wagmi.
* **Wallet Connectors**: Utilize an ecosystem wallet with popular wallet connectors to enhance your user experience.
* **Set Up Your DOSafe Wallet**: Follow this step-by-step guide to create your own wallet.


# Overview

DOSafe: Create Your Ideal Wallet with Ease


# Why Ecosystem SDK

### Why DOSafe SDK

Developing a user-friendly wallet poses a major challenge. To address this, we've introduced the DOSafe SDK—a toolkit that streamlines the creation, management, and customization of wallet systems. Ideal for games, marketplaces, or social platforms, DOSafe SDK supports

Explore the live demo of our ecosystem wallet!

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FPLDt9jlrBadgtSrgxDE1%2Fimage.png?alt=media&amp;token=74791534-3d6e-4c3f-82b9-7883700d5b9b" alt=""><figcaption></figcaption></figure>

### Why we build this

Developing a smart wallet system from scratch is a complex challenge. Key tasks include:

* **Infrastructure Preparation**: Set up for transaction sponsorship and bundling.
* **Signer Implementation**: Incorporate signers to manage ownership.
* **Smart Contract Selection**: Choose appropriate smart contracts for accounts.
* **Authentication Setup**: Establish secure authentication processes.

Choosing a third-party provider to manage your system can be a practical decision. However, it is essential for the provider to offer flexibility, allowing adjustments to meet your specific needs and reduce the risk of vendor lock-in. Additionally, prioritize a smooth developer experience to avoid wasting time on implementing complex interactions, like a wallet system.

### **What's in the box?**

Here's the cool stuff you get with the DOSafe SDK:

* **Universal Compatibility**: Our solution supports development across browsers, mobile platforms, and Unity.
* **Effortless Wallet Setup**: Users can swiftly create, fund, and start using their wallets.
* **Efficient User Management**: Acts as a gatekeeper, ensuring only authorized users gain access.

### **How it all fits together**

The DOSafe SDK is structured like a well-organized kitchen featuring three main stations:&#x20;

1\.     Developer Integration Layer: Where you set up your integration&#x20;

2\.     Client-Wallet Communication: The service window where orders (transactions) are handled&#x20;

3\.     Blockchain Interaction: Where the magic occurs blockchainGetting started

### DOSafe SDK Architecture

The DOSafe SDK is organized into three main components, each serving a specific purpose, similar to distinct stations in a well-organized kitchen:

1. **Developer Integration Layer**: This is where you configure your integration, setting up the necessary components for seamless functionality.
2. **Client-Wallet Communication**: This acts as the service window where transactions are initiated and processed.
3. **Blockchain Interaction**: This is the core area where blockchain magic happens, managing the intricate operations of

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FjZ7i3686QmSw6IaAHHhW%2Fimage.png?alt=media&amp;token=57f35cde-39c8-4942-b188-e8ced5440d74" alt=""><figcaption></figcaption></figure>

### The main ingredients

#### Custom Wallet SDK Integration

This serves as the main coordinator for your application, managing everything from designing a custom wallet SDK to overseeing pop-ups and transactions. The best part? It operates directly within your app's front end and can be customized with your brand's colors. It also includes built-in security features and integrates seamlessly with

{% hint style="info" %}
The Client SDK supports EIP-1193, ensuring seamless integration with popular
{% endhint %}

**Communication Module**

Meet your dedicated maître d', designed to facilitate seamless interactions between clients and their wallets. It assists newcomers with setting up non-custodial wallets and operates smoothly in any browser environment. For more detailed information, please refer to our comprehensive

**Framework Prefabs**

Similar to ready-to-use recipe cards, our framework prefabs include special helpers for various frameworks, featuring an excellent setup for React. All components are customizable to suit your style.

### "But why not just use embedded wallets?"

#### **The Embedded Wallet setup**

Imagine this: each app requires a unique setup—installing packages, generating keys in iframes, managing authentication... And then, how do you make it discoverable across different applications?

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2F1cwLGnykx7TH1VqJ8mo0%2Fimage.png?alt=media&amp;token=46e4e890-1320-49e6-ba1d-ebb66efca04f" alt=""><figcaption></figcaption></figure>

#### The Not-So-Fun parts of embedded wallets[#](https://www.openfort.io/docs/guides/ecosystem/intro#the-not-so-fun-parts-of-embedded-wallets) <a href="#the-not-so-fun-parts-of-embedded-wallets" id="the-not-so-fun-parts-of-embedded-wallets"></a>

1. **Authentication gets messy**
   * Every app needs its own bouncer (authentication system)
   * OAuth2 providers get confused when trying to share wallet access
   * There's no good way to keep track of who's logged in where
2. **Less control than you'd like**
   * Your partners need access to the master keys (Admin credentials)
   * It's harder to keep track of who's spending what
   * No central control room for permissions

### Why the Ecosystem SDK is better <a href="#why-the-ecosystem-sdk-is-better" id="why-the-ecosystem-sdk-is-better"></a>

<figure><img src="https://1417288371-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmDaNHMKqZnQz0LrBMSP%2Fuploads%2FsgmdRnHMgap5Jae8AgwX%2Fimage.png?alt=media&amp;token=27234c95-b93c-4107-b073-abd7d519a309" alt=""><figcaption></figcaption></figure>

What you get:

* One login system that works everywhere (no more authentication headaches!)
* Control all permissions from one place
* A slick dashboard with your brand to onboard projects
* Paymasters and smart accounts by default
* One solid security setup for everything


# Get Started

{% hint style="info" %}
Developers can follow this guide and configuration sections to launch an ecosystem wallet. Alternatively, if you prefer to use an existing ecosystem wallet SDK, refer to the usage section to install
{% endhint %}

The **DOSwap SDK** provides a straightforward method to create your own ecosystem wallet. It offers a code-splitting environment and essential tools to bring your wallet SDK to life, making the process both easy and efficient.

Video

### Requirements

To ensure optimal functionality, your code editor and project must use the same TypeScript version.

1. **TypeScript Version**: Ensure you have TypeScript version 5.0.2 or higher installed.
2. **TS Config Setup**:
   * Set the `compilerOptions.moduleResolution` to `bundler`.
3. **Enable Code Splitting**: Configure your project to support code splitting for enhanced performance.

This setup will help maintain consistency and leverage TypeScript's latest features efficiently.

### Install the DOSafe SDK

In your wallet SDK directory, use your preferred package manager to install the latest Ecosystem SDK version:

{% tabs %}
{% tab title="NPM" %}
`npm install @dos.me/wallet-sdk`
{% endtab %}

{% tab title="Yarn" %}
`yarn add @dos.me/wallet-sdk`
{% endtab %}
{% endtabs %}

### Creating your wallet SDK

{% stepper %}
{% step %}
**Import the SDK**

`import DOSafeSDK from "@dos.me/wallet-sdk";`
{% endstep %}

{% step %}
**Initialize the SDK**

Create a new instance of the DOSafe SDK with your configuration parameters:

```
const walletSDK = new DOSafeSDK({
  appName: "Your App Name",
  appLogoUrl: "Your App Logo URL",
  backendUrl: " Our Authentication Endpoint", // Backend URL
  walletUrl: " Our Wallet Endpoint", // Production URL
  ecosystemId: "Your Ecosystem ID",
  tokens: tokens,
  contractNFTs: contractNFTs,
  chainsSupported: [43113, 3939],
  policies: policyConfigurations,
  webPublicKey: "Your_Web_Public_Key",
  typeSDK: "popup", // 'sdk' or 'popup'
  explorerUrl: "https://testnet.snowtrace.io",
  chainDefault: 43113,
});
```

{% endstep %}

{% step %}
**Configuration parameters**

The following table describes the configuration parameters for the DOSafe SDK:

<table data-header-hidden><thead><tr><th width="209.00347900390625"></th><th width="138.2528076171875"></th><th></th></tr></thead><tbody><tr><td><kbd>Parameter</kbd></td><td>Required</td><td>Description</td></tr><tr><td><kbd>appName</kbd></td><td>Yes</td><td>Your application name</td></tr><tr><td><kbd>appLogoUrl</kbd></td><td>Yes</td><td>URL of your application logo</td></tr><tr><td><kbd>backendUrl</kbd></td><td>Yes</td><td>DOSafe backend URL for authentication</td></tr><tr><td><kbd>walletUrl</kbd></td><td>Yes</td><td>DOSafe wallet URL for transactions</td></tr><tr><td><kbd>ecosystemId</kbd></td><td>Yes</td><td>Your ecosystem ID provided by DOSafe</td></tr><tr><td><kbd>tokens</kbd></td><td>Yes</td><td>Token configuration by chain</td></tr><tr><td><kbd>contractNFTs</kbd></td><td>Yes</td><td>List of NFT contracts</td></tr><tr><td><kbd>chainsSupported</kbd></td><td>Yes</td><td>Array of supported chainIds</td></tr><tr><td><kbd>policies</kbd></td><td>Yes</td><td>Object containing policy IDs by chainId</td></tr><tr><td><kbd>webPublicKey</kbd></td><td>Yes</td><td>Your web public key for verification</td></tr><tr><td><kbd>typeSDK</kbd></td><td>Yes</td><td>SDK type ('sdk' or 'popup')</td></tr><tr><td><kbd>explorerUrl</kbd></td><td>No</td><td>Blockchain explorer URL</td></tr><tr><td><kbd>chainDefault</kbd></td><td>Yes</td><td>Default chainId to display first</td></tr></tbody></table>
{% endstep %}

{% step %}
**Environment URLs**

**Backend URL (backendUrl)**

<kbd>Development: <https://beta.dos.me></kbd>

<kbd>Production: <https://api.dos.me></kbd>

**Wallet URLs (walletUrl)**

<kbd>Development: <https://test-of-wallet.doschain.com></kbd>

<kbd>Production: <https://wallet.doschain.com></kbd>

**Token configuration (tokens)**

The `tokens` parameter requires a specific JSON structure:

```
const tokenConfigurations = {
  "43113": { // Avalanche Fuji Testnet
    "AVAX": {
      symbol: "AVAX",
      decimals: 18,
      contract: "", // Empty for native tokens
      provider: "https://avalanche-fuji-c-chain-rpc.publicnode.com",
      type: "native",
      abi: [],
    },
    "SECOND": {
      symbol: "SECOND",
      decimals: 18,
      contract: "0x10627F7D8117c4BdB9409813b47da5B21CAB5F9b",
      provider: "https://avalanche-fuji-c-chain-rpc.publicnode.com",
      type: "erc20",
      abi: [],
    },
  },
  "3939": { // DOS Chain Testnet
    "DOS": {
      symbol: "DOS",
      decimals: 18,
      contract: "",
      provider: "https://test.doschain.com",
      type: "native",
      abi: [],
    },
    "SECOND": {
      symbol: "SECOND",
      decimals: 18,
      contract: "0x17a11Dd7095555E26275F2DE38Ba4548229f5bbc",
      provider: "https://test.doschain.com",
      type: "erc20",
      abi: [],
    },
  }
};
NFT configuration (contractNFTs)
The contractNFTs parameter accepts an array of objects:
const nftConfigurations = [
  {
    chainId: 43113,
    contract: "0x7979c2815CD58184Bd91082CDe5E001f18b22368",
    abi: [],
  },
  {
    chainId: 3939,
    contract: "0x5f33e2db1448933f8e3B5a630E01D8E357bFe62F",
    abi: [],
  }
];
Policy configuration (policies)
The policies parameter requires an object mapping chain IDs to policy identifiers:
const policyConfigurations = {
  "43113": "pol_avalanche_policy_id",
  "3939": "pol_dos_chain_policy_id",
};
```

<mark style="color:red;">\[!IMPORTANT]</mark> To obtain policy IDs and register token/NFT contracts in the DOSafe system, contact DOSafe support at <hepl@doschain.com>.
{% endstep %}
{% endstepper %}

### **SDK methods**

The following methods are available on the SDK instance:

{% stepper %}
{% step %}

#### **Check wallet connection**

*Check if the wallet is currently connected.*

```
const connectionStatus = await walletSDK.checkWalletDOS();
```

{% endstep %}

{% step %}

#### **Authenticate wallet**

*Initiates the wallet authentication process.*

```
const authResult = await walletSDK.authenticateWalletDOS();
```

{% endstep %}

{% step %}

#### **Connect wallet**

Establishes a connection to the DOSafe wallet.

```
const connectResult = await walletSDK.connectWalletDOS();
```

{% endstep %}

{% step %}
**Open wallet popup**

Manually opens the wallet popup interface.

```
await walletSDK.openPopupWallet();
```

{% endstep %}

{% step %}
**Logout**

Disconnects from the wallet and clears the session.

```
await walletSDK.logout();
```

{% endstep %}

{% step %}
**Read from contract**

Reads data from a smart contract.

```
const data = await walletSDK.readContract(
  "0xContractAddress",  // Contract address
  contractABI,          // Contract ABI as array
  "functionName",       // Function to call
  [param1, param2]      // Function arguments
);
```

{% endstep %}

{% step %}
**Write to contract**

Executes a transaction on a smart contract.

```
const txResult = await walletSDK.writeContract(
  contractAddress,  // Contract address
  contractABI,          // Contract ABI as array
  functionName,       // Function to call
  [param1, param2]      // Function arguments
);
```

{% endstep %}

{% step %}
**TypeScript support**

For TypeScript projects, create a declaration file named dosafe-sdk.d.ts with the following type definitions:

```
declare module "@dos/wallet-sdk" {
  class DOSafeSDK {
    constructor(config: {
      appName: string;
      appLogoUrl: string;
      backendUrl: string;
      walletUrl: string;
      ecosystemId: string;
      tokens: any;
      contractNFTs: any;
      policies: any;
      webPublicKey: string;
      chainsSupported: number[];
      typeSDK: string;
      chainDefault: number;
    });
    checkWalletDOS(): Promise<any>;
    authenticateWalletDOS(): Promise<any>;
    connectWalletDOS(): Promise<any>;
    openPopupWallet(): Promise<any>;
    logout(): Promise<any>;
    readContract(
      contractAddress: string,
      abiContract: any,
      functionName: string,
      args: any[]
    ): Promise<any>;
    writeContract(
      contractAddress: string,
      abiContract: any,
      functionName: string,
      args: any[]
    ): Promise<any>;
  }
  export default DOSafeSDK;
}
```

{% endstep %}

{% step %}
**Troubleshooting**

> **Tip**: Ensure the `chainDefault` value is part of the `chainsSupported` array.

> **Note**: Register ERC-20 token contracts and NFT contracts in the DOSafe system before
> {% endstep %}
> {% endstepper %}


# Getting Started


# DOS Hub Dashboard


