API support

This commit is contained in:
aglkm
2024-05-23 17:41:03 +03:00
parent fca10e1a2c
commit b9b0045448
2 changed files with 62 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ lazy_static! {
// RPC requests to grin node.
async fn call(method: &str, params: &str, rpc_type: &str) -> Result<Value, anyhow::Error> {
pub async fn call(method: &str, params: &str, rpc_type: &str) -> Result<Value, anyhow::Error> {
let rpc_url;
let secret;