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/creditbalances/{owner}/credit balance
GET/empowerchain/empowerchain/plasticcredit/credit-classes/credit class
GET/empowerchain/empowerchain/plasticcredit/credit-classescredit classes
GET/empowerchain/empowerchain/plasticcredit/creditcollections/credit collection
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/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

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 class (CreditClass)

GET /empowerchain/empowerchain/plasticcredit/credit-classes/{credit_class_abbreviation}

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
credit_class_abbreviationpathstringstring

All responses

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

Responses

200 - A successful response.

Status: OK

Schema

CreditClassOKBody

Default Response

An unexpected error response.

Schema

CreditClassDefaultBody

Inlined models

CreditClassDefaultBody

Properties

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

CreditClassDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditClassOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_classCreditClassOKBodyCreditClassCreditClassOKBodyCreditClass

CreditClassOKBodyCreditClass

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

credit classes (CreditClasses)

GET /empowerchain/empowerchain/plasticcredit/credit-classes

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

CreditClassesOKBody

Default Response

An unexpected error response.

Schema

CreditClassesDefaultBody

Inlined models

CreditClassesDefaultBody

Properties

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

CreditClassesDefaultBodyDetailsItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
type_urlstringstring
valuebyte (base64 string)strfmt.Base64

CreditClassesOKBody

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_classes[]CreditClassesOKBodyCreditClassesItems0[]*CreditClassesOKBodyCreditClassesItems0
paginationCreditClassesOKBodyPaginationCreditClassesOKBodyPagination

CreditClassesOKBodyCreditClassesItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

CreditClassesOKBodyPagination

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
project_iduint64 (formatted string)string
total_amountCreditCollectionOKBodyCreditCollectionTotalAmountCreditCollectionOKBodyCreditCollectionTotalAmount

CreditCollectionOKBodyCreditCollectionTotalAmount

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (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_class_creation_feePlasticCreditParamsOKBodyParamsCreditClassCreationFeePlasticCreditParamsOKBodyParamsCreditClassCreationFee
issuer_creatorstringstring

PlasticCreditParamsOKBodyParamsCreditClassCreationFee

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_class_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.CreditClass

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.CreditCollection

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
denomstringstring
project_iduint64 (formatted string)string
total_amountEmpowerchainPlasticcreditCreditCollectionTotalAmountEmpowerchainPlasticcreditCreditCollectionTotalAmount

Inlined models

EmpowerchainPlasticcreditCreditCollectionTotalAmount

Properties

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

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_class_creation_feeEmpowerchainPlasticcreditParamsCreditClassCreationFeeEmpowerchainPlasticcreditParamsCreditClassCreationFee
issuer_creatorstringstring

Inlined models

EmpowerchainPlasticcreditParamsCreditClassCreationFee

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_class_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.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.QueryCreditClassResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_classEmpowerchainPlasticcreditQueryCreditClassResponseCreditClassEmpowerchainPlasticcreditQueryCreditClassResponseCreditClass

Inlined models

EmpowerchainPlasticcreditQueryCreditClassResponseCreditClass

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

empowerchain.plasticcredit.QueryCreditClassesResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
credit_classes[]EmpowerchainPlasticcreditQueryCreditClassesResponseCreditClassesItems0[]*EmpowerchainPlasticcreditQueryCreditClassesResponseCreditClassesItems0
paginationEmpowerchainPlasticcreditQueryCreditClassesResponsePaginationEmpowerchainPlasticcreditQueryCreditClassesResponsePagination

Inlined models

EmpowerchainPlasticcreditQueryCreditClassesResponseCreditClassesItems0

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
abbreviationstringstring
issuer_iduint64 (formatted string)string
namestringstring

EmpowerchainPlasticcreditQueryCreditClassesResponsePagination

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
project_iduint64 (formatted string)string
total_amountEmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionTotalAmountEmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionTotalAmount

EmpowerchainPlasticcreditQueryCreditCollectionResponseCreditCollectionTotalAmount

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
activeuint64 (formatted string)string
retireduint64 (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_class_creation_feeEmpowerchainPlasticcreditQueryParamsResponseParamsCreditClassCreationFeeEmpowerchainPlasticcreditQueryParamsResponseParamsCreditClassCreationFee
issuer_creatorstringstring

EmpowerchainPlasticcreditQueryParamsResponseParamsCreditClassCreationFee

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_class_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