Versions in this module Expand all Collapse all v0 v0.3.6 Apr 4, 2023 v0.3.5 Mar 27, 2023 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + AccountsApi *AccountsApiService + BlocksApi *BlocksApiService + CollectionsApi *CollectionsApiService + EventsApi *EventsApiService + ExecutionResultsApi *ExecutionResultsApiService + NetworkApi *NetworkApiService + ScriptsApi *ScriptsApiService + TransactionsApi *TransactionsApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type Account struct + Address string + Balance string + Contracts map[string]string + Expandable *AccountExpandable + Keys []AccountPublicKey + Links *Links + type AccountExpandable struct + Contracts string + Keys string + type AccountPublicKey struct + HashingAlgorithm *HashingAlgorithm + Index string + PublicKey string + Revoked bool + SequenceNumber string + SigningAlgorithm *SigningAlgorithm + Weight string + type AccountsApiAccountsAddressGetOpts struct + BlockHeight optional.Interface + Expand optional.Interface + Select_ optional.Interface + type AccountsApiService service + func (a *AccountsApiService) AccountsAddressGet(ctx context.Context, address string, ...) (Account, *http.Response, error) + type AggregatedSignature struct + SignerIds []string + VerifierSignatures []string + type BasicAuth struct + Password string + UserName string + type Block struct + ExecutionResult *ExecutionResult + Expandable *BlockExpandable + Header *BlockHeader + Links *Links + Payload *BlockPayload + type BlockEvents struct + BlockHeight string + BlockId string + BlockTimestamp time.Time + Events []Event + Links *Links + type BlockExpandable struct + ExecutionResult string + Payload string + type BlockHeader struct + Height string + Id string + ParentId string + ParentVoterSignature string + Timestamp time.Time + type BlockHeight struct + type BlockPayload struct + BlockSeals []BlockSeal + CollectionGuarantees []CollectionGuarantee + type BlockSeal struct + AggregatedApprovalSignatures []AggregatedSignature + BlockId string + FinalState string + ResultId string + type BlocksApiBlocksGetOpts struct + EndHeight optional.Interface + Expand optional.Interface + Height optional.Interface + Select_ optional.Interface + StartHeight optional.Interface + type BlocksApiBlocksIdGetOpts struct + Expand optional.Interface + Select_ optional.Interface + type BlocksApiService service + func (a *BlocksApiService) BlocksGet(ctx context.Context, localVarOptionals *BlocksApiBlocksGetOpts) ([]Block, *http.Response, error) + func (a *BlocksApiService) BlocksIdGet(ctx context.Context, id []string, localVarOptionals *BlocksApiBlocksIdGetOpts) ([]Block, *http.Response, error) + type Chunk struct + BlockId string + CollectionIndex string + EndState string + EventCollection string + Index string + NumberOfTransactions string + StartState string + TotalComputationUsed string + type Collection struct + Expandable *CollectionExpandable + Id string + Links *Links + Transactions []Transaction + type CollectionExpandable struct + Transactions []string + type CollectionGuarantee struct + CollectionId string + Signature string + SignerIds []string + type CollectionsApiCollectionsIdGetOpts struct + Expand optional.Interface + Select_ optional.Interface + type CollectionsApiService service + func (a *CollectionsApiService) CollectionsIdGet(ctx context.Context, id string, ...) (Collection, *http.Response, error) + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type Event struct + EventIndex string + Payload string + TransactionId string + TransactionIndex string + Type_ string + type EventsApiEventsGetOpts struct + BlockIds optional.Interface + EndHeight optional.Interface + Select_ optional.Interface + StartHeight optional.Interface + type EventsApiService service + func (a *EventsApiService) EventsGet(ctx context.Context, type_ string, localVarOptionals *EventsApiEventsGetOpts) (BlockEvents, *http.Response, error) + type ExecutionResult struct + BlockId string + Chunks []Chunk + Events []Event + Id string + Links *Links + PreviousResultId string + type ExecutionResultsApiExecutionResultsGetOpts struct + Select_ optional.Interface + type ExecutionResultsApiExecutionResultsIdGetOpts struct + Select_ optional.Interface + type ExecutionResultsApiService service + func (a *ExecutionResultsApiService) ExecutionResultsGet(ctx context.Context, blockId []string, ...) ([]ExecutionResult, *http.Response, error) + func (a *ExecutionResultsApiService) ExecutionResultsIdGet(ctx context.Context, id string, ...) (ExecutionResult, *http.Response, error) + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type HashingAlgorithm string + const KMAC128_HashingAlgorithm + const SHA2_256_HashingAlgorithm + const SHA2_384_HashingAlgorithm + const SHA3_256_HashingAlgorithm + const SHA3_384_HashingAlgorithm + type InlineResponse200 struct + Value string + type Links struct + Self string + type ModelError struct + Code int32 + Message string + type NetworkApiService service + func (a *NetworkApiService) NetworkParametersGet(ctx context.Context) (NetworkParameters, *http.Response, error) + type NetworkParameters struct + ChainId string + type OneOfBlockHeight struct + type ProposalKey struct + Address string + KeyIndex string + SequenceNumber string + type ScriptsApiScriptsPostOpts struct + BlockHeight optional.Interface + BlockId optional.Interface + type ScriptsApiService service + func (a *ScriptsApiService) ScriptsPost(ctx context.Context, body ScriptsBody, ...) (InlineResponse200, *http.Response, error) + type ScriptsBody struct + Arguments []string + Script string + type SigningAlgorithm string + const BLSBLS12381_SigningAlgorithm + const ECDSAP256_SigningAlgorithm + const ECDSA_SECP256K1_SigningAlgorithm + type Transaction struct + Arguments []string + Authorizers []string + EnvelopeSignatures []TransactionSignature + Expandable *TransactionExpandable + GasLimit string + Id string + Links *Links + Payer string + PayloadSignatures []TransactionSignature + ProposalKey *ProposalKey + ReferenceBlockId string + Result *TransactionResult + Script string + type TransactionExecution string + const FAILURE_TransactionExecution + const PENDING_TransactionExecution + const SUCCESS_TransactionExecution + type TransactionExpandable struct + Result string + type TransactionResult struct + BlockId string + ComputationUsed string + ErrorMessage string + Events []Event + Execution *TransactionExecution + Links *Links + Status *TransactionStatus + StatusCode int32 + type TransactionSignature struct + Address string + KeyIndex string + Signature string + type TransactionStatus string + const EXECUTED_TransactionStatus + const EXPIRED_TransactionStatus + const FINALIZED_TransactionStatus + const PENDING_TransactionStatus + const SEALED_TransactionStatus + type TransactionsApiService service + func (a *TransactionsApiService) TransactionResultsTransactionIdGet(ctx context.Context, transactionId string, ...) (TransactionResult, *http.Response, error) + func (a *TransactionsApiService) TransactionsIdGet(ctx context.Context, id string, ...) (Transaction, *http.Response, error) + func (a *TransactionsApiService) TransactionsPost(ctx context.Context, body TransactionsBody) (Transaction, *http.Response, error) + type TransactionsApiTransactionResultsTransactionIdGetOpts struct + Expand optional.Interface + Select_ optional.Interface + type TransactionsApiTransactionsIdGetOpts struct + Expand optional.Interface + Select_ optional.Interface + type TransactionsBody struct + Arguments []string + Authorizers []string + EnvelopeSignatures []TransactionSignature + GasLimit string + Payer string + PayloadSignatures []TransactionSignature + ProposalKey *ProposalKey + ReferenceBlockId string + Script string