proman121 Posted September 16, 2018 Share Posted September 16, 2018 Hello All, Trying to retrieve Ripple account information for a test account created on Ripple Test servers. I created a test Ripple account using the following command, $curl -s -X POST https://faucet.altnet.rippletest.net/accounts [enter] Quote {"account":{"address":"rawQ2crN1F4y1U9YfSNxdNzoHFDgahySsg", "secret":"shy5sVYpYzQKmB5C96TZRFPDuPg8S"}, "balance":10000 } then i tried to retrieve the account info using the below code Quote 'use strict'; const RippleAPI = require('ripple-lib').RippleAPI; const api = new RippleAPI({ //server: 'wss://s1.ripple.com' // Public rippled server //Testnet server: 'wss://s.altnet.rippletest.net:51233' }); api.connect().then(() => { /* begin custom code ------------------------------------ */ //const myAddress = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn'; //Testnet account created by Vikram using the command $curl -s -X POST https://faucet.altnet.rippletest.net/accounts [enter] const myAddress = 'rawQ2crN1F4y1U9YfSNxdNzoHFDgahySsg'; console.log('getting account info for', myAddress); return api.getAccountInfo(myAddress); }).then(info => { console.log(info); console.log('getAccountInfo done'); /* end custom code -------------------------------------- */ }).then(() => { return api.disconnect(); }).then(() => { console.log('done and disconnected.'); }).catch(console.error); Unable to retrieve the account info. Getting the below error Quote getting account info for rawQ2crN1F4y1U9YfSNxdNzoHFDgahySsg [RippledError(actNotFound, { account: 'rawQ2crN1F4y1U9YfSNxdNzoHFDgahySsg', error: 'actNotFound', error_code: 19, error_message: 'Account not found.', id: 2, ledger_hash: '1D4FE33D1A2BE23280730EB1A81224CB50DED049846AA3A880102F3BE5CE9FB9', ledger_index: 12655931, request: { account: 'rawQ2crN1F4y1U9YfSNxdNzoHFDgahySsg', command: 'account_info', id: 2, ledger_index: 'validated' }, status: 'error', type: 'response', validated: true })] Where am I committing mistake? Please guide Link to comment Share on other sites More sharing options...
FlyingFox Posted September 16, 2018 Share Posted September 16, 2018 The account does not exist on the TestNet, for some reason. Best to generate a test account direct at this website: https://developers.ripple.com/xrp-test-net-faucet.html Link to comment Share on other sites More sharing options...
proman121 Posted September 16, 2018 Author Share Posted September 16, 2018 @FlyingFox Thanks for respnding. I created a new test account from the link you provided, but still we get the same error ("Account not found") $./node_modules/.bin/babel-node get-accountInfo.js getting account info for rH2QUFiowKMAApUagupy9Ebcefj2TwWQam [RippledError(actNotFound, { account: 'rH2QUFiowKMAApUagupy9Ebcefj2TwWQam', error: 'actNotFound', error_code: 19, error_message: 'Account not found.', id: 2, ledger_hash: '95EF23CDA6001F7643CAEBC8631D06B0024337BA041E20084F8A83F6FBD7531F', ledger_index: 12674357, request: { account: 'rH2QUFiowKMAApUagupy9Ebcefj2TwWQam', command: 'account_info', id: 2, ledger_index: 'validated' }, status: 'error', type: 'response', validated: true })] Link to comment Share on other sites More sharing options...
FlyingFox Posted September 17, 2018 Share Posted September 17, 2018 @proman121 Yes, it seemed to be broken earlier. Now though it seems to be working OK again - try again and see. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now