SmartContractCompile()
Compile Smart Contract Code
Before calling the function make sure you have the Connector object initialized.
Understanding Connector ObjectFunction Call
Field
Type
Description
SCcode
string
Java Smart Contract Code
SmartContractCompile("Input here Smart Contract Code");
Example
Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.SmartContractCompileResult SmartContractCompile = connect_.SmartContractCompile("4SFfA1S2xfA3BdgkTn2tK14yDhLuD11RVz78kqx35jct");
Console.WriteLine(SmartContractCompile );
Output of Example
Output is printed via ObjectDumper
{SmartContractCompileResult}
Status: {APIResponse}
Code: 0
Message: "Success: "
ByteCodeObjects: ...
{ByteCodeObject}
Name: "MySmartContract"
ByteCode: ...
TokenStandard: 0
Last updated
Was this helpful?