This tutorial will provide a step by step guide for running a Thor solo node and connecting it to the Sync2 wallet. The Thor solo node is a sandbox development mode for the VeChainThor blockchain, that can be started (and is only available) on a single server. It is not publicly accessible and the generated blocks will be lost if the solo node is stopped.
Run Thor solo with the following docker command or follow the how-to-run-a-thor-solo-node tutorial.
docker run -p 127.0.0.1:8669:8669 vechain/thor:latest solo --api-cors '*' --api-addr 0.0.0.0:8669
This will launch a solo node with the following configuration:
- On a localhost using port 8669
- Using the latest release of thor solo
- Accepting all cross origin requests
- Allowing all remote connections
Sync2 is designed to work with all mainstream web browsers (e.g., Chrome, Safari, MS Edge, Firefox, etc), desktop, and mobile devices.
The main advantage and purpose of Sync2 is the massive simplification of dApps and dApp usage. All editions of Sync2, no matter whether the native app is built for desktop or mobile or the automatically invoked SPA version, are designed to appear and function pretty much in the same way, therefore providing a consistent and comfortable user experience for users across different OS and devices.
Follow the instructions here sync2 to download and install the Sync2 wallet.
- Click the icon, in the top left hand corner.
- Click Settings.
- Click Nodes.
- Click the icon, in the upper right hand corner.
- Enter the node's url
http:localhost:8669.
- Click Add to add node.
- Click upper left icon, in the top left hand corner, to open the wallet list.
- Click the icon to create a new wallet.
- Click upper right icon.
- Select Private.
- Click Import.
- Enter the mnemonic words for the Thor solo node built-in wallet.
{% hint style="info" %} Mnemonic phrase of the Thor solo node built-in wallet:
denial kitchen pet squirrel other broom bar gas better priority spoil cross {% endhint %}
{% hint style="danger" %} Do not use the above mnemonic phrase to secure mainnet assets. The funds will not be secure as the mnemonic is exposed. {% endhint %}
- Enter your password to authorize the import
Congrats! You have successfully connected to a Thor solo node with the Sync2 wallet, and you can now deploy/integrate by using inspector or you can check out the useful-tips-for-building-a-dapp-by-using-connex.md.
Devpal is a set of tools to help your develop and test on a Thor solo mode and start your blockchain journey smoothly. Devpal contains two tools:
- Insight: a serverless VeChain explorer. It allows you to explore and search for blocks, transactions, and accounts. Mainnet and Testnet links.
- Inspector: a tool that allows you to deploy and interact with the contract. Available here.
You can simply run devpal by running the following command:
npx @vechain/devpal
{% hint style="info" %} http://locahost:8669 is set as the default node url.
If you want to change it, please use npx @vechain/devpal [Thor REST URL]
{% endhint %}