listen block BigInteger result=sdk.getEventService().listenBlock(handler,EventModelType.PUSH)取消订阅账户事件 函数原型 public boolean unListenAccount(BigInteger eventId)请求参数 参数 必选 类型 说明 eventId true BigInteger ...
listen block BigInteger result=sdk.getEventService().listenBlock(handler,EventModelType.PUSH)取消订阅账户事件 函数原型 public boolean unListenAccount(BigInteger eventId)请求参数 参数 必选 类型 说明 eventId true BigInteger ...
按顺序获得返回值 BigInteger bigInteger=contractReturnValues.getUint();100 String string=contractReturnValues.getString();abc"/"0123456789abcdefghijklmnopqrstuvwxyz"String string1=contractReturnValues.getString();boolean b...
参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int 交易偏移量 txHash Hash 交易hash isLocalTransaction boolean 是否为本地交易 TransactionReceipt,具体参数见下表。...
转移余额 MychainBase<ReplyTransactionReceipt>result=sdk.getAccountService().transferBalance(TransferBalanceRequest.build(testAccount1.getIdentity(),testAccount2.getIdentity(),new BigInteger(transferAmount+""),params));...
version Long 系统版本 number BigInteger 区块高度 gasUsed BigInteger 本区块所有交易总共消耗的gas timestamp long 本区块时间戳 logBloom byte[]bloom过滤器 示例 public void testQueryBlockHeader(){/查询最后一个区块头 ...
参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int 交易偏移量 txHash Hash 交易hash isLocalTransaction boolean 是否为本地交易 TransactionReceipt,具体参数见下表。...
加密信封交易 示例:MychainParams params=new MychainParams.Builder().gas(BigInteger.valueOf(3000000)).setEnvelopePublicKey("").privateKeyList(adminPrivateKeys).setGroupId(groupId)/指定 groupId.setType(EnvelopeType....
version Long 系统版本 number BigInteger 区块高度 gasUsed BigInteger 本区块所有交易总共消耗的gas timestamp long 本区块时间戳 logBloom byte[]bloom过滤器 示例 public void testQueryBlockHeader(){/查询最后一个区块头 ...
参数 类型 说明 result long 交易执行结果,0 代表成功,其他值代表失败 gasUsed BigInteger 交易执行所花费的gas费用 logs List交易结果日志输出 output byte[]交易的输出,此处为虚拟机的执行结果 LogEntry,具体参数见下表。参数 类型 ...
参数 类型 说明 result long 交易执行结果,0 代表成功,其他值代表失败 gasUsed BigInteger 交易执行所花费的gas费用 logs List交易结果日志输出 output byte[]交易的输出,此处为虚拟机的执行结果 LogEntry,具体参数见下表。参数 类型 ...
response 类型 示例:/存证数据 private static String depositData(){/准备参数 params MychainParams params=new MychainParams.Builder().gas(BigInteger.valueOf(4000000)).privateKeyList(adminPrivateKeys).build();存证数据,实际中...
TransactionReceipt 参数 类型 说明 result long 交易结果 gasUsed BigInteger 交易执行的消耗费用 logs List 交易执行的日志集合 output byte[]合约的输出 日志模型 LogEntry 区块链输出日志的数据存储结构。LogEntry 参数 类型 说明 from...
例如 java.util.Arrays.asList(new java.math.BigInteger('1')),编译器可以根据参数类型判断出该方法的返回值是 java.util.List<java.math.BigInteger>类型。说明 构造函数需要指定类型参数,否则需要使用 java.lang.Object,这点和Java...
参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int 交易偏移量 txHash Hash 交易hash isLocalTransaction boolean 是否为本地交易 TransactionReceipt,具体参数见下表。...
参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int 交易偏移量 txHash Hash 交易hash isLocalTransaction boolean 是否为本地交易 TransactionReceipt,具体参数见下表。...
HBase的RowKey设计可以说是使用HBase最为重要的事情,直接影响到...i+){ BigInteger key=lowestKey.add(regionIncrement.multiply(BigInteger.valueOf(i)));byte[]b=String.format("%016x",key).getBytes();splits[i]=b;} return splits;}
参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int 交易偏移量 txHash Hash 交易hash isLocalTransaction boolean 是否为本地交易 TransactionReceipt,具体参数见下表。...
参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int 交易偏移量 txHash Hash 交易hash isLocalTransaction boolean 是否为本地交易 TransactionReceipt,具体参数见下表。...
if(traceId.length()()>=1){ return new JaegerSpanContext(0L,(new BigInteger(traceId,16)).longValue(),(new BigInteger(parts[1],16)).longValue(),(new BigInteger(parts[2],16)).longValue(),(new BigInteger(parts[3],16))....
TransactionReceipt 参数 类型 说明 result long 交易结果 gasUsed BigInteger 交易执行的消耗费用 logs List 交易执行的日志集合 output byte[]合约的输出 日志模型 LogEntry 区块链输出日志的数据存储结构。LogEntry 参数 类型 说明 from...
TransactionReceipt 参数 类型 说明 result long 交易结果 gasUsed BigInteger 交易执行的消耗费用 logs List 交易执行的日志集合 output byte[]合约的输出 日志模型 LogEntry 区块链输出日志的数据存储结构。LogEntry 参数 类型 说明 from...
step 10:query testAccount2 whose balance should be 50.BigInteger balance=query(test2PrivateKeyArrayList,testAccount2);step 11:compare to expect balance.expect(balance,BigInteger.valueOf(50));关闭 SDK 连接。step 12:sdk shut...
AppSwitch(des="BigInteger类型开关",level=Level.p1)public static BigInteger bigIntegerTypeSwitch=BigInteger.valueOf(38888);AppSwitch(des="BigDecimal类型开关",level=Level.p1)public static BigDecimal bigDecimalTypeSwitch=...
本地执行指交易仅在连接的节点上执行,既不会打包到区块中去,也不会广播到区块链的其它节点上。智能合约平台提供了本地执行的服务接口(getLocalService())。...VMTypeEnum.EVM,contractParameters,new BigInteger("10000"),null));
本地交易 函数原型/指定在链上的最高区块执行 public void setLocal()/指定在链上的某个区块执行 public void setLocal(BigInteger blockNumber)示例 下面以创建账号的本地交易为例:CreateAccountRequest request=new ...
本地交易 函数原型/指定在链上的最高区块执行 public void setLocal()/指定在链上的某个区块执行 public void setLocal(BigInteger blockNumber)示例 下面以创建账号的本地交易为例:CreateAccountRequest request=new ...
以部署合约为例:MychainBaseResult<ReplyTransactionReceipt>result=sdk.getContractService().deployContract(DeployContractRequest.build(adminAccount.getIdentity(),Utils.getIdentityByName(...,BigInteger.ZERO...
示例如下,计算BigInteger的中位数(由于数据是 java.math.BigInteger 类型的,所以不能直接用内建函数 MEDIAN)。set odps.sql.session.java.imports=java.math.*;test_data:=select*from values(1),(2),(3),(5)as t(value);a:=select ...
BigInteger bigInt=new BigInteger(bytes);System.out.println(bigInt.toString());return bigInt.longValue();}/*将字符串形式的ip地址转换为long*@param ipInString*字符串形式的ip地址*@return bigint的string形式的ip地址*/public ...
step 10:query testAccount2 whose balance should be 50.BigInteger balance=query(test2PrivateKeyArrayList,testAccount2);step 11:compare to expect balance.expect(balance,BigInteger.valueOf(50));关闭 SDK 连接。step 12:sdk shut...
1 hour after current itme authuri=a_auth(uri,key,exp)print("URL:%s AUTH:%s"%(uri,authuri))if_name_="_main_":main()Java代码示例 import java.math.BigInteger;import java.nio.charset.StandardCharsets;import java.security....
kpg.initialize(new CaviumRSAKeyGenParameterSpec(2048,new BigInteger("65537"),PUBLIC_KEY_LABEL,PRIVATE_KEY_LABEL,true,true));return kpg.generateKeyPair();} } 使用SecureRandom生成随机数 import com.cavium.cfm2.CFM2Exception;...
以部署合约为例:MychainBaseResult<ReplyTransactionReceipt>result=sdk.getContractService().deployContract(DeployContractRequest.build(adminAccount.getIdentity(),Utils.getIdentityByName(...,BigInteger.ZERO...
TAPP 可信应用是运行在可信执行环境中,持有密钥的 WebAssembly 智能合约。TAPP 提供了一套基于 C99/C++14 标准的 C++ 语言子集作为合约语言。TAPP 开发者在开发可信计算应用程序时,需要先下载、安装 TAPP 编译工具 mytf.mycdt,通过编译...
varint:可变精度有符号整数,和Java中的java.math.BigInteger类似;float:32位IEEE-754浮点型,和Java中的float类似;double:64位IEEE-754浮点型,和Java中的double类似;decimal:可变精度的decimal,和Java中的java.math.BigDecimal...
String hex=new BigInteger(1,digest.digest()).toString(16).toUpperCase();return new String(new char[32-hex.length()]).replace("\0","0")+hex;} public static String getDateString(){ DateFormat df=new SimpleDateFormat("EEE,dd ...
tappExecuteRequest=TappExecuteRequest.builder().defaultRequest(tappId,tappVersion,testReqMethod).addUint32(BigInteger.valueOf(12)).addUint32(BigInteger.valueOf(11)).build();发送 TAPP 执行请求 tappExecuteResponse=client....
String hash=new BigInteger(1,md.digest()).toString(16);while(hash.length())hash="0"+hash;return hash;} catch(NoSuchAlgorithmException e){ } return"0000000000000000000000000000000000000000000000000000000000000000;} });将...
本文针对当前版本Java SDK的常见问题提供解决方法以供参考。说明 若发送交易出现 SERVICE_TX_WAITING_VERIFY=413 或者 SERVICE_TX_WAITING_EXECUTE=414 错误码,请您通过调用 查询收据 接口进行排查。Illegal key size or default ...