0.7.1
This commit is contained in:
@@ -261,6 +261,23 @@ impl HttpEndpointPool {
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
/// Executes `getTransaction` through the pool and returns the raw result value.
|
||||
pub async fn get_transaction_raw_for_role(
|
||||
&self,
|
||||
required_role: &str,
|
||||
signature: std::string::String,
|
||||
config: std::option::Option<serde_json::Value>,
|
||||
) -> Result<serde_json::Value, crate::KbError> {
|
||||
let client_result = self
|
||||
.select_client_for_role_and_method(required_role, "getTransaction")
|
||||
.await;
|
||||
let client = match client_result {
|
||||
Ok(client) => client,
|
||||
Err(error) => return Err(error),
|
||||
};
|
||||
client.get_transaction_raw(signature, config).await
|
||||
}
|
||||
}
|
||||
|
||||
fn kb_pool_build_optional_config_only_params(
|
||||
|
||||
Reference in New Issue
Block a user