{"action":"closed","issue":{"url":"https://api.github.com/repos/nemtech/nem2-sdk-typescript-javascript/issues/7","repository_url":"https://api.github.com/repos/nemtech/nem2-sdk-typescript-javascript","labels_url":"https://api.github.com/repos/nemtech/nem2-sdk-typescript-javascript/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/nemtech/nem2-sdk-typescript-javascript/issues/7/comments","events_url":"https://api.github.com/repos/nemtech/nem2-sdk-typescript-javascript/issues/7/events","html_url":"https://github.com/nemtech/nem2-sdk-typescript-javascript/issues/7","id":326327953,"number":7,"title":"Checking if a mosaic/namespace is expired","user":{"login":"denizdurmus","id":1142230,"avatar_url":"https://avatars3.githubusercontent.com/u/1142230?v=4","gravatar_id":"","url":"https://api.github.com/users/denizdurmus","html_url":"https://github.com/denizdurmus","followers_url":"https://api.github.com/users/denizdurmus/followers","following_url":"https://api.github.com/users/denizdurmus/following{/other_user}","gists_url":"https://api.github.com/users/denizdurmus/gists{/gist_id}","starred_url":"https://api.github.com/users/denizdurmus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denizdurmus/subscriptions","organizations_url":"https://api.github.com/users/denizdurmus/orgs","repos_url":"https://api.github.com/users/denizdurmus/repos","events_url":"https://api.github.com/users/denizdurmus/events{/privacy}","received_events_url":"https://api.github.com/users/denizdurmus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-24T23:10:56Z","updated_at":"2018-05-25T09:56:48Z","closed_at":"2018-05-25T09:56:48Z","author_association":"NONE","body":"Right now there is no proper way to check if a mosaic/namespace is expired. As workaround, we can use (mosaic.getHeight + mosaic.getDuration) > blockhain.getHeight() to find out if a mosaic is expired (same applies for namespaces)\r\n\r\nit would be much nicer if there is functionality to check the expiration by mosaic.isExpired()  and namespace.isExpired()."}}
{"actor":{"display_login":"aleixmorgadas"}}