VRC-10 token Issuance

HTTP API

// wallet/createassetissue
// create a unsigned VRC-10 assert transcation
// Demo:
curl -X POST  https://vpioneer.infragrid.v.network/wallet/createassetissue -d '{
     "owner_address": "46bed31c10a7670fbf4377da31d11804a825666ca9",
     "name": "76726331305f74657374",
     "abbr": "76726331305f61626272",
     "total_supply": 100000,
     "vs_num": 2,
     "num": 3,
     "start_time": 1711483775000,
     "end_time": 1812483780000,
     "description": "6d4b8bd553d1884c7672633130901a8bc1",
     "url": "68747470733a2f2f636e2e646576656c6f706572732e762e6e6574776f726b2f",
     "free_asset_net_limit": 100000,
     "public_free_asset_net_limit": 1000,
     "frozen_supply": {
          "frozen_amount": 100,
          "frozen_days": 10
     },
     "precision": 1
}'

VisionWeb

const privateKey = "...";
var createAssetAddress = "VM2TmqauSEiRf16CyFgzHV2BVxBejY9iyR";
const options = {
      name : "test", 
      abbreviation : "tt",  
      description : "fortest", 
      url : "www.baidu.com",
      totalSupply : 10000000,
      vsRatio : 1,
      tokenRatio : 1,
      saleStart : 1581929489000,
      saleEnd : 1581938187000,
      freeBandwidth : 0,
      freeBandwidthLimit : 0,
      frozenAmount : 0,
      frozenDuration : 0,
      precision : 6
}
// createAsset
tradeobj = await vsWeb.transactionBuilder.createAsset(
      options,
      createAssetAddress
).then(output => {
  console.log('- Output:', output, '\n');
  return output;
});
// sign transcation
const signedtxn = await vsWeb.trx.sign(
      tradeobj,
      privateKey
);
// boardcast transcation
const receipt = await vsWeb.trx.sendRawTransaction(
      signedtxn
).then(output => {
  console.log('- Output:', output, '\n');
  return output;
});

Wallet-cli

AssetIssue [OwnerAddress] AssetName AbbrName TotalSupply TrxNum AssetNum Precision StartDate EndDate Description Url FreeNetLimitPerAccount PublicFreeNetLimit FrozenAmount0 FrozenDays0 ... FrozenAmountN FrozenDaysN
AssetIssue TestVS VS 75000000000000000 1 1 2 "2021-10-02 15:10:00" "202-10-11" "just for test121212" www.test.com 100 100000 10000 10 10000 1

follow the steps:

  1. notice:“Please confirm and input your permission id, if input y or Y means default 0, other non-numeric characters will cancel transaction.”,enter “y”;
  2. notice:“lease choose your key for sign. …… Please choose between 1 and 2”,select address used ;
  3. notice:“Please input your password.”, enter pwd;
    4.notice:“AssetIssue TestToken successful !!” congratulation;