diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index 6b9622ce..44f43325 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -166,3 +166,9 @@ func toStackParameter(value interface{}) (sc.Parameter, error) { return result, nil } + +// MagicNumber returns the magic number of the network +// to which the underlying RPC node client is connected. +func (c *Client) MagicNumber() uint64 { + return uint64(c.client.GetNetwork()) +}