Testnet

If you need to experiment with the StarGate contracts, we deployed a set of contracts for you.

Addresses

Contract
Address

StarGate NFT

0x1ec1d168574603ec35b9d229843b7c2b44bcb770

StarGate Delegation

0x7240e3bc0d26431512d5b67dbd26d199205bffe8

VeChain Nodes (Legacy)

0x0747b39abc0de3d11c8ddfe2e7eed00aaa8d475c

NodeManagement

0x8bcbfc20ee39c94f4e60afc5d78c402f70b4f3b2

Environment Configurations

Delegation Period Duration: 30 blocks (5 minutes)

Category
Type
ID
VET Staking Requirement
Limited Supply
VTHO Reward / Block
Maturity (Blocks)

X

Mjolnir X

7

1560

-

0.000487252

N/A

X

Thunder X

6

560

-

0.000136555

N/A

X

Strength X

5

160

-

0.000313546

N/A

X

VeThor X

4

60

-

0.000766742

N/A

Eco

Mjolnir

3

1500

100

0.000390030

30

Eco

Thunder

2

500

300

0.000975076

20

Eco

Strength

1

100

2500

0.000122399

10

New Eco

Flash

10

20

25,000

0.000180745

15

New Eco

Lightning

9

5

100,000

0.000390030

10

New Eco

Dawn

8

1

500,000

0.000697615

5

Import the contracts on Inspector

Go to https://inspector.vecha.in/, switch to testnet (on top-right) and add the StarGate, NodeManagement and VeChainNodes contracts by setting a name, the address and the ABI.

You can find the addresses above, and ABIs are available for download here.

Interact with contracts

Stake

You can test the StarGate contracts without any needed permission, just call stake() or stakeAndDelegate(). The same goes for the NodeManagement contract.

Migration

If you want to test the migration flow instead, you will need to first interact with the VeChain Nodes contract to mint your self a legacy Node NFT.

To mint a Node in the VeChain Nodes contract:

  1. Import the testnet mnemonic:

denial kitchen pet squirrel other broom bar gas better priority spoil cross

Need VTHO? Use this faucet: https://faucet.vecha.in/

  1. Call the VeChain Nodes contract

await legacyNodesContract.addToken(
  holderAddress, // Put an address which does not come from the testnet mnemonic
  level, // 1 for Strength .... 7 for MjolnirX
  onUpgrade, // set this to false
  applyUpgradeTime, // set this to 0
  applyUpgradeBlockno // set this to 0
);

The lead time and trasnfer cooldown for the VeChain Nodes NFTs on testnet are set to 0.

  1. Now, you can call migrate(), and migrateAndDelegate() functions on the StarGateNFT contract.

Run locally

You can deploy the contracts on your own or run the tests by using the public repo with the contracts at https://github.com/vechain/stargate-contracts. This resource contains all necessary files and instructions, allowing you to clone the repository, explore the smart contract code, and follow setup procedures step-by-step, allowing you to interact with the contracts on testnet or thor solo.

Seed StargateDelegation contract with VTHO on solo network

In order to test the delegation rewards, claiming StargateDelegation contract must hold enough VTHO tokens. If you have your inspector up and running, you can add the VTHO token there like this:

Name: VTHO
Address: 0x0000000000000000000000000000456E65726779
Abi: 

Now, call the transferFrom() function in the "Write" tab, with StargateDelegation contract as a recipient.

In testnet just open your VeWorld wallet and send some VTHO tokens to the StargateDelegation address.

Need VTHO? Use this faucet: https://faucet.vecha.in/

Last updated

Was this helpful?