@ethersphere/bee-js
Version:
Javascript client for Bee
15 lines (14 loc) • 889 B
TypeScript
import { BeeRequestOptions, UploadOptions, UploadResult } from '../types';
import { BatchId, EthAddress, Identifier, Signature } from '../utils/typed-bytes';
/**
* Upload single owner chunk (SOC) to a Bee node
*
* @param requestOptions Options for making requests
* @param owner Owner's ethereum address in hex
* @param identifier Arbitrary identifier in hex
* @param signature Signature in hex
* @param data Content addressed chunk data to be uploaded
* @param postageBatchId Postage BatchId that will be assigned to uploaded data
* @param options Additional options like tag, encryption, pinning
*/
export declare function upload(requestOptions: BeeRequestOptions, owner: EthAddress, identifier: Identifier, signature: Signature, data: Uint8Array, stamp: BatchId | Uint8Array | string, options?: UploadOptions): Promise<UploadResult>;