public class Callback
extends java.lang.Object
| Constructor and Description |
|---|
Callback() |
| Modifier and Type | Method and Description |
|---|---|
static Callback |
createFromMethod(byte[] scriptHash,
java.lang.String method)
Creates a callback function from the given method in the contract with the given script
hash.
|
static Callback |
createFromSyscall(int syscall)
Creates a call back from the given syscall.
|
java.lang.Object |
invoke(java.lang.Object[] args)
Invokes this callback function with the given arguments.
|
public java.lang.Object invoke(java.lang.Object[] args)
args - The arguments to pass to this callback function.public static Callback createFromMethod(byte[] scriptHash, java.lang.String method)
scriptHash - The contract's script hash.method - The method to call.public static Callback createFromSyscall(int syscall)
Only the syscalls specified in SyscallCallback can be used as callbacks. Use the
constants from there as parameters in this method.
syscall - The syscall to get as a callback.