Const
Build a Lighthouse assertion. Each method returns a fluent builder bound to the assertion's target account(s).
Assert raw typed values at byte offsets in account data.
Compare fields between two accounts (delta).
Assert generic account-info fields (lamports, owner, data length, …).
Verify a merkle-tree account leaf.
Assert fields of an SPL mint account.
Assert fields of a stake account.
Assert sysvar clock fields (no target accounts).
Assert fields of an SPL token account.
lighthouse.tokenAccount(ata).amount(50_000_000, "<").build() Copy
lighthouse.tokenAccount(ata).amount(50_000_000, "<").build()
lighthouse.tokenAccount(ata) .amount(50_000_000, "<") .state(2, "!=") // not frozen .build() Copy
lighthouse.tokenAccount(ata) .amount(50_000_000, "<") .state(2, "!=") // not frozen .build()
lighthouse.sysvarClock().field("Slot", 1000n, ">").build() Copy
lighthouse.sysvarClock().field("Slot", 1000n, ">").build()
Build a Lighthouse assertion. Each method returns a fluent builder bound to the assertion's target account(s).