pub async fn request_service(
ws_rpc_url: String,
blueprint_id: u64,
min_exposure_percent: u8,
max_exposure_percent: u8,
target_operators: Vec<AccountId32>,
value: u128,
keystore_uri: String,
) -> Result<()>Expand description
Requests a service from the Tangle Network.
§Arguments
ws_rpc_url- WebSocket RPC URL for the Tangle Networkblueprint_id- ID of the blueprint to requestmin_exposure_percent- Minimum exposure percentagemax_exposure_percent- Maximum exposure percentagetarget_operators- List of target operatorsvalue- Value to stakekeystore_uri- URI for the keystore
§Errors
Returns an error if:
- Failed to connect to the Tangle Network
- Failed to sign or submit the transaction
- Transaction failed
§Panics
Panics if:
- Failed to create keystore
- Failed to get keys from keystore