类的使用
io.nuls.core.basic.Result
-
使用Result的程序包 程序包 说明 io.nuls.base.signture io.nuls.core.basic io.nuls.v2.model.dto io.nuls.v2.service io.nuls.v2.util -
-
io.nuls.base.signture中Result的使用
返回Result的io.nuls.base.signture中的方法 修饰符和类型 方法 说明 ResultP2PHKSignature. verifySign(NulsHash digestData)ResultBlockSignature. verifySignature(NulsHash digestData)ResultP2PHKSignature. verifySignature(NulsHash digestData) -
io.nuls.core.basic中Result的使用
返回Result的io.nuls.core.basic中的方法 修饰符和类型 方法 说明 static ResultResult. getFailed(ErrorCode errorCode)static ResultResult. getSuccess(ErrorCode successCode)static <T> ResultResult. getSuccess(T t)Result<T>Result. setData(T data)Result<T>Result. setMsg(String msg)Result<T>Result. setSuccess(boolean success) -
io.nuls.v2.model.dto中Result的使用
参数类型为Result的io.nuls.v2.model.dto中的方法 修饰符和类型 方法 说明 static RpcResultRpcResult. failed(Result result) -
io.nuls.v2.service中Result的使用
返回Result的io.nuls.v2.service中的方法 修饰符和类型 方法 说明 ResultTransactionService. broadcastTx(String txHex)广播交易ResultContractService. callContract(ContractCallForm form)Result<Map>ContractService. callContractTxOffline(String sender, BigInteger senderBalance, String nonce, BigInteger value, String contractAddress, long gasLimit, String methodName, String methodDesc, Object[] args, String[] argsType, long time, String remark, List<ProgramMultyAssetValue> multyAssetValues)ResultAccountService. changeV1addressToV2address(String v1Address)Result<List<String>>AccountService. createAccount(int count, String password)Create accounts 批量创建账户ResultConsensusService. createAgent(CreateAgentForm form)ResultTransactionService. createAliasTx(AliasDto aliasDto)ResultTransactionService. createConsensusTx(ConsensusDto consensusDto)组装创建共识节点交易 Assemble to create consensus node transactionsResultContractService. createContract(ContractCreateForm form)Result<Map>ContractService. createContractTxOffline(String sender, BigInteger senderBalance, String nonce, String alias, String contractCode, long gasLimit, Object[] args, String[] argsType, String remark)ResultTransactionService. createCrossTransferTx(TransferDto transferDto)创建跨链转账交易ResultTransactionService. createCrossTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount)便捷版 组装跨链转账非NULS资产的单账户对单账户普通跨链转账(不能用于转NULS)。ResultTransactionService. createCrossTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount, long time, String remark)便捷版 组装跨链转账非NULS资产的单账户对单账户普通跨链转账(不能用于转NULS)。ResultTransactionService. createCrossTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount)便捷版 组装跨链转账NULS资产的单账户对单账户普通跨链转账。ResultTransactionService. createCrossTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount, long time, String remark)便捷版 组装跨链转账NULS资产的单账户对单账户普通跨链转账。ResultTransactionService. createDepositTx(DepositDto dto)Create a proxy consensus transaction 创建委托共识交易ResultAccountService. createMultiSignAccount(List<String> pubKeys, int minSigns)ResultTransactionService. createMultiSignAliasTx(MultiSignAliasDto aliasDto)ResultTransactionService. createMultiSignConsensusTx(MultiSignConsensusDto consensusDto)ResultTransactionService. createMultiSignDepositTx(MultiSignDepositDto dto)ResultTransactionService. createMultiSignStopConsensusTx(MultiSignStopConsensusDto dto)ResultTransactionService. createMultiSignTransferTx(MultiSignTransferDto transferDto)ResultTransactionService. createMultiSignWithdrawDepositTx(MultiSignWithDrawDto dto)创建取消委托交易Result<List<AccountDto>>AccountService. createOffLineAccount(int chainId, int count, String prefix, String password)Result<List<AccountDto>>AccountService. createOffLineAccount(int count, String password)Create encrypted off-line accounts 批量创建离线账户ResultTransactionService. createStopConsensusTx(StopConsensusDto dto)创建注销共识节点交易ResultTransactionService. createTransferTx(TransferDto transferDto)创建转账交易(离线) create transfer transaction(off-line)ResultTransactionService. createTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount)便捷版 组装在NULS链内,转账非NULS资产的单账户对单账户普通转账(不能用于转NULS)。ResultTransactionService. createTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount, long time, String remark)便捷版 组装在NULS链内,转账非NULS资产的单账户对单账户普通转账(不能用于转NULS)。ResultTransactionService. createTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount)便捷版 组装在NULS链内,转账NULS资产的单账户对单账户普通转账。ResultTransactionService. createTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount, long time, String remark)便捷版 组装在NULS链内,转账NULS资产的单账户对单账户普通转账。ResultTransactionService. createWithdrawDepositTx(WithDrawDto dto)创建取消委托交易ResultTransactionService. crossTransfer(CrossTransferForm form)ResultContractService. deleteContract(ContractDeleteForm form)Result<Map>ContractService. deleteContractTxOffline(String sender, BigInteger senderBalance, String nonce, String contractAddress, String remark)ResultConsensusService. depositToAgent(DepositForm form)ResultAccountService. exportKeyStore(String address, String password, String filePath)ResultAccountService. getAccountBalance(String address, int chainId, int assetsId)获取账户余额ResultAccountService. getAddressByPriKey(String priKey)ResultBlockService. getBestBlock()ResultBlockService. getBestBlockHeader()ResultBlockService. getBlock(long height)ResultBlockService. getBlock(String hash)ResultBlockService. getBlockHeader(long height)ResultBlockService. getBlockHeader(String hash)Result<ContractConstructorInfoDto>ContractService. getConstructor(String contractCode)ResultContractService. getContractInfo(String contractAddress)ResultContractService. getContractMethod(ContractMethodForm form)ResultContractService. getContractMethodArgsTypes(ContractMethodForm form)ResultContractService. getContractResult(String hash)ResultConsensusService. getDepositList(String agentHash)ResultBlockService. getInfo()ResultAccountService. getPriKey(String address, String password)ResultAccountService. getPriKeyOffline(String address, String encryptedPriKey, String password)get unencrypted private-key 获取原始私钥ResultContractService. getTokenBalance(String contractAddress, String address)ResultTransactionService. getTransaction(String txHash)ResultTransactionService. getTx(String txHash)ResultAccountService. importKeystore(AccountKeyStoreDto keyStore, String password)ResultAccountService. importPriKey(String priKey, String password)导入私钥ResultContractService. imputedContractCallGas(ImputedGasContractCallForm form)ResultContractService. imputedContractCreateGas(ImputedGasContractCreateForm form)ResultContractService. invokeView(ContractViewCallForm form)ResultAccountService. multiSign(int chainId, String prefix, String address, String encryptedPrivateKey, String password, String txHex)ResultAccountService. multiSign(SignDto signDto, String txHex)Result<Map>ContractService. nrc20CrossChainTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, String contractAddress, long gasLimit, BigInteger amount, long time, String remark)ResultAccountService. resetPassword(String address, String oldPassword, String newPassword)ResultAccountService. resetPasswordOffline(String address, String encryptedPriKey, String oldPassword, String newPassword)Change the off-line account password by encryptedPriKey and passowrdResultAccountService. setAlias(String address, String alias, String password)ResultAccountService. sign(int chainId, String prefix, List<SignDto> signDtoList, String txHex)ResultAccountService. sign(String txHex, int chainId, String prefix, String address, String encryptedPrivateKey, String password)ResultAccountService. sign(List<SignDto> signDtoList, String txHex)sign the tx's digestResultTransactionService. signTx(String txHex, String address, String privateKey)明文私钥签名交易(单签)ResultTransactionService. signTx(String txHex, String address, String encryptedPrivateKey, String password)密文私钥签名交易(单签)ResultConsensusService. stopAgent(StopAgentForm form)ResultContractService. tokentransfer(ContractTokenTransferForm form)Result<Map>ContractService. tokenTransferTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, String contractAddress, long gasLimit, BigInteger amount, long time, String remark)Result<Map>ContractService. tokenTransferTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, String contractAddress, long gasLimit, BigInteger amount, String remark)ResultTransactionService. transfer(TransferForm transferForm)ResultContractService. transferTocontract(ContractTransferForm form)Result<Map>ContractService. transferToContractTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, long gasLimit, BigInteger amount, String remark)ResultAccountService. validateAddress(int chainId, String address)ResultContractService. validateContractCall(ContractValidateCallForm form)ResultContractService. validateContractCreate(ContractValidateCreateForm form)ResultContractService. validateContractDelete(ContractValidateDeleteForm form)ResultTransactionService. validateTx(String txHex)验证交易ResultConsensusService. withdraw(WithdrawForm form) -
io.nuls.v2.util中Result的使用
返回Result的io.nuls.v2.util中的方法 修饰符和类型 方法 说明 static ResultNulsSDKTool. broadcast(String txHex)static ResultNulsSDKTool. callContract(ContractCallForm form)static Result<Map>NulsSDKTool. callContractTxOffline(String sender, BigInteger senderBalance, String nonce, BigInteger value, String contractAddress, long gasLimit, String methodName, String methodDesc, Object[] args, String[] argsType, String remark)static Result<Map>NulsSDKTool. callContractTxOffline(String sender, BigInteger senderBalance, String nonce, BigInteger value, String contractAddress, long gasLimit, String methodName, String methodDesc, Object[] args, String[] argsType, String remark, List<ProgramMultyAssetValue> multyAssetValues)static ResultNulsSDKTool. changeV1addressToV2address(String v1Address)static ResultContractUtil. checkVmResultAndReturn(String errorMessage, Result defaultResult)static Result<List<String>>NulsSDKTool. createAccount(int count, String password)static ResultNulsSDKTool. createAgent(CreateAgentForm form)static ResultNulsSDKTool. createAliasTxOffline(AliasDto dto)static ResultNulsSDKTool. createConsensusTxOffline(ConsensusDto consensusDto)static ResultNulsSDKTool. createContract(ContractCreateForm form)static Result<Map>NulsSDKTool. createContractTxOffline(String sender, BigInteger senderBalance, String nonce, String alias, String contractCode, long gasLimit, Object[] args, String[] argsType, String remark)static ResultNulsSDKTool. createCrossTransferTxOffline(TransferDto transferDto)static ResultNulsSDKTool. createCrossTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount)跨链交易 便捷版 组装跨链转账非NULS资产的单账户对单账户普通跨链转账(不能用于转NULS)。static ResultNulsSDKTool. createCrossTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount, long time, String remark)跨链交易 便捷版 组装跨链转账非NULS资产的单账户对单账户普通跨链转账(不能用于转NULS)。static ResultNulsSDKTool. createCrossTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount)跨链交易 便捷版 组装跨链转账NULS资产的单账户对单账户普通跨链转账(只能用于转NULS)。static ResultNulsSDKTool. createCrossTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount, long time, String remark)跨链交易 便捷版 组装跨链转账NULS资产的单账户对单账户普通跨链转账(只能用于转NULS)。static ResultNulsSDKTool. createDepositTxOffline(DepositDto depositDto)static ResultNulsSDKTool. createMultiSignAccount(List<String> pubKeys, int minSigns)static ResultNulsSDKTool. createMultiSignAliasTxOffline(MultiSignAliasDto dto)static ResultNulsSDKTool. createMultiSignConsensusTx(MultiSignConsensusDto consensusDto)static ResultNulsSDKTool. createMultiSignDepositTxOffline(MultiSignDepositDto depositDto)static ResultNulsSDKTool. createMultiSignStopConsensusTx(MultiSignStopConsensusDto stopConsensusDto)static ResultNulsSDKTool. createMultiSignTransferTxOffline(MultiSignTransferDto transferDto)static ResultNulsSDKTool. createMultiSignWithdrawDepositTxOffline(MultiSignWithDrawDto withDrawDto)static Result<List<AccountDto>>NulsSDKTool. createOffLineAccount(int chainId, int count, String prefix, String password)static Result<List<AccountDto>>NulsSDKTool. createOffLineAccount(int count, String password)static ResultNulsSDKTool. createStopConsensusTxOffline(StopConsensusDto stopConsensusDto)static ResultNulsSDKTool. createTransferTxOffline(TransferDto transferDto)static ResultNulsSDKTool. createTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount)便捷版 组装在NULS链内,转账非NULS资产的单账户对单账户普通转账(不能用于转NULS)。static ResultNulsSDKTool. createTxSimpleTransferOfNonNuls(String fromAddress, String toAddress, int assetChainId, int assetId, BigInteger amount, long time, String remark)便捷版 组装在NULS链内,转账非NULS资产的单账户对单账户普通转账(不能用于转NULS)。static ResultNulsSDKTool. createTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount)便捷版 组装在NULS链内,转账NULS资产的单账户对单账户普通转账(只能用于转NULS)。static ResultNulsSDKTool. createTxSimpleTransferOfNuls(String fromAddress, String toAddress, BigInteger amount, long time, String remark)便捷版 组装在NULS链内,转账NULS资产的单账户对单账户普通转账(只能用于转NULS)。static ResultNulsSDKTool. createWithdrawDepositTxOffline(WithDrawDto withDrawDto)static ResultNulsSDKTool. crossTransfer(CrossTransferForm transferForm)static ResultNulsSDKTool. deleteContract(ContractDeleteForm form)static Result<Map>NulsSDKTool. deleteContractTxOffline(String sender, BigInteger senderBalance, String nonce, String contractAddress, String remark)static ResultNulsSDKTool. depositToAgent(DepositForm form)static ResultNulsSDKTool. deserializeTxHex(String txHex)根据交易的hex ,反序列化成交易实体类static ResultNulsSDKTool. exportKeyStore(String address, String password, String filePath)static ResultNulsSDKTool. getAccountBalance(String address, int chainId, int assetsId)static ResultNulsSDKTool. getAddressByPriKey(String priKey)static ResultNulsSDKTool. getBestBlock()static ResultNulsSDKTool. getBestBlockHeader()static ResultNulsSDKTool. getBlock(long height)static ResultNulsSDKTool. getBlock(String hash)static ResultNulsSDKTool. getBlockHeader(long height)static ResultNulsSDKTool. getBlockHeader(String hash)static Result<ContractConstructorInfoDto>NulsSDKTool. getConstructor(String contractCode)static ResultNulsSDKTool. getContractInfo(String contractAddress)static ResultNulsSDKTool. getContractMethod(ContractMethodForm form)static ResultNulsSDKTool. getContractMethodArgsTypes(ContractMethodForm form)static ResultNulsSDKTool. getContractResult(String hash)static ResultNulsSDKTool. getDepositList(String agentHash)static ResultContractUtil. getFailed()static Result<Map>NulsSDKTool. getInfo()static ResultNulsSDKTool. getPriKey(String address, String password)static ResultNulsSDKTool. getPriKeyOffline(String address, String encryptedPriKey, String password)static ResultContractUtil. getSuccess()static ResultNulsSDKTool. getSymbolInfo(int assetChainId, int assetId)static ResultNulsSDKTool. getTokenBalance(String contractAddress, String address)static ResultNulsSDKTool. getTransaction(String txHash)static ResultNulsSDKTool. getTx(String txHash)static ResultNulsSDKTool. importKeystore(AccountKeyStoreDto keyStore, String password)static ResultNulsSDKTool. importPriKey(String priKey, String password)static ResultNulsSDKTool. imputedContractCallGas(ImputedGasContractCallForm form)static ResultNulsSDKTool. imputedContractCreateGas(ImputedGasContractCreateForm form)static ResultNulsSDKTool. invokeView(ContractViewCallForm form)ResultNulsSDKTool. multiSign(int chainId, String prefix, String address, String encryptedPrivateKey, String password, String txHex)static ResultNulsSDKTool. multiSign(SignDto signDto, String txHex)static Result<Map>NulsSDKTool. nrc20CrossChainTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, String contractAddress, long gasLimit, BigInteger amount, long time, String remark)static ResultNulsSDKTool. resetPassword(String address, String oldPassword, String newPassword)static ResultNulsSDKTool. resetPasswordOffline(String address, String encryptedPriKey, String password, String newPassword)static ResultNulsSDKTool. setAlias(String address, String alias, String password)static ResultNulsSDKTool. sign(int chainId, String prefix, List<SignDto> signDtoList, String txHex)static ResultNulsSDKTool. sign(String txHex, int chainId, String prefix, String address, String encryptedPrivateKey, String password)static ResultNulsSDKTool. sign(String txHex, String address, String privateKey)static ResultNulsSDKTool. sign(String txHex, String address, String encryptedPrivateKey, String password)static ResultNulsSDKTool. sign(List<SignDto> signDtoList, String txHex)static ResultNulsSDKTool. stopAgent(StopAgentForm form)static ResultNulsSDKTool. tokentransfer(ContractTokenTransferForm form)static Result<Map>NulsSDKTool. tokenTransferTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, String contractAddress, long gasLimit, BigInteger amount, long time, String remark)static Result<Map>NulsSDKTool. tokenTransferTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, String contractAddress, long gasLimit, BigInteger amount, String remark)static ResultNulsSDKTool. transfer(TransferForm transferForm)static ResultNulsSDKTool. transferTocontract(ContractTransferForm form)static Result<Map>NulsSDKTool. transferToContractTxOffline(String fromAddress, BigInteger senderBalance, String nonce, String toAddress, long gasLimit, BigInteger amount, String remark)static ResultNulsSDKTool. validateAddress(int chainId, String address)static ResultNulsSDKTool. validateAddress(String address)static ResultNulsSDKTool. validateContractCall(ContractValidateCallForm form)static ResultNulsSDKTool. validateContractCreate(ContractValidateCreateForm form)static ResultNulsSDKTool. validateContractDelete(ContractValidateDeleteForm form)static ResultNulsSDKTool. validateTx(String txHex)static ResultNulsSDKTool. withdraw(WithdrawForm form)参数类型为Result的io.nuls.v2.util中的方法 修饰符和类型 方法 说明 static ResultContractUtil. checkVmResultAndReturn(String errorMessage, Result defaultResult)
-