Skip to content
On this page

Empowerchain - API docs

A REST interface for state queries

Informations

Version

1.0.0

Content negotiation

URI Schemes

  • http

Consumes

  • application/json

Produces

  • application/json

All endpoints

query

MethodURINameSummary
GET/empowerchain/empowerchain/plasticcredit/applicants/applicant
GET/empowerchain/empowerchain/plasticcredit/applicantsapplicants
GET/empowerchain/empowerchain/plasticcredit/creditbalances/{owner}/credit balance
GET/empowerchain/empowerchain/plasticcredit/creditbalancescredit balances
GET/empowerchain/empowerchain/plasticcredit/creditcollections/credit collection
GET/empowerchain/empowerchain/plasticcredit/credit-types/credit type
GET/empowerchain/empowerchain/plasticcredit/credit-typescredit types
GET/empowerchain/empowerchain/plasticcredit/issuers/issuer
GET/empowerchain/empowerchain/plasticcredit/issuersissuers
GET/empowerchain/empowerchain/plasticcredit/paramsplastic credit params
GET/empowerchain/empowerchain/plasticcredit/projects/project
GET/empowerchain/empowerchain/plasticcredit/projectsprojects
GET/empowerchain/empowerchain/proofofexistence/proof/proof

Paths

applicant (Applicant)

GET /empowerchain/empowerchain/plasticcredit/applicants/{applicant_id}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
applicant_idpathuint64 (formatted string)string

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

ApplicantOKBody

Default Response

An unexpected error response.

Schema

ApplicantDefaultBody

Inlined models

ApplicantDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]ApplicantDefaultBodyDetailsItems0[]*ApplicantDefaultBodyDetailsItems0
errorstringstring
messagestringstring

ApplicantDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

ApplicantOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicantApplicantOKBodyApplicantApplicantOKBodyApplicant

ApplicantOKBodyApplicant

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

applicants (Applicants)

GET /empowerchain/empowerchain/plasticcredit/applicants

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
pagination.count_totalquerybooleanboolcount_total is set to true to indicate that the result set should include
a count of the total number of items available for pagination in UIs.
count_total is only respected when offset is used. It is ignored when key
is set.
pagination.keyquerybyte (base64 string)strfmt.Base64key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
pagination.limitqueryuint64 (formatted string)stringlimit is the total number of results to be returned in the result page.
If left empty it will default to a value to be set by each app.
pagination.offsetqueryuint64 (formatted string)stringoffset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key should
be set.
pagination.reversequerybooleanboolreverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43 |

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

ApplicantsOKBody

Default Response

An unexpected error response.

Schema

ApplicantsDefaultBody

Inlined models

ApplicantsDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]ApplicantsDefaultBodyDetailsItems0[]*ApplicantsDefaultBodyDetailsItems0
errorstringstring
messagestringstring

ApplicantsDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

ApplicantsOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicants[]ApplicantsOKBodyApplicantsItems0[]*ApplicantsOKBodyApplicantsItems0
paginationApplicantsOKBodyPaginationApplicantsOKBodyPagination

ApplicantsOKBodyApplicantsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

ApplicantsOKBodyPagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

credit balance (CreditBalance)

GET /empowerchain/empowerchain/plasticcredit/creditbalances/{owner}/{denom}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
denompathstringstring
ownerpathstringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

CreditBalanceOKBody

Default Response

An unexpected error response.

Schema

CreditBalanceDefaultBody

Inlined models

CreditBalanceDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]CreditBalanceDefaultBodyDetailsItems0[]*CreditBalanceDefaultBodyDetailsItems0
errorstringstring
messagestringstring

CreditBalanceDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditBalanceOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceCreditBalanceOKBodyBalanceCreditBalanceOKBodyBalance

CreditBalanceOKBodyBalance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceCreditBalanceOKBodyBalanceBalanceCreditBalanceOKBodyBalanceBalance
denomstringstring
ownerstringstring

CreditBalanceOKBodyBalanceBalance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

credit balances (CreditBalances)

