From 039684beeb4929d86817c8602366cfc110f6f05b 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/silkaj/blockchain_tools.py b/silkaj/blockchain_tools.py index 53ce4de9..4ac3d160 100644 --- a/silkaj/blockchain_tools.py +++ b/silkaj/blockchain_tools.py @@ -48,3 +48,8 @@ class HeadBlock: def get_head(self): client = ClientInstance().client return client(blockchain.current) + + +def get_currency(): + head_block = HeadBlock().head_block + return head_block["currency"] -- GitLab