mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 12:15:50 +00:00
Remove .on(error) as it isn't part of the tutorial
This commit is contained in:
@@ -11,10 +11,6 @@ async function main() {
|
|||||||
const client = new xrpl.Client('wss://s1.ripple.com')
|
const client = new xrpl.Client('wss://s1.ripple.com')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
|
|
||||||
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn';
|
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn';
|
||||||
|
|
||||||
// Request account info for my_address to check account settings ------------
|
// Request account info for my_address to check account settings ------------
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ async function main() {
|
|||||||
const client = new xrpl.Client('wss://s1.ripple.com')
|
const client = new xrpl.Client('wss://s1.ripple.com')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
|
|
||||||
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn'
|
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn'
|
||||||
const counterparty_address = 'rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v'
|
const counterparty_address = 'rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v'
|
||||||
const frozen_currency = 'USD'
|
const frozen_currency = 'USD'
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ async function main() {
|
|||||||
const client = new xrpl.Client('wss://s1.ripple.com')
|
const client = new xrpl.Client('wss://s1.ripple.com')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
|
|
||||||
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn';
|
const my_address = 'rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn';
|
||||||
|
|
||||||
// Request account info for my_address to check account settings ------------
|
// Request account info for my_address to check account settings ------------
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ async function main() {
|
|||||||
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
|
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
// Get credentials from the Testnet Faucet ------------------------------------
|
// Get credentials from the Testnet Faucet ------------------------------------
|
||||||
console.log("Requesting an address from the Testnet faucet...")
|
console.log("Requesting an address from the Testnet faucet...")
|
||||||
const { wallet, balance } = await client.fundWallet()
|
const { wallet, balance } = await client.fundWallet()
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ async function main() {
|
|||||||
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
|
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
// Get credentials from the Testnet Faucet -----------------------------------
|
// Get credentials from the Testnet Faucet -----------------------------------
|
||||||
console.log("Requesting an address from the Testnet faucet...")
|
console.log("Requesting an address from the Testnet faucet...")
|
||||||
const { wallet, balance } = await client.fundWallet()
|
const { wallet, balance } = await client.fundWallet()
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ async function main() {
|
|||||||
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
|
const client = new xrpl.Client('wss://s.altnet.rippletest.net:51233')
|
||||||
await client.connect()
|
await client.connect()
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
|
|
||||||
// Get credentials from the Testnet Faucet ------------------------------------
|
// Get credentials from the Testnet Faucet ------------------------------------
|
||||||
console.log("Requesting an address from the Testnet faucet...")
|
console.log("Requesting an address from the Testnet faucet...")
|
||||||
const { wallet, balance } = await client.fundWallet()
|
const { wallet, balance } = await client.fundWallet()
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ async function main() {
|
|||||||
await client.connect()
|
await client.connect()
|
||||||
console.log("Connected to Testnet")
|
console.log("Connected to Testnet")
|
||||||
|
|
||||||
client.on('error', (errorCode, errorMessage) => {
|
|
||||||
console.log(errorCode + ': ' + errorMessage)
|
|
||||||
})
|
|
||||||
|
|
||||||
// Get credentials from the Testnet Faucet ------------------------------------
|
// Get credentials from the Testnet Faucet ------------------------------------
|
||||||
console.log("Requesting an address from the Testnet faucet...")
|
console.log("Requesting an address from the Testnet faucet...")
|
||||||
const { wallet, balance } = await client.fundWallet()
|
const { wallet, balance } = await client.fundWallet()
|
||||||
|
|||||||
Reference in New Issue
Block a user