Preparing search index...
The search index is not available
API References
API References
js
StorageClient
Class StorageClient
Hierarchy
StorageClient
Implements
HasDriver
<
StorageDriver
>
Index
Constructors
constructor
Properties
_driver
Methods
driver
set
Driver
get
Upload
Price
For
Bytes
get
Upload
Price
For
File
get
Upload
Price
For
Files
upload
upload
All
upload
Json
download
download
Json
Constructors
constructor
new
Storage
Client
(
)
:
StorageClient
Returns
StorageClient
Properties
Private
_driver
_driver
:
null
|
StorageDriver
= null
Methods
driver
driver
(
)
:
StorageDriver
Returns
StorageDriver
set
Driver
set
Driver
(
newDriver
:
StorageDriver
)
:
void
Parameters
newDriver:
StorageDriver
Returns
void
get
Upload
Price
For
Bytes
get
Upload
Price
For
Bytes
(
bytes
:
number
)
:
Promise
<
Amount
<
Currency
>
>
Parameters
bytes:
number
Returns
Promise
<
Amount
<
Currency
>
>
get
Upload
Price
For
File
get
Upload
Price
For
File
(
file
:
MetaplexFile
)
:
Promise
<
Amount
<
Currency
>
>
Parameters
file:
MetaplexFile
Returns
Promise
<
Amount
<
Currency
>
>
get
Upload
Price
For
Files
get
Upload
Price
For
Files
(
files
:
MetaplexFile
[]
)
:
Promise
<
Amount
<
Currency
>
>
Parameters
files:
MetaplexFile
[]
Returns
Promise
<
Amount
<
Currency
>
>
upload
upload
(
file
:
MetaplexFile
)
:
Promise
<
string
>
Parameters
file:
MetaplexFile
Returns
Promise
<
string
>
upload
All
upload
All
(
files
:
MetaplexFile
[]
)
:
Promise
<
string
[]
>
Parameters
files:
MetaplexFile
[]
Returns
Promise
<
string
[]
>
upload
Json
upload
Json
<
T
>
(
json
:
T
)
:
Promise
<
string
>
Type Parameters
T
extends
object
=
object
Parameters
json:
T
Returns
Promise
<
string
>
download
download
(
uri
:
string
, options
?:
StorageDownloadOptions
)
:
Promise
<
MetaplexFile
>
Parameters
uri:
string
Optional
options:
StorageDownloadOptions
Returns
Promise
<
MetaplexFile
>
download
Json
download
Json
<
T
>
(
uri
:
string
, options
?:
StorageDownloadOptions
)
:
Promise
<
T
>
Type Parameters
T
extends
object
=
object
Parameters
uri:
string
Optional
options:
StorageDownloadOptions
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
API
References
js-
plugin-
aws -
v0.19.1
js-
plugin-
nft-
storage -
v0.19.1
js -
v0.19.1
Storage
Client
constructor
_driver
driver
set
Driver
get
Upload
Price
For
Bytes
get
Upload
Price
For
File
get
Upload
Price
For
Files
upload
upload
All
upload
Json
download
download
Json
Generated using
TypeDoc