SmartContractCompile()

Compile Smart Contract Code

Before calling the function make sure you have the Connector object initialized.

Understanding Connector Objectchevron-right

Function Call

Field

Type

Description

SCcode

string

Java Smart Contract Code

SmartContractCompile("Input here Smart Contract Code");
circle-info

Return value of function: SmartContractCompileResult

Example

Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.SmartContractCompileResult SmartContractCompile = connect_.SmartContractCompile("4SFfA1S2xfA3BdgkTn2tK14yDhLuD11RVz78kqx35jct");
Console.WriteLine(SmartContractCompile );
circle-info

Return value of function: SmartContractCompileResult

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?