Added testnet accounts

This commit is contained in:
Tushar Pardhe
2023-01-25 10:13:59 +00:00
parent 638dd82b24
commit 798114bfbd

View File

@@ -15,11 +15,6 @@ const main = async () => {
const myFulfillment = new cc.PreimageSha256();
myFulfillment.setPreimage(preimageData);
const conditionHex = myFulfillment.getConditionBinary().toString('hex').toUpperCase();
// 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);
console.log('Condition:', conditionHex);
console.log('Fulfillment:', myFulfillment.serializeBinary().toString('hex').toUpperCase());
@@ -28,6 +23,11 @@ const main = async () => {
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233');
await client.connect();
// 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 firstRippleEpoch = 946684800;
const escrowCreateTransaction = {
"TransactionType": "EscrowCreate",