public class Contract
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
hash
The contract's hash.
|
int |
id
The contract's ID.
|
java.lang.String |
manifest
The contract's manifest in JSON format.
|
byte[] |
script
The contract's VM script.
|
int |
updateCounter
The number of times the contract has been updated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
call(byte[] scriptHash,
java.lang.String method,
java.lang.Object[] arguments)
Makes a call to the
method of the contract with the scriptHash passing
the arguments. |
static java.lang.Object |
call(byte[] scriptHash,
java.lang.String method,
java.lang.Object[] arguments,
byte callFlag)
Makes a call to the
method of the contract with the scriptHash passing
the arguments and the callFlag. |
static byte |
getCallFlags()
Gets the call flags with which the contract has been called.
|
public final int id
public final int updateCounter
public final byte[] hash
public final byte[] script
public final java.lang.String manifest
public static java.lang.Object call(byte[] scriptHash,
java.lang.String method,
java.lang.Object[] arguments)
method of the contract with the scriptHash passing
the arguments.scriptHash - The script hash of the contract to invoke.method - The method to call.arguments - The arguments to hand to the method.public static java.lang.Object call(byte[] scriptHash,
java.lang.String method,
java.lang.Object[] arguments,
byte callFlag)
method of the contract with the scriptHash passing
the arguments and the callFlag.scriptHash - The script hash of the contract to invoke.method - The method to call.arguments - The arguments to hand to the method.callFlag - The CallFlags to apply to the contract call.public static byte getCallFlags()