@@ -299,6 +299,25 @@ func TestDebugTraceTransaction(t *testing.T) {
299299 require.NotEmpty(t, payload)
300300}*/
301301
302+ func TestDoRequest_SeqChainHealth (t * testing.T ) {
303+ p , err := ethrpc .NewProvider ("https://dev-nodes.sequence.app/polygon" )
304+ require .NoError (t , err )
305+
306+ result , err := ethrpc .DoRequest (context .Background (), p , "seq_chainHealth" )
307+ require .NoError (t , err )
308+ require .NotNil (t , result )
309+
310+ // Expect isHealthy to be true
311+ isHealthy , ok := result ["isHealthy" ].(bool )
312+ require .True (t , ok , "expected isHealthy to be a bool" )
313+ assert .True (t , isHealthy , "expected isHealthy to be true" )
314+
315+ // Expect expiresAt to be present as a string (RFC3339 timestamp)
316+ expiresAt , ok := result ["expiresAt" ].(string )
317+ require .True (t , ok , "expected expiresAt to be a string" )
318+ assert .NotEmpty (t , expiresAt )
319+ }
320+
302321func TestFetchBlockWithInvalidVRS (t * testing.T ) {
303322 url := "https://rpc.telos.net"
304323 // url := "https://node.mainnet.etherlink.com"
0 commit comments