idexo
ENGLISH
Search
K

Create a Vesting Smart Contract

This section describes how to deploy a vesting smart contract on your specified blockchain.
To use this method, you need an idexo API key that has been upgraded to a customer API key. To upgrade, please contact us. You will need to specify a network, from the following list of supported networks:
  • avalanche
  • bnbchain
  • dogechain
  • ethereum
  • fantom
  • polygon
Assuming you have installed the SDK, you can use the following code in your file (instructions on modifying it follows - for more information on how to use it see our Getting Started tutorial):
const ido = require('idexo-sdk')
ido.Vesting.deployVesting(apiKey, network, depositToken, beneficiary, startTime, cliffMonth, durationMonth)
.then(res => console.log(res.data))