Skip to main content

BulkTransferHandler

Type Alias BulkTransferHandler 

Source
pub type BulkTransferHandler = Arc<dyn Fn(Value, RpcContext, UnboundedReceiver<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send>> + Send + Sync>;
Expand description

Bulk-transfer handler. Receives an inbound receiver of byte chunks (decoded from base64 wire frames) and returns a single receipt. The runtime SHA-256s the concatenation and verifies against the caller-asserted expected_hash before emitting the receipt.

Aliased Typeยง

pub struct BulkTransferHandler { /* private fields */ }