mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 12:15:50 +00:00
Update content/_code-samples/get-tx/js/getTransaction.ts
Co-authored-by: Jackson Mills <aim4math@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ async function getTransaction(): Promise<void> {
|
|||||||
transactions: true,
|
transactions: true,
|
||||||
ledger_index: 'validated',
|
ledger_index: 'validated',
|
||||||
})
|
})
|
||||||
console.log(ledger)
|
console.log("Latest validated ledger:", ledger)
|
||||||
|
|
||||||
const transactions = ledger.result.ledger.transactions
|
const transactions = ledger.result.ledger.transactions
|
||||||
if (transactions) {
|
if (transactions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user