Preparing search index...
The search index is not available
Documentation
Documentation
@near-js/accounts
local-view-execution/storage
Storage
Class Storage
Index
Constructors
constructor
Properties
block
Heights
cache
MAX_
ELEMENTS
Methods
load
save
Constructors
constructor
new
Storage
(
options
?
)
:
Storage
Parameters
options
:
StorageOptions
= ...
Returns
Storage
Properties
Private
block
Heights
block
Heights
:
Map
<
string
,
number
>
Private
Readonly
cache
cache
:
LRUMap
<
string
|
number
,
any
>
Private
Static
MAX_
ELEMENTS
MAX_
ELEMENTS
:
number
= 100
Methods
load
load
(
blockRef
)
:
StorageData
Parameters
blockRef
:
BlockReference
Returns
StorageData
save
save
(
blockHash
,
__namedParameters
)
:
void
Parameters
blockHash
:
string
__namedParameters
:
StorageData
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
block
Heights
cache
MAX_
ELEMENTS
load
save
Documentation
Loading...