ordspv
Docs home
GitHub
Preparing search index...
@ordspv/fetch
index
EsploraBackend
Class EsploraBackend
Index
Constructors
constructor
Properties
base
Url
Methods
get
Block
Hash
At
Height
get
Block
Info
get
Block
Raw
get
Header
Hex
get
Merkle
Proof
get
Tip
Height
get
Tx
Hex
get
Txid
At
Block
Index
get
Tx
Status
Constructors
constructor
new
EsploraBackend
(
baseUrl
:
string
,
fetchFn
?:
FetchFn
,
limits
?:
Partial
<
BackendLimits
>
,
)
:
EsploraBackend
Parameters
baseUrl
:
string
fetchFn
:
FetchFn
= ...
limits
:
Partial
<
BackendLimits
>
= {}
Returns
EsploraBackend
Properties
Readonly
base
Url
baseUrl
:
string
Methods
get
Block
Hash
At
Height
getBlockHashAtHeight
(
height
:
number
)
:
Promise
<
string
>
Parameters
height
:
number
Returns
Promise
<
string
>
get
Block
Info
getBlockInfo
(
blockHash
:
string
)
:
Promise
<
EsploraBlockInfo
>
Parameters
blockHash
:
string
Returns
Promise
<
EsploraBlockInfo
>
get
Block
Raw
getBlockRaw
(
blockHash
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
blockHash
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
get
Header
Hex
getHeaderHex
(
blockHash
:
string
)
:
Promise
<
string
>
Parameters
blockHash
:
string
Returns
Promise
<
string
>
get
Merkle
Proof
getMerkleProof
(
txid
:
string
)
:
Promise
<
EsploraMerkleProof
>
Parameters
txid
:
string
Returns
Promise
<
EsploraMerkleProof
>
get
Tip
Height
getTipHeight
()
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Tx
Hex
getTxHex
(
txid
:
string
)
:
Promise
<
string
>
Parameters
txid
:
string
Returns
Promise
<
string
>
get
Txid
At
Block
Index
getTxidAtBlockIndex
(
blockHash
:
string
,
pos
:
number
)
:
Promise
<
string
>
txid of the transaction at index
pos
in the block (esplora /txid endpoint)
Parameters
blockHash
:
string
pos
:
number
Returns
Promise
<
string
>
get
Tx
Status
getTxStatus
(
txid
:
string
)
:
Promise
<
EsploraTxStatus
>
Parameters
txid
:
string
Returns
Promise
<
EsploraTxStatus
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Url
Methods
get
Block
Hash
At
Height
get
Block
Info
get
Block
Raw
get
Header
Hex
get
Merkle
Proof
get
Tip
Height
get
Tx
Hex
get
Txid
At
Block
Index
get
Tx
Status
Docs home
GitHub
ordspv
Loading...
txid of the transaction at index
posin the block (esplora /txid endpoint)