Preparing search index...
The search index is not available
Relic SDK
Relic SDK
@relicprotocol/client
BeaconBlockHistory
Class BeaconBlockHistory
Hierarchy
BeaconBlockHistory
Implements
IBlockHistory
Index
Constructors
constructor
Properties
client
contract
merkle
Root
Cache
pre
Dencun
Block
History
precomitted
Cache
Methods
can
Verify
Block
commit
Current
L1
Block
Hash
commit
Recent
ensure
Valid
Proof
get
Contract
get
Last
Precomiited
Block
get
Last
Summary
Block
get
Last
Verifiable
Block
is
Precomitted
summary
Slot
For
Block
valid
Block
Hash
wait
Until
Verifiable
Constructors
constructor
new
Beacon
Block
History
(
client
:
RelicClient
)
:
BeaconBlockHistory
Parameters
client:
RelicClient
Returns
BeaconBlockHistory
Properties
Private
client
client
:
RelicClient
Private
contract
contract
:
Contract
Private
merkle
Root
Cache
merkle
Root
Cache
:
Record
<
number
,
string
>
Private
pre
Dencun
Block
History
pre
Dencun
Block
History
:
BlockHistory
Private
precomitted
Cache
precomitted
Cache
:
Record
<
number
,
string
>
Methods
can
Verify
Block
can
Verify
Block
(
block
:
BlockTag
)
:
Promise
<
boolean
>
Parameters
block:
BlockTag
Returns
Promise
<
boolean
>
commit
Current
L1
Block
Hash
commit
Current
L1
Block
Hash
(
)
:
Promise
<
PopulatedTransaction
>
Returns
Promise
<
PopulatedTransaction
>
commit
Recent
commit
Recent
(
blockNum
:
BigNumberish
)
:
Promise
<
PopulatedTransaction
>
Parameters
blockNum:
BigNumberish
Returns
Promise
<
PopulatedTransaction
>
ensure
Valid
Proof
ensure
Valid
Proof
(
proof
:
BlockProof
)
:
Promise
<
void
>
Parameters
proof:
BlockProof
Returns
Promise
<
void
>
get
Contract
get
Contract
(
)
:
Contract
Returns
Contract
get
Last
Precomiited
Block
get
Last
Precomiited
Block
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
get
Last
Summary
Block
get
Last
Summary
Block
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
get
Last
Verifiable
Block
get
Last
Verifiable
Block
(
)
:
Promise
<
BigNumber
>
Returns
Promise
<
BigNumber
>
is
Precomitted
is
Precomitted
(
blockNum
:
number
, blockHash
:
string
)
:
Promise
<
boolean
>
Parameters
blockNum:
number
blockHash:
string
Returns
Promise
<
boolean
>
summary
Slot
For
Block
summary
Slot
For
Block
(
block
:
Block
)
:
Promise
<
null
|
number
>
Parameters
block:
Block
Returns
Promise
<
null
|
number
>
valid
Block
Hash
valid
Block
Hash
(
hash
:
string
, number
:
BigNumberish
, proof
:
string
)
:
Promise
<
boolean
>
Parameters
hash:
string
number:
BigNumberish
proof:
string
Returns
Promise
<
boolean
>
wait
Until
Verifiable
wait
Until
Verifiable
(
block
:
BlockTag
)
:
Promise
<
void
>
Parameters
block:
BlockTag
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Relic SDK
@relicprotocol/client
utils
@relicprotocol/types
Beacon
Block
History
constructor
client
contract
merkle
Root
Cache
pre
Dencun
Block
History
precomitted
Cache
can
Verify
Block
commit
Current
L1
Block
Hash
commit
Recent
ensure
Valid
Proof
get
Contract
get
Last
Precomiited
Block
get
Last
Summary
Block
get
Last
Verifiable
Block
is
Precomitted
summary
Slot
For
Block
valid
Block
Hash
wait
Until
Verifiable
Generated using
TypeDoc