GET /empowerchain/empowerchain/plasticcredit/creditbalances

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
pagination.count_totalquerybooleanboolcount_total is set to true to indicate that the result set should include
a count of the total number of items available for pagination in UIs.
count_total is only respected when offset is used. It is ignored when key
is set.
pagination.keyquerybyte (base64 string)strfmt.Base64key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
pagination.limitqueryuint64 (formatted string)stringlimit is the total number of results to be returned in the result page.
If left empty it will default to a value to be set by each app.
pagination.offsetqueryuint64 (formatted string)stringoffset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key should
be set.
pagination.reversequerybooleanboolreverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43 |

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

CreditBalancesOKBody

Default Response

An unexpected error response.

Schema

CreditBalancesDefaultBody

Inlined models

CreditBalancesDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]CreditBalancesDefaultBodyDetailsItems0[]*CreditBalancesDefaultBodyDetailsItems0
errorstringstring
messagestringstring

CreditBalancesDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditBalancesOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_balances[]CreditBalancesOKBodyCreditBalancesItems0[]*CreditBalancesOKBodyCreditBalancesItems0
paginationCreditBalancesOKBodyPaginationCreditBalancesOKBodyPagination

CreditBalancesOKBodyCreditBalancesItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceCreditBalancesOKBodyCreditBalancesItems0BalanceCreditBalancesOKBodyCreditBalancesItems0Balance
denomstringstring
ownerstringstring

CreditBalancesOKBodyCreditBalancesItems0Balance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

CreditBalancesOKBodyPagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

credit collection (CreditCollection)

GET /empowerchain/empowerchain/plasticcredit/creditcollections/{denom}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
denompathstringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

CreditCollectionOKBody

Default Response

An unexpected error response.

Schema

CreditCollectionDefaultBody

Inlined models

CreditCollectionDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]CreditCollectionDefaultBodyDetailsItems0[]*CreditCollectionDefaultBodyDetailsItems0
errorstringstring
messagestringstring

CreditCollectionDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditCollectionOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_collectionCreditCollectionOKBodyCreditCollectionCreditCollectionOKBodyCreditCollection

CreditCollectionOKBodyCreditCollection

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
denomstringstring
metadata_uris[]string[]string
project_iduint64 (formatted string)string
total_amountCreditCollectionOKBodyCreditCollectionTotalAmountCreditCollectionOKBodyCreditCollectionTotalAmount

CreditCollectionOKBodyCreditCollectionTotalAmount

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

credit type (CreditType)

GET /empowerchain/empowerchain/plasticcredit/credit-types/{credit_type_abbreviation}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
credit_type_abbreviationpathstringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

CreditTypeOKBody

Default Response

An unexpected error response.

Schema

CreditTypeDefaultBody

Inlined models

CreditTypeDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]CreditTypeDefaultBodyDetailsItems0[]*CreditTypeDefaultBodyDetailsItems0
errorstringstring
messagestringstring

CreditTypeDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditTypeOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_typeCreditTypeOKBodyCreditTypeCreditTypeOKBodyCreditType

CreditTypeOKBodyCreditType

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

credit types (CreditTypes)

GET /empowerchain/empowerchain/plasticcredit/credit-types

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
pagination.count_totalquerybooleanboolcount_total is set to true to indicate that the result set should include
a count of the total number of items available for pagination in UIs.
count_total is only respected when offset is used. It is ignored when key
is set.
pagination.keyquerybyte (base64 string)strfmt.Base64key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
pagination.limitqueryuint64 (formatted string)stringlimit is the total number of results to be returned in the result page.
If left empty it will default to a value to be set by each app.
pagination.offsetqueryuint64 (formatted string)stringoffset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key should
be set.
pagination.reversequerybooleanboolreverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43 |

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

CreditTypesOKBody

Default Response

An unexpected error response.

Schema

CreditTypesDefaultBody

Inlined models

CreditTypesDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]CreditTypesDefaultBodyDetailsItems0[]*CreditTypesDefaultBodyDetailsItems0
errorstringstring
messagestringstring

CreditTypesDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditTypesOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_types[]CreditTypesOKBodyCreditTypesItems0[]*CreditTypesOKBodyCreditTypesItems0
paginationCreditTypesOKBodyPaginationCreditTypesOKBodyPagination

CreditTypesOKBodyCreditTypesItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

CreditTypesOKBodyPagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

issuer (Issuer)

GET /empowerchain/empowerchain/plasticcredit/issuers/{issuer_id}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
issuer_idpathuint64 (formatted string)string

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

IssuerOKBody

Default Response

An unexpected error response.

Schema

IssuerDefaultBody

Inlined models

IssuerDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]IssuerDefaultBodyDetailsItems0[]*IssuerDefaultBodyDetailsItems0
errorstringstring
messagestringstring

IssuerDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

IssuerOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
issuerIssuerOKBodyIssuerIssuerOKBodyIssuer

IssuerOKBodyIssuer

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

issuers (Issuers)

GET /empowerchain/empowerchain/plasticcredit/issuers

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
pagination.count_totalquerybooleanboolcount_total is set to true to indicate that the result set should include
a count of the total number of items available for pagination in UIs.
count_total is only respected when offset is used. It is ignored when key
is set.
pagination.keyquerybyte (base64 string)strfmt.Base64key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
pagination.limitqueryuint64 (formatted string)stringlimit is the total number of results to be returned in the result page.
If left empty it will default to a value to be set by each app.
pagination.offsetqueryuint64 (formatted string)stringoffset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key should
be set.
pagination.reversequerybooleanboolreverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43 |

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

IssuersOKBody

Default Response

An unexpected error response.

Schema

IssuersDefaultBody

Inlined models

IssuersDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]IssuersDefaultBodyDetailsItems0[]*IssuersDefaultBodyDetailsItems0
errorstringstring
messagestringstring

IssuersDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

IssuersOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
issuers[]IssuersOKBodyIssuersItems0[]*IssuersOKBodyIssuersItems0
paginationIssuersOKBodyPaginationIssuersOKBodyPagination

IssuersOKBodyIssuersItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

IssuersOKBodyPagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

plastic credit params (PlasticCreditParams)

GET /empowerchain/empowerchain/plasticcredit/params

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

PlasticCreditParamsOKBody

Default Response

An unexpected error response.

Schema

PlasticCreditParamsDefaultBody

Inlined models

PlasticCreditParamsDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]PlasticCreditParamsDefaultBodyDetailsItems0[]*PlasticCreditParamsDefaultBodyDetailsItems0
errorstringstring
messagestringstring

PlasticCreditParamsDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

PlasticCreditParamsOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
paramsPlasticCreditParamsOKBodyParamsPlasticCreditParamsOKBodyParams

PlasticCreditParamsOKBodyParams

Params defines the parameters for the module.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_type_creation_feePlasticCreditParamsOKBodyParamsCreditTypeCreationFeePlasticCreditParamsOKBodyParamsCreditTypeCreationFee
issuer_creatorstringstring

PlasticCreditParamsOKBodyParamsCreditTypeCreationFee

Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
amountstringstring
denomstringstring

project (Project)

GET /empowerchain/empowerchain/plasticcredit/projects/{project_id}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
project_idpathuint64 (formatted string)string

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

ProjectOKBody

Default Response

An unexpected error response.

Schema

ProjectDefaultBody

Inlined models

ProjectDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]ProjectDefaultBodyDetailsItems0[]*ProjectDefaultBodyDetailsItems0
errorstringstring
messagestringstring

ProjectDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

ProjectOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
projectProjectOKBodyProjectProjectOKBodyProject

ProjectOKBodyProject

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicant_iduint64 (formatted string)string
credit_type_abbreviationstringstring
iduint64 (formatted string)string
namestringstring
statusstringstring"NEW"

projects (Projects)

