Tokenization platform

get
Tokenization platform details

https://api.mycontract.co:3001/v1/tokenization/:tokenName/details
Request
Response
Headers
Authentication
required
string
JWT token
200: OK
Cake successfully retrieved.
{
"ethBalance": "0.320076509",
"btcBalance": "0.00000000",
"projectName": "Demo",
"userCount": 0,
"verifiedUserCount": 0,
"transactionLog": [],
"tokenBalance": 1000000,
"crowdsaleBalance": 0
}
302: Found
Could not find a cake matching this query.
{
"status": false,
"message": "no record found"
}

get
Get tokenization platform site configuration

https://api.mycontract.co:3001/v1/tokenization/:tokenName/configuration
Request
Response
Headers
Authentication
required
string
JWT token
200: OK
{
"status": true,
"data": {
"uniqueId": "5d1f9370-2925-11e9-8222-c5291fdb5328",
"siteName": null,
"siteLogo": null,
"coinSymbol": "Dmo",
"tokenSold": 0,
"tokenSupply": "1000000",
"softCap": null,
"hardCap": null,
"minimumContribution": null,
"bonusRate": 0,
"startDate": null,
"endDate": null,
"homeURL": null,
"aboutusURL": null,
"contactEmail": null,
"tokenContractAddress": "0x6d121481Fe9C76BA949b236627CBfB7F8dAb4Aa0",
"crowdsaleContractAddress": "0xC4c4F5bac9dF6d148b3aCBBFF3389a9c9C006B11",
"createdAt": "2019-02-05T09:06:46.439Z",
"updatedAt": "2019-02-05T12:27:59.979Z"
}
}
302: Found
{
"status": false,
"message": "no record found"
}

post
Update tokenization platform site configuration

https://api.mycontract.co:3001/v1/tokenization/:tokenName/configuration
Request
Response
Headers
Authentication
required
string
JWT token
Form Data Parameters
siteLogo
optional
object
Tokenization platform logo in .PNG
siteName
optional
string
Tokenization platform name
softCap
optional
number
Minimum token sale cap
hardCap
optional
number
Maximum token sale cap
startDate
optional
string
Initial token offering start time and date
endDate
optional
string
Initial token offering end time and date
homeURL
optional
string
Landing page URL
minimumContribution
optional
number
Minimum contribution for token sale
contactEmail
optional
string
contact email for FAQ and support
200: OK
{
"status": true,
"message": "Project updated successfully!"
}
302: Found
{
"status": false,
"message": "no record found"
}

get
Get pending transactions

https://api.mycontract.co:3001/v1/tokenization/:tokenName/transactions
Request
Response
Headers
Authentication
optional
string
JWT token
200: OK
{
"status": true,
"transactionLog": []
}
302: Found
{
"status": false,
"message": "no record found"
}

post
Send token to single user address

https://api.mycontract.co/v1/tokenization/:tokenName/token/transfer
Request
Response
Headers
Authentication
required
string
JWT token
Form Data Parameters
tokenAmount
optional
number
Token amount
userAddress
optional
string
User's ethereum address
200: OK
{
"receipt": {
"blockHash": "0x82e5b2ac5a7812cdad05202f53775fd54165b657c119a50c0aa9c73a24da4a2a",
"blockNumber": 65,
"contractAddress": null,
"cumulativeGasUsed": 49981,
"from": "0x0c500286a0b60cd518dacd8991d71413f915f403",
"gasUsed": 49981,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"root": "0xbe510071d9ac9f02a6da2e1f07fa0a6cc36c8130d4de70da53f99c2111d30231",
"to": "0x6d121481fe9c76ba949b236627cbfb7f8dab4aa0",
"transactionHash": "0xf004a63118e3f7781eb3bd4f3814265ff24a1094ccfb6137568f2431fda1e76f",
"transactionIndex": 0
}
}
400: Bad Request
{
status: false,
message: "network error occured"
}

get
Complete pending token transaction

https://api.mycontract.co:3001/v1/tokenization/:tokenName/token/transfer/pending
Request
Response
Headers
Authentication
optional
string
JWT token
Form Data Parameters
transactionId
optional
array
Array of pending token transfer transactions
200: OK

get
Get list of users for provided tokenization platform

https://api.mycontract.co:3001/v1/tokenization/:tokenName/users/list
Request
Response
Path Parameters
Authentication
optional
string
JWT token
200: OK
{
"status": true,
"data": []
}
302: Found
{
"status": false,
"message": "no record found"
}

get
Get user's account and KYC details

https://api.mycontract.co:3001/v1/tokenization/:tokenName/user/:id
Request
Response
Headers
Authentication
optional
string
JWT token
200: OK
{
status: true,
UserData: { data },
}
302: Found
{
status: false,
message: "no data found"
}

post
Update user's account and KYC status

https://api.mycontract.co:3001/v1/tokenization/:tokenName/user/:id
Request
Response
Headers
Authentication
optional
string
Form Data Parameters
kycStatus
optional
string
Select from this options ( active, pending, rejected)
accountStatus
optional
boolean
User's account status
200: OK
{
status: true,
message: "data updated"
}
302: Found
{
status: false,
message: "error occured"
}