You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. import axios from 'axios';
  2. type Wallet = {secret: string, address:string }
  3. export const makeTestnetWallet = async () : Promise<Wallet> => {
  4. try{
  5. const response = await axios.post('https://faucet.altnet.rippletest.net/accounts', {})
  6. return ({
  7. secret: response.data.seed,
  8. address: response.data.account.address
  9. })
  10. }catch(e){
  11. console.log(e)
  12. }
  13. }