Comments (2)
Hi @beatrizsanchez, it appears that the parity API has changed - this call is now named slightly differently from when I originally implemented it, which is why it is failing.
https://github.com/paritytech/parity/wiki/JSONRPC-parity_accounts-module#parity_newaccountfromwallet
You're welcome to submit a PR to rename this.
In terms of your code, the following is a more straight forwards implementation:
String password = "password";
String destDir = "/Users/Conor/tmp";
ObjectMapper objectMapper = ObjectMapperFactory.getObjectMapper();
String walletFileName = WalletUtils.generateNewWalletFile(password, new File(destDir), false);
WalletFile walletFile = objectMapper.readValue(
new File(destDir + File.separator + walletFileName), WalletFile.class);
NewAccountIdentifier newAccountIdentifier = parity.personalNewAccountFromWallet(
walletFile, password).send();
I've raised #74 for the main piece of work that needs to be done to support all of the revised calls properly.
from web3j.
Fixed by #147.
from web3j.
Related Issues (20)
- EIP-4844 support
- Outdated okhttp dependency has several security vulnerabilities
- Make Web3j autocloseable
- how to decode input about beacon input data
- Incorrect address returned from `signedPrefixedMessageToKey` when invalid data passed in
- NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)' HOT 7
- No AccessList field in EIP1559 transaction HOT 1
- log filter not work, case: on reinstallFilter() called, if getInitialFilterLogs() throw Exception, schedule is Cancelled on reinstallFilter.
- Generated Contract Error: Cannot cast from List to byte[]
- Wrapper Generation with Array of Structs Parameter still an issue in 4.10.3
- Could you please help release the package? This bug has affected normal use: https://github.com/web3j/web3j/pull/1962 HOT 1
- Filter Exception, Invalid request: filter not found
- Generated wrapper around struct containing a `address[]` member can't be instantiated
- FastRawTransactionManager's resetNonce() will bring its nonce field out of sync
- Allow the use of a struct without having a corresponding Java class
- Update BouncyCastle in org.web3j:core:4.8.7-android HOT 3
- Build fails due to dependency jc-kzg-4844 since version 4.11.0 HOT 7
- Create / demonstrate in tests method for recovering address from signTypedData
- CVE-2023-33201 transitive vulnerable dependency
- Solidity multidimensional array as return
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3j.