GET /empowerchain/empowerchain/plasticcredit/projects

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
pagination.count_totalquerybooleanboolcount_total is set to true to indicate that the result set should include
a count of the total number of items available for pagination in UIs.
count_total is only respected when offset is used. It is ignored when key
is set.
pagination.keyquerybyte (base64 string)strfmt.Base64key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
pagination.limitqueryuint64 (formatted string)stringlimit is the total number of results to be returned in the result page.
If left empty it will default to a value to be set by each app.
pagination.offsetqueryuint64 (formatted string)stringoffset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key should
be set.
pagination.reversequerybooleanboolreverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43 |

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

ProjectsOKBody

Default Response

An unexpected error response.

Schema

ProjectsDefaultBody

Inlined models

ProjectsDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]ProjectsDefaultBodyDetailsItems0[]*ProjectsDefaultBodyDetailsItems0
errorstringstring
messagestringstring

ProjectsDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

ProjectsOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
paginationProjectsOKBodyPaginationProjectsOKBodyPagination
projects[]ProjectsOKBodyProjectsItems0[]*ProjectsOKBodyProjectsItems0

ProjectsOKBodyPagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

ProjectsOKBodyProjectsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicant_iduint64 (formatted string)string
credit_type_abbreviationstringstring
iduint64 (formatted string)string
namestringstring
statusstringstring"NEW"

proof (Proof)

GET /empowerchain/empowerchain/proofofexistence/proof/{hash}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
hashpathstringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKA successful response.schema
defaultAn unexpected error response.schema

Responses

200 - A successful response.

Status: OK

Schema

ProofOKBody

Default Response

An unexpected error response.

Schema

ProofDefaultBody

Inlined models

ProofDefaultBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]ProofDefaultBodyDetailsItems0[]*ProofDefaultBodyDetailsItems0
errorstringstring
messagestringstring

ProofDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

ProofOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
metadataProofOKBodyMetadataProofOKBodyMetadata

ProofOKBodyMetadata

ProofMetadata is the metadata attached to a specific data proof Because the proof itself is also the key, the data structure is hash -> ProofMetadata The hash is the SHA-256 hash of the data of which is being made a proof for.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
creatorstringstring
timestampdate-time (formatted string)strfmt.DateTime

Models

cosmos.base.query.v1beta1.PageRequest

