From 01b9a883e54e6dd89a7d5856fdfcd4685024cc1a Mon Sep 17 00:00:00 2001 From: matograine <matograine@zaclys.net> Date: Wed, 27 Oct 2021 16:56:12 +0200 Subject: [PATCH] [enh] #413 create function get_currency --- silkaj/blockchain_tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/silkaj/blockchain_tools.py b/silkaj/blockchain_tools.py index 53ce4de9..d7cfccd7 100644 --- a/silkaj/blockchain_tools.py +++ b/silkaj/blockchain_tools.py @@ -48,3 +48,7 @@ class HeadBlock: def get_head(self): client = ClientInstance().client return client(blockchain.current) + + +def get_currency(): + return (HeadBlock().head_block)["currency"] -- GitLab