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
ChainGrpcGovApi
Class ChainGrpcGovApi
Hierarchy
ChainGrpcGovApi
Index
Constructors
constructor
Properties
client
module
Methods
fetch
Module
Params
fetch
Proposal
fetch
Proposal
Deposits
fetch
Proposal
Tally
fetch
Proposal
Votes
fetch
Proposals
Constructors
constructor
new
Chain
Grpc
Gov
Api
(
endpoint
:
string
)
:
ChainGrpcGovApi
Parameters
endpoint:
string
Returns
ChainGrpcGovApi
Properties
Protected
client
client
:
QueryClientImpl
Protected
module
module
:
string
= ChainModule.Gov
Methods
fetch
Module
Params
fetch
Module
Params
(
)
:
internal
.
Promise
<
GovModuleStateParams
>
Returns
internal
.
Promise
<
GovModuleStateParams
>
fetch
Proposal
fetch
Proposal
(
proposalId
:
number
)
:
internal
.
Promise
<
Proposal
>
Parameters
proposalId:
number
Returns
internal
.
Promise
<
Proposal
>
fetch
Proposal
Deposits
fetch
Proposal
Deposits
(
__namedParameters
:
{
pagination
?:
PaginationOption
;
proposalId
:
number
}
)
:
internal
.
Promise
<
{
deposits
:
ProposalDeposit
[]
;
pagination
:
Pagination
}
>
Parameters
__namedParameters:
{
pagination
?:
PaginationOption
;
proposalId
:
number
}
Optional
pagination
?:
PaginationOption
proposal
Id
:
number
Returns
internal
.
Promise
<
{
deposits
:
ProposalDeposit
[]
;
pagination
:
Pagination
}
>
fetch
Proposal
Tally
fetch
Proposal
Tally
(
proposalId
:
number
)
:
internal
.
Promise
<
TallyResult
>
Parameters
proposalId:
number
Returns
internal
.
Promise
<
TallyResult
>
fetch
Proposal
Votes
fetch
Proposal
Votes
(
__namedParameters
:
{
pagination
?:
PaginationOption
;
proposalId
:
number
}
)
:
internal
.
Promise
<
{
pagination
:
Pagination
;
votes
:
Vote
[]
}
>
Parameters
__namedParameters:
{
pagination
?:
PaginationOption
;
proposalId
:
number
}
Optional
pagination
?:
PaginationOption
proposal
Id
:
number
Returns
internal
.
Promise
<
{
pagination
:
Pagination
;
votes
:
Vote
[]
}
>
fetch
Proposals
fetch
Proposals
(
__namedParameters
:
{
pagination
?:
PaginationOption
;
status
:
ProposalStatus
}
)
:
internal
.
Promise
<
{
pagination
:
Pagination
;
proposals
:
Proposal
[]
}
>
Parameters
__namedParameters:
{
pagination
?:
PaginationOption
;
status
:
ProposalStatus
}
Optional
pagination
?:
PaginationOption
status
:
ProposalStatus
Returns
internal
.
Promise
<
{
pagination
:
Pagination
;
proposals
:
Proposal
[]
}
>
Modules
@injectivelabs/sdk-
ts
internal
@injectivelabs/wallet-
ts
Chain
Grpc
Gov
Api
constructor
client
module
fetch
Module
Params
fetch
Proposal
fetch
Proposal
Deposits
fetch
Proposal
Tally
fetch
Proposal
Votes
fetch
Proposals
Generated using
TypeDoc