public interface Context
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,byte[]> |
args() |
List<String> |
authRequire() |
Response |
call(String module,
String contract,
String method,
Map<String,byte[]> args) |
String |
caller() |
Response |
crossQuery(String uri,
Map<String,byte[]> args) |
void |
deleteObject(byte[] key) |
void |
emitEvent(String name,
byte[] body) |
void |
emitJSONEvent(String name,
Object body) |
byte[] |
getObject(byte[] key) |
void |
log(String msg) |
Iterator<com.baidu.xuper.ContractIteratorItem> |
newIterator(byte[] start,
byte[] limit) |
void |
putObject(byte[] key,
byte[] value) |
Contract.Block |
queryBlock(String blockid) |
Contract.Transaction |
queryTx(String txid) |
void |
transfer(String to,
BigInteger amount) |
BigInteger |
transferAmount() |
String caller()
void putObject(byte[] key,
byte[] value)
byte[] getObject(byte[] key)
void deleteObject(byte[] key)
Iterator<com.baidu.xuper.ContractIteratorItem> newIterator(byte[] start, byte[] limit)
Contract.Transaction queryTx(String txid)
Contract.Block queryBlock(String blockid)
void transfer(String to, BigInteger amount)
BigInteger transferAmount()
void emitEvent(String name, byte[] body)
void log(String msg)
Copyright © 2020. All rights reserved.