diff --git a/test/unit/xrpl.test.js b/test/unit/xrpl.test.js index 0173542..ef86e45 100644 --- a/test/unit/xrpl.test.js +++ b/test/unit/xrpl.test.js @@ -22,5 +22,24 @@ describe( pool.close() } ).timeout(10000) + + it( + 'should retrieve a historical ledger from a node that has it', + async () => { + let pool = createPool([ + { url: 'wss://s1.ripple.com' }, + { url: 'wss://s2.ripple.com' }, + ]) + + let { result } = await pool.request({ + command: 'ledger', + ledger_index: 32570 + }) + + expect(result.ledger.ledger_hash).to.be.equal('4109C6F2045FC7EFF4CDE8F9905D19C28820D86304080FF886B299F0206E42B5') + + pool.close() + } + ).timeout(10000) } ) \ No newline at end of file