Documentation
¶
Overview ¶
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
Index ¶
- func AccountsAddressGet(w http.ResponseWriter, r *http.Request)
- func BlocksGet(w http.ResponseWriter, r *http.Request)
- func BlocksIdGet(w http.ResponseWriter, r *http.Request)
- func CollectionsIdGet(w http.ResponseWriter, r *http.Request)
- func ExecutionResultsGet(w http.ResponseWriter, r *http.Request)
- func ExecutionResultsIdGet(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter() *mux.Router
- func ScriptsPost(w http.ResponseWriter, r *http.Request)
- func TransactionResultsTransactionIdGet(w http.ResponseWriter, r *http.Request)
- func TransactionsIdGet(w http.ResponseWriter, r *http.Request)
- func TransactionsPost(w http.ResponseWriter, r *http.Request)
- type Account
- type AccountExpandable
- type AccountPublicKey
- type AggregatedSignature
- type Block
- type BlockExpandable
- type BlockHeader
- type BlockHeight
- type BlockPayload
- type BlockSeal
- type Collection
- type CollectionGuarantee
- type Event
- type ExecutionResult
- type HashingAlgorithm
- type InlineResponse200
- type Links
- type ModelError
- type OneOfBlockHeight
- type ProposalKey
- type Route
- type Routes
- type ScriptsBody
- type SigningAlgorithm
- type Transaction
- type TransactionExpandable
- type TransactionResult
- type TransactionResultExpandable
- type TransactionSignature
- type TransactionStatus
- type TransactionsBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountsAddressGet ¶
func AccountsAddressGet(w http.ResponseWriter, r *http.Request)
func BlocksIdGet ¶
func BlocksIdGet(w http.ResponseWriter, r *http.Request)
func CollectionsIdGet ¶
func CollectionsIdGet(w http.ResponseWriter, r *http.Request)
func ExecutionResultsGet ¶
func ExecutionResultsGet(w http.ResponseWriter, r *http.Request)
func ExecutionResultsIdGet ¶
func ExecutionResultsIdGet(w http.ResponseWriter, r *http.Request)
func ScriptsPost ¶
func ScriptsPost(w http.ResponseWriter, r *http.Request)
func TransactionResultsTransactionIdGet ¶
func TransactionResultsTransactionIdGet(w http.ResponseWriter, r *http.Request)
func TransactionsIdGet ¶
func TransactionsIdGet(w http.ResponseWriter, r *http.Request)
func TransactionsPost ¶
func TransactionsPost(w http.ResponseWriter, r *http.Request)
Types ¶
type Account ¶
type Account struct {
Address string `json:"address"`
Balance int32 `json:"balance"`
Keys []AccountPublicKey `json:"keys,omitempty"`
Contracts map[string]string `json:"contracts,omitempty"`
Expandable *AccountExpandable `json:"_expandable,omitempty"`
Links *Links `json:"_links,omitempty"`
}
type AccountExpandable ¶
type AccountPublicKey ¶
type AccountPublicKey struct {
Index int32 `json:"index"`
PublicKey string `json:"public_key"`
SigningAlgorithm *SigningAlgorithm `json:"signing_algorithm"`
HashingAlgorithm *HashingAlgorithm `json:"hashing_algorithm"`
SequenceNumber int32 `json:"sequence_number"`
Weight int32 `json:"weight"`
Revoked bool `json:"revoked"`
}
type AggregatedSignature ¶
type Block ¶
type Block struct {
Header *BlockHeader `json:"header"`
Payload *BlockPayload `json:"payload,omitempty"`
ExecutionResult *ExecutionResult `json:"execution_result,omitempty"`
Expandable *BlockExpandable `json:"_expandable,omitempty"`
Links *Links `json:"_links,omitempty"`
}
type BlockExpandable ¶
type BlockHeader ¶
type BlockHeight ¶
type BlockHeight struct {
}
type BlockPayload ¶
type BlockPayload struct {
CollectionGuarantees []CollectionGuarantee `json:"collection_guarantees"`
BlockSeals []BlockSeal `json:"block_seals"`
}
type BlockSeal ¶
type BlockSeal struct {
BlockId string `json:"block_id"`
ResultId string `json:"result_id"`
FinalState string `json:"final_state"`
AggregatedApprovalSignatures []AggregatedSignature `json:"aggregated_approval_signatures"`
}
type Collection ¶
type Collection struct {
Id string `json:"id"`
Transactions []Transaction `json:"transactions"`
Links *Links `json:"_links,omitempty"`
}
type CollectionGuarantee ¶
type ExecutionResult ¶
type HashingAlgorithm ¶
type HashingAlgorithm string
const ( SHA2_256 HashingAlgorithm = "SHA2_256" SHA2_384 HashingAlgorithm = "SHA2_384" SHA3_256 HashingAlgorithm = "SHA3_256" SHA3_384 HashingAlgorithm = "SHA3_384" KMAC128 HashingAlgorithm = "KMAC128" )
List of HashingAlgorithm
type InlineResponse200 ¶
type InlineResponse200 struct {
Value string `json:"value,omitempty"`
}
type ModelError ¶
type OneOfBlockHeight ¶
type OneOfBlockHeight struct {
}
type ProposalKey ¶
type Route ¶
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
type ScriptsBody ¶
type SigningAlgorithm ¶
type SigningAlgorithm string
const ( BLSBLS12381 SigningAlgorithm = "BLSBLS12381" ECDSAP256 SigningAlgorithm = "ECDSAP256" ECDSA_SECP256K1 SigningAlgorithm = "ECDSASecp256k1" )
List of SigningAlgorithm
type Transaction ¶
type Transaction struct {
Id string `json:"id"`
Script string `json:"script"`
Arguments []string `json:"arguments"`
ReferenceBlockId string `json:"reference_block_id"`
GasLimit int32 `json:"gas_limit"`
Payer string `json:"payer"`
ProposalKey *ProposalKey `json:"proposal_key,omitempty"`
Authorizers []string `json:"authorizers,omitempty"`
PayloadSignatures []TransactionSignature `json:"payload_signatures,omitempty"`
EnvelopeSignatures []TransactionSignature `json:"envelope_signatures,omitempty"`
Result *TransactionResult `json:"result,omitempty"`
Expandable *TransactionExpandable `json:"_expandable,omitempty"`
Links *Links `json:"_links,omitempty"`
}
type TransactionExpandable ¶
type TransactionExpandable struct {
ProposalKey string `json:"proposal_key,omitempty"`
Authorizers string `json:"authorizers,omitempty"`
PayloadSignatures string `json:"payload_signatures,omitempty"`
EnvelopeSignatures string `json:"envelope_signatures,omitempty"`
Result string `json:"result,omitempty"`
}
type TransactionResult ¶
type TransactionResult struct {
BlockId string `json:"block_id"`
Status *TransactionStatus `json:"status"`
ErrorMessage string `json:"error_message"`
ComputationUsed int32 `json:"computation_used"`
Events []Event `json:"events,omitempty"`
Expandable *TransactionResultExpandable `json:"_expandable,omitempty"`
Links *Links `json:"_links,omitempty"`
}
type TransactionResultExpandable ¶
type TransactionResultExpandable struct {
Events string `json:"events,omitempty"`
}
type TransactionSignature ¶
type TransactionStatus ¶
type TransactionStatus string
const ( PENDING TransactionStatus = "Pending" FINALIZED TransactionStatus = "Finalized" EXECUTED TransactionStatus = "Executed" SEALED TransactionStatus = "Sealed" EXPIRED TransactionStatus = "Expired" )
List of TransactionStatus
type TransactionsBody ¶
type TransactionsBody struct {
Script string `json:"script"`
Arguments []string `json:"arguments"`
ReferenceBlockId string `json:"reference_block_id"`
GasLimit int32 `json:"gas_limit"`
Payer string `json:"payer"`
ProposalKey *ProposalKey `json:"proposal_key"`
Authorizers []string `json:"authorizers"`
PayloadSignatures []TransactionSignature `json:"payload_signatures"`
EnvelopeSignatures []TransactionSignature `json:"envelope_signatures"`
}
Source Files
¶
- api_accounts.go
- api_blocks.go
- api_collections.go
- api_execution_results.go
- api_scripts.go
- api_transactions.go
- logger.go
- model_account.go
- model_account__expandable.go
- model_account_public_key.go
- model_aggregated_signature.go
- model_block.go
- model_block__expandable.go
- model_block_header.go
- model_block_height.go
- model_block_payload.go
- model_block_seal.go
- model_collection.go
- model_collection_guarantee.go
- model_error.go
- model_event.go
- model_execution_result.go
- model_hashing_algorithm.go
- model_inline_response_200.go
- model_links.go
- model_one_of_block_height.go
- model_proposal_key.go
- model_scripts_body.go
- model_signing_algorithm.go
- model_transaction.go
- model_transaction__expandable.go
- model_transaction_result.go
- model_transaction_result__expandable.go
- model_transaction_signature.go
- model_transaction_status.go
- model_transactions_body.go
- routers.go