pub async fn accept_request(
ws_rpc_url: String,
_min_exposure_percent: u8,
_max_exposure_percent: u8,
restaking_percent: u8,
keystore_uri: String,
request_id: u64,
) -> Result<()>Expand description
Accepts a service request.
§Arguments
ws_rpc_url- WebSocket RPC URL for the Tangle Network_min_exposure_percent- Minimum exposure percentage (currently unused)_max_exposure_percent- Maximum exposure percentage (currently unused)restaking_percent- Percentage of stake to restakekeystore_uri- URI for the keystorerequest_id- ID of the request to accept
§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