Added testnet accounts

This commit is contained in:
Tushar Pardhe
2023-01-25 10:08:52 +00:00
parent e5456b95d2
commit 638dd82b24
3 changed files with 15 additions and 10 deletions

View File

@@ -4,14 +4,16 @@ if (typeof module !== "undefined") {
var xrpl = require('xrpl')
}
const secret = "sEdTPPEeMH6SAgpo6rSj8YW7a9vFfUj";
const main = async () => {
try {
// Connect -------------------------------------------------------------------
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233');
await client.connect();
const wallet = await xrpl.Wallet.fromSeed(secret);
// Get credentials from the Testnet Faucet ------------------------------------
console.log("Requesting an address from the Testnet faucet...");
const { wallet } = await client.fundWallet();
console.log("Wallet: ", wallet.address);
const escrowFinishTransaction = {
"Account": wallet.address,