smart contract deployment & utility

Deploy smartcontract

POST https://api.mycontract.co:3001/v1/smartcontract/deploy

This endpoint allows you to get free cakes.

Query Parameters

NameTypeDescription

coinName

string

Coin name which you want to deploy

network

string

( mainnet, testnet, private ) provide network type

Headers

NameTypeDescription

Authentication

string

JWT token

{
    "tokenReceipt": {
        "blockHash": "0x4c8f91c62ae1548c77e7c2f7323f71a40be6b83e0c78c6b133b2597eca7e35c8",
        "blockNumber": 56,
        "contractAddress": "0x6d121481Fe9C76BA949b236627CBfB7F8dAb4Aa0",
        "cumulativeGasUsed": 1069072,
        "from": "0x0c500286a0b60cd518dacd8991d71413f915f403",
        "gasUsed": 1069072,
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "root": "0x54af67cff0224c613a7e003aa6628e30e83464d2a1b0c3437fdf1582d48c90b0",
        "to": null,
        "transactionHash": "0x45d6584300559bd2cd9d8d6ff8246b59d2f70aa05f8eee6c281abe8836c135b8",
        "transactionIndex": 0
    },
    "crowdsaleReceipt": {
        "blockHash": "0x64c4b42be940dc991e6b4f0a0238426e54f71ae0ec0aa1fff29451b807cdd1c3",
        "blockNumber": 57,
        "contractAddress": "0xC4c4F5bac9dF6d148b3aCBBFF3389a9c9C006B11",
        "cumulativeGasUsed": 748337,
        "from": "0x0c500286a0b60cd518dacd8991d71413f915f403",
        "gasUsed": 748337,
        "logs": [],
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "root": "0x5a9926cdb906e3f56a19e659727d7b2685e0ec1dbe7c3a2676e9623a85a395da",
        "to": null,
        "transactionHash": "0x650d4a303af597f1a2fac47ff9821c7bbed7db8353f1fefc563d75774656302f",
        "transactionIndex": 0
    }
}

smartcontract details

POST https://api.mycontract.co:3001/v1/smartcontract/details

Headers

NameTypeDescription

Authorization

string

JWT token

Request Body

NameTypeDescription

tokenName

string

Token name of the smartcontract

{
    "status": true,
    "network": "private",
    "tokenContract": {
        "smartContract": .sol,
        "bytecode": bytecode,
        "interface": abi,
        "address": "0x0"
    },
    "crowdsaleContract": {
        "smartContract": .sol,
        "bytecode": bytecod,
        "interface": abi,
        "address": "0x1"
    }
}

Last updated