message SomeRequest { Foo some_parameter = 1; PageRequest pagination = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
count_totalbooleanboolcount_total is set to true to indicate that the result set should include
a count of the total number of items available for pagination in UIs.
count_total is only respected when offset is used. It is ignored when key
is set.
keybyte (base64 string)strfmt.Base64key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
limituint64 (formatted string)stringlimit is the total number of results to be returned in the result page.
If left empty it will default to a value to be set by each app.
offsetuint64 (formatted string)stringoffset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key should
be set.
reversebooleanboolreverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43 | |

cosmos.base.query.v1beta1.PageResponse

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

cosmos.base.v1beta1.Coin

Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
amountstringstring
denomstringstring

empowerchain.plasticcredit.Applicant

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.CreditAmount

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

empowerchain.plasticcredit.CreditBalance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceEmpowerchainPlasticcreditCreditBalanceBalanceEmpowerchainPlasticcreditCreditBalanceBalance
denomstringstring
ownerstringstring

Inlined models

EmpowerchainPlasticcreditCreditBalanceBalance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

empowerchain.plasticcredit.CreditCollection

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
denomstringstring
metadata_uris[]string[]string
project_iduint64 (formatted string)string
total_amountEmpowerchainPlasticcreditCreditCollectionTotalAmountEmpowerchainPlasticcreditCreditCollectionTotalAmount

Inlined models

EmpowerchainPlasticcreditCreditCollectionTotalAmount

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

empowerchain.plasticcredit.CreditType

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.Issuer

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.Params

Params defines the parameters for the module.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_type_creation_feeEmpowerchainPlasticcreditParamsCreditTypeCreationFeeEmpowerchainPlasticcreditParamsCreditTypeCreationFee
issuer_creatorstringstring

Inlined models

EmpowerchainPlasticcreditParamsCreditTypeCreationFee

Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
amountstringstring
denomstringstring

empowerchain.plasticcredit.Project

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicant_iduint64 (formatted string)string
credit_type_abbreviationstringstring
iduint64 (formatted string)string
namestringstring
statusstringstring"NEW"

empowerchain.plasticcredit.ProjectStatus

NameTypeGo typeDefaultDescriptionExample
empowerchain.plasticcredit.ProjectStatusstringstring"NEW"

empowerchain.plasticcredit.QueryApplicantResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicantEmpowerchainPlasticcreditQueryApplicantResponseApplicantEmpowerchainPlasticcreditQueryApplicantResponseApplicant

Inlined models

EmpowerchainPlasticcreditQueryApplicantResponseApplicant

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.QueryApplicantsResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicants[]EmpowerchainPlasticcreditQueryApplicantsResponseApplicantsItems0[]*EmpowerchainPlasticcreditQueryApplicantsResponseApplicantsItems0
paginationEmpowerchainPlasticcreditQueryApplicantsResponsePaginationEmpowerchainPlasticcreditQueryApplicantsResponsePagination

Inlined models

EmpowerchainPlasticcreditQueryApplicantsResponseApplicantsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

EmpowerchainPlasticcreditQueryApplicantsResponsePagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

empowerchain.plasticcredit.QueryCreditBalanceResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceEmpowerchainPlasticcreditQueryCreditBalanceResponseBalanceEmpowerchainPlasticcreditQueryCreditBalanceResponseBalance

Inlined models

EmpowerchainPlasticcreditQueryCreditBalanceResponseBalance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceEmpowerchainPlasticcreditQueryCreditBalanceResponseBalanceBalanceEmpowerchainPlasticcreditQueryCreditBalanceResponseBalanceBalance
denomstringstring
ownerstringstring

EmpowerchainPlasticcreditQueryCreditBalanceResponseBalanceBalance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

empowerchain.plasticcredit.QueryCreditBalancesResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_balances[]EmpowerchainPlasticcreditQueryCreditBalancesResponseCreditBalancesItems0[]*EmpowerchainPlasticcreditQueryCreditBalancesResponseCreditBalancesItems0
paginationEmpowerchainPlasticcreditQueryCreditBalancesResponsePaginationEmpowerchainPlasticcreditQueryCreditBalancesResponsePagination

Inlined models

EmpowerchainPlasticcreditQueryCreditBalancesResponseCreditBalancesItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
balanceEmpowerchainPlasticcreditQueryCreditBalancesResponseCreditBalancesItems0BalanceEmpowerchainPlasticcreditQueryCreditBalancesResponseCreditBalancesItems0Balance
denomstringstring
ownerstringstring

EmpowerchainPlasticcreditQueryCreditBalancesResponseCreditBalancesItems0Balance

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

EmpowerchainPlasticcreditQueryCreditBalancesResponsePagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

empowerchain.plasticcredit.QueryCreditCollectionResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_collectionEmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionEmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollection

Inlined models

EmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollection

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
denomstringstring
metadata_uris[]string[]string
project_iduint64 (formatted string)string
total_amountEmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionTotalAmountEmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionTotalAmount

EmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionTotalAmount

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (formatted string)string

empowerchain.plasticcredit.QueryCreditTypeResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_typeEmpowerchainPlasticcreditQueryCreditTypeResponseCreditTypeEmpowerchainPlasticcreditQueryCreditTypeResponseCreditType

Inlined models

EmpowerchainPlasticcreditQueryCreditTypeResponseCreditType

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.QueryCreditTypesResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_types[]EmpowerchainPlasticcreditQueryCreditTypesResponseCreditTypesItems0[]*EmpowerchainPlasticcreditQueryCreditTypesResponseCreditTypesItems0
paginationEmpowerchainPlasticcreditQueryCreditTypesResponsePaginationEmpowerchainPlasticcreditQueryCreditTypesResponsePagination

Inlined models

EmpowerchainPlasticcreditQueryCreditTypesResponseCreditTypesItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

EmpowerchainPlasticcreditQueryCreditTypesResponsePagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

empowerchain.plasticcredit.QueryIssuerResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
issuerEmpowerchainPlasticcreditQueryIssuerResponseIssuerEmpowerchainPlasticcreditQueryIssuerResponseIssuer

Inlined models

EmpowerchainPlasticcreditQueryIssuerResponseIssuer

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.QueryIssuersResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
issuers[]EmpowerchainPlasticcreditQueryIssuersResponseIssuersItems0[]*EmpowerchainPlasticcreditQueryIssuersResponseIssuersItems0
paginationEmpowerchainPlasticcreditQueryIssuersResponsePaginationEmpowerchainPlasticcreditQueryIssuersResponsePagination

Inlined models

EmpowerchainPlasticcreditQueryIssuersResponseIssuersItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
adminstringstring
descriptionstringstring
iduint64 (formatted string)string
namestringstring

EmpowerchainPlasticcreditQueryIssuersResponsePagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

empowerchain.plasticcredit.QueryParamsResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
paramsEmpowerchainPlasticcreditQueryParamsResponseParamsEmpowerchainPlasticcreditQueryParamsResponseParams

Inlined models

EmpowerchainPlasticcreditQueryParamsResponseParams

Params defines the parameters for the module.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_type_creation_feeEmpowerchainPlasticcreditQueryParamsResponseParamsCreditTypeCreationFeeEmpowerchainPlasticcreditQueryParamsResponseParamsCreditTypeCreationFee
issuer_creatorstringstring

EmpowerchainPlasticcreditQueryParamsResponseParamsCreditTypeCreationFee

Coin defines a token with a denomination and an amount.

NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
amountstringstring
denomstringstring

empowerchain.plasticcredit.QueryProjectResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
projectEmpowerchainPlasticcreditQueryProjectResponseProjectEmpowerchainPlasticcreditQueryProjectResponseProject

Inlined models

EmpowerchainPlasticcreditQueryProjectResponseProject

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicant_iduint64 (formatted string)string
credit_type_abbreviationstringstring
iduint64 (formatted string)string
namestringstring
statusstringstring"NEW"

empowerchain.plasticcredit.QueryProjectsResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
paginationEmpowerchainPlasticcreditQueryProjectsResponsePaginationEmpowerchainPlasticcreditQueryProjectsResponsePagination
projects[]EmpowerchainPlasticcreditQueryProjectsResponseProjectsItems0[]*EmpowerchainPlasticcreditQueryProjectsResponseProjectsItems0

Inlined models

EmpowerchainPlasticcreditQueryProjectsResponsePagination

PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.

message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
next_keybyte (base64 string)strfmt.Base64next_key is the key to be passed to PageRequest.key to
query the next page most efficiently. It will be empty if
there are no more results.
totaluint64 (formatted string)string

EmpowerchainPlasticcreditQueryProjectsResponseProjectsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
applicant_iduint64 (formatted string)string
credit_type_abbreviationstringstring
iduint64 (formatted string)string
namestringstring
statusstringstring"NEW"

empowerchain.proofofexistence.ProofMetadata

ProofMetadata is the metadata attached to a specific data proof Because the proof itself is also the key, the data structure is hash -> ProofMetadata The hash is the SHA-256 hash of the data of which is being made a proof for.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
creatorstringstring
timestampdate-time (formatted string)strfmt.DateTime

empowerchain.proofofexistence.QueryProofResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
metadataEmpowerchainProofofexistenceQueryProofResponseMetadataEmpowerchainProofofexistenceQueryProofResponseMetadata

Inlined models

EmpowerchainProofofexistenceQueryProofResponseMetadata

ProofMetadata is the metadata attached to a specific data proof Because the proof itself is also the key, the data structure is hash -> ProofMetadata The hash is the SHA-256 hash of the data of which is being made a proof for.

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
creatorstringstring
timestampdate-time (formatted string)strfmt.DateTime

google.protobuf.Any

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

grpc.gateway.runtime.Error

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
codeint32 (formatted integer)int32
details[]GrpcGatewayRuntimeErrorDetailsItems0[]*GrpcGatewayRuntimeErrorDetailsItems0
errorstringstring
messagestringstring

Inlined models

GrpcGatewayRuntimeErrorDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64