Search
Preparing search index...
The search index is not available
upload-protocol
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
upload-protocol
@web3-storage/upload
Module @web3-storage/upload
Index
Namespaces
<internal>
Functions
pack
sign
upload
Functions
pack
pack
(
stream
:
<internal>
.
Readable
)
:
Promise
<
{
blob
:
Blob
;
cid
:
<internal>
.
CID
;
contentCid
:
<internal>
.
CID
<
0
|
1
,
number
,
number
>
}
>
Parameters
stream:
<internal>
.
Readable
Returns
Promise
<
{
blob
:
Blob
;
cid
:
<internal>
.
CID
;
contentCid
:
<internal>
.
CID
<
0
|
1
,
number
,
number
>
}
>
sign
sign
(
cid
:
<internal>
.
CID
, privateKey
:
string
, ucanProof
:
string
)
:
Promise
<
string
>
Parameters
cid:
<internal>
.
CID
privateKey:
string
ucanProof:
string
Returns
Promise
<
string
>
upload
upload
(
stream
:
<internal>
.
Readable
, opts
:
UploadOptions
)
:
Promise
<
{
cid
:
<internal>
.
CID
;
contentCid
:
<internal>
.
CID
<
0
|
1
,
number
,
number
>
}
>
Parameters
stream:
<internal>
.
Readable
opts:
UploadOptions
Returns
Promise
<
{
cid
:
<internal>
.
CID
;
contentCid
:
<internal>
.
CID
<
0
|
1
,
number
,
number
>
}
>
Modules
@web3-
storage/signer
@web3-
storage/sigv4
@web3-
storage/upload
<internal>
pack
sign
upload
Generated using
TypeDoc