Skip to main content
Tutorial

Getting started

By creating a free account on Starton, you can deploy and interact with your Smart contract and watch your transactions.

Onboarding on Starton

Creating an free account

  1. Go to starton.com.
  2. Enter your information.
  3. Click Create an account.

Setting up your API key

You will be authenticated by Starton's API. For today, let's use a test API key.

  1. From the Dashboard, click Developer.
  2. Click + API key.
  3. Select Test API key.
  4. Enter your key information.
  5. Click Next.
  6. Select the scope of your API key. For today we will use:
    1. In Deploy, check Create and Edit.
    2. For Interact, use Create and Edit.
    3. For Wallet, use Depot, Sign, and Edit.

To use Starton from your application, you can instead:

  1. Go to the Developer section.
  2. Copy your API key.
  3. Add your API key in the header of your requests, as such:
const http = axios.create({
baseURL: "https://api.starton.com/v3",
headers: {
"x-api-key": "YOUR_API_KEY", //API KEY COPIED FROM STARTON
},
})

Note that your API key should be SECRET. Everyone with it could call the Starton API by pretending to be you.

For more information on API Keys, read Using Starton API.

Setting up a wallet on Starton

When deploying and interacting with Smart Contracts on testnet, you can create a wallet on Starton KMS to sign transactions.

  1. From Dashboard, go to Wallet.
  2. Click Add a wallet.
  3. Enter a Name and a Description for your wallet.

You can now use your wallet.

You can also import your own KMS at any time and change ownership of your Smart contract. Read more in Tutorials

Deploying your first Smart contract

  1. From Dashboard, go to Smart Contract.
  2. Click Deploy with Template.
  3. Select a use case and a template.
  4. Enter the Smart contract information:
  • General information

    ParameterDescription
    NameThe name displayed on Starton.
  • Smart Contract Constructor

    ParameterDescription
    NameName of the Smart contract on the blockchain.
    SymbolThe symbol of your token
    Base URIWill be used to concatenate NFT URIs and the ContractUriSuffix
    - Using IPFS: ipfs://ipfs/
    - Using a centralised server: it should be as such https://yourapi.com/endpoint/
    Contract URI SuffixWill be concatenated with baseUri:
    - Using IPFS:it is the CID of the contract metadata .
    - Using a centralised server: the path of the contract metadata json
  1. Click Next.

Interacting with your first Smart contract

  1. In Smart Contract, select a Smart Contract.
  2. Select a function.
  3. Enter the parameters.
  4. Click Run.

Checking the activity from your Smart contract

To check that everything went your way, you can see the activity of your Smart contract.

  1. In Smart Contract, select a Smart Contract.
  2. Click on Interact.

You can see all the interactions with your smart contracts. The first one represents its creation on the blockchain.

Created:

February 26, 2024

Reading time:

3 min


Content