add getInterchain: trace a transaction/block to validator blocks + interchain anchors
All checks were successful
Build and Test / build (20.x) (push) Successful in 45s
Build and Test / build (18.x) (push) Successful in 48s
Build and Test / build (16.x) (push) Successful in 52s

New transaction.getInterchain and block.getInterchain call the prime-node
/api/v1/{transaction,block}/{id}/interchain endpoints, returning an
InterchainTrace { blockId, validatorBlocks, interchainTransactions }. Adds
VerificationBlock / InterchainTransaction / InterchainTrace interfaces and
method-existence assertions.
This commit is contained in:
2026-06-02 14:12:59 -04:00
parent e4430ae27c
commit 2ffa63df41
4 changed files with 63 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ describe('DragonchainSDK', () => {
expect(typeof sdk.transaction.create).toBe('function');
expect(typeof sdk.transaction.createBulk).toBe('function');
expect(typeof sdk.transaction.get).toBe('function');
expect(typeof sdk.transaction.getInterchain).toBe('function');
expect(typeof sdk.transaction.list).toBe('function');
});
@@ -68,6 +69,7 @@ describe('DragonchainSDK', () => {
it('should have block module with correct methods', () => {
expect(typeof sdk.block.get).toBe('function');
expect(typeof sdk.block.getInterchain).toBe('function');
});
it('should have system module with correct methods', () => {