diff --git a/Modules/Common/CryptoNoteMainModule.php b/Modules/Common/CryptoNoteMainModule.php index e22c3ab..aa9b41d 100644 --- a/Modules/Common/CryptoNoteMainModule.php +++ b/Modules/Common/CryptoNoteMainModule.php @@ -265,4 +265,12 @@ function ($raw_value) { $currency = ' ' . $this->currency_details['smallest'] ?? return $specials->return(); } + + final public function api_get_currency_supply(string $currency): string + { + return requester_single($this->select_node(), + endpoint: 'api/emission', + timeout: $this->timeout, + result_in: 'data')['coinbase']; + } }