set value as return value. This value will be printed to console or return within response
if you call API by POST method via https. Till now, type T can only be string or integer.
NOTE: the return value doesn't mean the transaction is commited by blockchain, but means if the
transaction is executed, the result will be it.
Type parameters
T
Parameters
val: T
value will set as return value.
Returns void
ReturnArray
ReturnArray<T>(val: T[]): void
return an array to caller. It behaves like Return.
set value as return value. This value will be printed to console or return within response if you call API by POST method via https. Till now, type T can only be string or integer. NOTE: the return value doesn't mean the transaction is commited by blockchain, but means if the transaction is executed, the result will be it.