mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-05 09:46:45 +00:00
* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs. * Note that there are still a lot of linter errors.
23 lines
677 B
TypeScript
23 lines
677 B
TypeScript
// import {Client} from '../../dist/npm'
|
|
// import {TransactionMetadata} from '../../src/models/common/transaction'
|
|
|
|
// const client = new Client('wss://s.altnet.rippletest.net:51233')
|
|
|
|
// getTransaction()
|
|
|
|
// async function getTransaction() {
|
|
// await client.connect()
|
|
// const ledger = await client.request({command: 'ledger', transactions: true})
|
|
// console.log(ledger)
|
|
// const tx = await client.request({
|
|
// command: 'tx',
|
|
// transaction: ledger.result.ledger.transactions[0] as string
|
|
// })
|
|
// console.log(tx)
|
|
// console.log(
|
|
// 'deliveredAmount:',
|
|
// (tx.result.meta as TransactionMetadata).DeliveredAmount
|
|
// )
|
|
// process.exit(0)
|
|
// }
|