Search
Preparing search index...
The search index is not available
API Reference | Injective - Powering the future of decentralized finance.
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference | Injective - Powering the future of decentralized finance.
@injectivelabs/sdk-ts
IndexerRestExplorerApi
Class IndexerRestExplorerApi
Hierarchy
default
IndexerRestExplorerApi
Index
Constructors
constructor
Properties
client
Methods
fetch
Account
Transactions
fetch
Block
fetch
Blocks
fetch
Blocks
With
Tx
fetchCW20
Balances
fetchCW20
Balances
No
Throw
fetch
Contract
fetch
Contract
Transactions
fetch
Contracts
fetch
Transaction
fetch
Transactions
fetch
Validator
Uptime
fetch
Validators
fetch
Wasm
Code
fetch
Wasm
Codes
get
post
set
Config
Constructors
constructor
new
Indexer
Rest
Explorer
Api
(
endpoint
:
string
)
:
IndexerRestExplorerApi
Parameters
endpoint:
string
Returns
IndexerRestExplorerApi
Properties
Protected
client
client
:
default
Methods
fetch
Account
Transactions
fetch
Account
Transactions
(
__namedParameters
:
{
account
:
string
;
params
?:
{
after
?:
number
;
before
?:
number
;
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
;
toNumber
?:
number
}
}
)
:
internal
.
Promise
<
{
paging
:
Paging
;
transactions
:
ExplorerTransaction
[]
}
>
Parameters
__namedParameters:
{
account
:
string
;
params
?:
{
after
?:
number
;
before
?:
number
;
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
;
toNumber
?:
number
}
}
account
:
string
Optional
params
?:
{
after
?:
number
;
before
?:
number
;
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
;
toNumber
?:
number
}
Optional
after
?:
number
Optional
before
?:
number
Optional
from
Number
?:
number
Optional
limit
?:
number
Optional
skip
?:
number
Optional
to
Number
?:
number
Returns
internal
.
Promise
<
{
paging
:
Paging
;
transactions
:
ExplorerTransaction
[]
}
>
fetch
Block
fetch
Block
(
blockHashHeight
:
string
)
:
internal
.
Promise
<
ExplorerBlockWithTxs
>
Parameters
blockHashHeight:
string
Returns
internal
.
Promise
<
ExplorerBlockWithTxs
>
fetch
Blocks
fetch
Blocks
(
params
?:
{
before
?:
number
;
limit
?:
number
}
)
:
internal
.
Promise
<
{
blocks
:
Block
[]
;
paging
:
Paging
}
>
Parameters
Optional
params:
{
before
?:
number
;
limit
?:
number
}
Optional
before
?:
number
Optional
limit
?:
number
Returns
internal
.
Promise
<
{
blocks
:
Block
[]
;
paging
:
Paging
}
>
fetch
Blocks
With
Tx
fetch
Blocks
With
Tx
(
params
?:
{
before
?:
number
;
limit
?:
number
}
)
:
internal
.
Promise
<
{
blocks
:
ExplorerBlockWithTxs
[]
;
paging
:
Paging
}
>
Parameters
Optional
params:
{
before
?:
number
;
limit
?:
number
}
Optional
before
?:
number
Optional
limit
?:
number
Returns
internal
.
Promise
<
{
blocks
:
ExplorerBlockWithTxs
[]
;
paging
:
Paging
}
>
fetchCW20
Balances
fetchCW20
Balances
(
address
:
string
)
:
internal
.
Promise
<
ExplorerCW20BalanceWithToken
[]
>
Parameters
address:
string
Returns
internal
.
Promise
<
ExplorerCW20BalanceWithToken
[]
>
fetchCW20
Balances
No
Throw
fetchCW20
Balances
No
Throw
(
address
:
string
)
:
internal
.
Promise
<
ExplorerCW20BalanceWithToken
[]
>
Parameters
address:
string
Returns
internal
.
Promise
<
ExplorerCW20BalanceWithToken
[]
>
fetch
Contract
fetch
Contract
(
contractAddress
:
string
)
:
internal
.
Promise
<
Contract
>
Parameters
contractAddress:
string
Returns
internal
.
Promise
<
Contract
>
fetch
Contract
Transactions
fetch
Contract
Transactions
(
__namedParameters
:
{
contractAddress
:
string
;
params
?:
{
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
;
toNumber
?:
number
}
}
)
:
internal
.
Promise
<
{
paging
:
Paging
;
transactions
:
ContractTransaction
[]
}
>
Parameters
__namedParameters:
{
contractAddress
:
string
;
params
?:
{
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
;
toNumber
?:
number
}
}
contract
Address
:
string
Optional
params
?:
{
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
;
toNumber
?:
number
}
Optional
from
Number
?:
number
Optional
limit
?:
number
Optional
skip
?:
number
Optional
to
Number
?:
number
Returns
internal
.
Promise
<
{
paging
:
Paging
;
transactions
:
ContractTransaction
[]
}
>
fetch
Contracts
fetch
Contracts
(
params
?:
{
assetsOnly
?:
boolean
;
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
}
)
:
internal
.
Promise
<
{
contracts
:
Contract
[]
;
paging
:
Paging
}
>
Parameters
Optional
params:
{
assetsOnly
?:
boolean
;
fromNumber
?:
number
;
limit
?:
number
;
skip
?:
number
}
Optional
assets
Only
?:
boolean
Optional
from
Number
?:
number
Optional
limit
?:
number
Optional
skip
?:
number
Returns
internal
.
Promise
<
{
contracts
:
Contract
[]
;
paging
:
Paging
}
>
fetch
Transaction
fetch
Transaction
(
hash
:
string
)
:
internal
.
Promise
<
ExplorerTransaction
>
Parameters
hash:
string
Returns
internal
.
Promise
<
ExplorerTransaction
>
fetch
Transactions
fetch
Transactions
(
params
?:
{
after
?:
number
;
before
?:
number
;
fromNumber
?:
number
;
limit
?:
number
;
toNumber
?:
number
}
)
:
internal
.
Promise
<
{
paging
:
Paging
;
transactions
:
ExplorerTransaction
[]
}
>
Parameters
Optional
params:
{
after
?:
number
;
before
?:
number
;
fromNumber
?:
number
;
limit
?:
number
;
toNumber
?:
number
}
Optional
after
?:
number
Optional
before
?:
number
Optional
from
Number
?:
number
Optional
limit
?:
number
Optional
to
Number
?:
number
Returns
internal
.
Promise
<
{
paging
:
Paging
;
transactions
:
ExplorerTransaction
[]
}
>
fetch
Validator
Uptime
fetch
Validator
Uptime
(
validatorConsensusAddress
:
string
)
:
internal
.
Promise
<
ExplorerValidatorUptime
[]
>
Parameters
validatorConsensusAddress:
string
Returns
internal
.
Promise
<
ExplorerValidatorUptime
[]
>
fetch
Validators
fetch
Validators
(
)
:
internal
.
Promise
<
Partial
<
ExplorerValidator
>
[]
>
Returns
internal
.
Promise
<
Partial
<
ExplorerValidator
>
[]
>
fetch
Wasm
Code
fetch
Wasm
Code
(
codeId
:
number
)
:
internal
.
Promise
<
WasmCode
>
Parameters
codeId:
number
Returns
internal
.
Promise
<
WasmCode
>
fetch
Wasm
Codes
fetch
Wasm
Codes
(
params
?:
{
fromNumber
?:
number
;
limit
?:
number
;
toNumber
?:
number
}
)
:
internal
.
Promise
<
{
paging
:
Paging
;
wasmCodes
:
WasmCode
[]
}
>
Parameters
Optional
params:
{
fromNumber
?:
number
;
limit
?:
number
;
toNumber
?:
number
}
Optional
from
Number
?:
number
Optional
limit
?:
number
Optional
to
Number
?:
number
Returns
internal
.
Promise
<
{
paging
:
Paging
;
wasmCodes
:
WasmCode
[]
}
>
get
get
<
T
>
(
endpoint
:
string
, params
?:
Record
<
string
,
any
>
)
:
internal
.
Promise
<
T
>
Type Parameters
T
Parameters
endpoint:
string
Optional
params:
Record
<
string
,
any
>
Returns
internal
.
Promise
<
T
>
post
post
<
T
>
(
endpoint
:
string
, params
?:
Record
<
string
,
any
>
)
:
internal
.
Promise
<
T
>
Type Parameters
T
Parameters
endpoint:
string
Optional
params:
Record
<
string
,
any
>
Returns
internal
.
Promise
<
T
>
set
Config
set
Config
(
config
:
AxiosRequestConfig
)
:
default
Parameters
config:
AxiosRequestConfig
Returns
default
Modules
@injectivelabs/sdk-
ts
internal
@injectivelabs/wallet-
ts
Indexer
Rest
Explorer
Api
constructor
client
fetch
Account
Transactions
fetch
Block
fetch
Blocks
fetch
Blocks
With
Tx
fetchCW20
Balances
fetchCW20
Balances
No
Throw
fetch
Contract
fetch
Contract
Transactions
fetch
Contracts
fetch
Transaction
fetch
Transactions
fetch
Validator
Uptime
fetch
Validators
fetch
Wasm
Code
fetch
Wasm
Codes
get
post
set
Config
Generated using
TypeDoc