Documentation ¶
Overview ¶
Package generated provides primitives to interact the openapi HTTP API.
Code generated by github.com/algorand/oapi-codegen DO NOT EDIT.
Package generated provides primitives to interact the openapi HTTP API.
Code generated by github.com/algorand/oapi-codegen DO NOT EDIT.
Index ¶
- func GetSwagger() (*openapi3.Swagger, error)
- func RegisterHandlers(router interface{ ... }, si ServerInterface, m ...echo.MiddlewareFunc)
- type Account
- type AccountId
- type AccountInformationParams
- type AccountParticipation
- type AccountResponse
- type AccountStateDelta
- type Address
- type AddressRole
- type AfterTime
- type Application
- type ApplicationLocalState
- type ApplicationParams
- type ApplicationResponse
- type ApplicationStateSchema
- type Asset
- type AssetHolding
- type AssetId
- type AssetParams
- type AssetResponse
- type BeforeTime
- type BlockResponse
- type BuildVersion
- type Catchpoint
- type CatchpointAbortResponse
- type CatchpointStartResponse
- type CompileResponse
- type CurrencyGreaterThan
- type CurrencyLessThan
- type DryrunRequest
- type DryrunResponse
- type DryrunSource
- type DryrunState
- type DryrunTxnResult
- type ErrorResponse
- type EvalDelta
- type EvalDeltaKeyValue
- type ExcludeCloseTo
- type Format
- type GetBlockParams
- type GetPendingTransactionsByAddressParams
- type GetPendingTransactionsParams
- type GetProofParams
- type Limit
- type Max
- type MaxRound
- type MinRound
- type Next
- type NodeStatusResponse
- type NotePrefix
- type ParticipationKey
- type ParticipationKeyResponse
- type ParticipationKeysResponse
- type PendingTransactionInformationParams
- type PendingTransactionResponse
- type PendingTransactionsResponse
- type PostParticipationResponse
- type PostTransactionsResponse
- type ProofResponse
- type Round
- type RoundNumber
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) AccountInformation(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetApplicationByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetAssetByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetBlock(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPendingTransactions(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPendingTransactionsByAddress(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetProof(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSupply(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PendingTransactionInformation(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) RawTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TealCompile(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TealDryrun(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TransactionParams(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) WaitForBlock(ctx echo.Context) error
- type SigType
- type StateDelta
- type SupplyResponse
- type TealDryrunJSONBody
- type TealDryrunJSONRequestBody
- type TealKeyValue
- type TealKeyValueStore
- type TealValue
- type TransactionParametersResponse
- type TxId
- type TxType
- type Version
- type VersionsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
func RegisterHandlers ¶
func RegisterHandlers(router interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }, si ServerInterface, m ...echo.MiddlewareFunc)
RegisterHandlers adds each server route to the EchoRouter.
Types ¶
type Account ¶
type Account struct { // the account public key Address string `json:"address"` // \[algo\] total number of MicroNovas in the account Amount uint64 `json:"amount"` // specifies the amount of MicroNovas in the account, without the pending rewards. AmountWithoutPendingRewards uint64 `json:"amount-without-pending-rewards"` // \[appl\] applications local data stored in this account. // // Note the raw object uses `map[int] -> AppLocalState` for this type. AppsLocalState *[]ApplicationLocalState `json:"apps-local-state,omitempty"` // \[teap\] the sum of all extra application program pages for this account. AppsTotalExtraPages *uint64 `json:"apps-total-extra-pages,omitempty"` // Specifies maximums on the number of each type that may be stored. AppsTotalSchema *ApplicationStateSchema `json:"apps-total-schema,omitempty"` // \[asset\] assets held by this account. // // Note the raw object uses `map[int] -> AssetHolding` for this type. Assets *[]AssetHolding `json:"assets,omitempty"` // \[spend\] the address against which signing should be checked. If empty, the address of the current account is used. This field can be updated in any transaction by setting the RekeyTo field. AuthAddr *string `json:"auth-addr,omitempty"` // \[appp\] parameters of applications created by this account including app global data. // // Note: the raw account uses `map[int] -> AppParams` for this type. CreatedApps *[]Application `json:"created-apps,omitempty"` // \[apar\] parameters of assets created by this account. // // Note: the raw account uses `map[int] -> Asset` for this type. CreatedAssets *[]Asset `json:"created-assets,omitempty"` // MicroNova balance required by the account. // // The requirement grows based on asset and application usage. MinBalance uint64 `json:"min-balance"` // AccountParticipation describes the parameters used by this account in consensus protocol. Participation *AccountParticipation `json:"participation,omitempty"` // amount of MicroNovas of pending rewards in this account. PendingRewards uint64 `json:"pending-rewards"` // \[ebase\] used as part of the rewards computation. Only applicable to accounts which are participating. RewardBase *uint64 `json:"reward-base,omitempty"` // \[ern\] total rewards of MicroNovas the account has received, including pending rewards. Rewards uint64 `json:"rewards"` // The round for which this information is relevant. Round uint64 `json:"round"` // Indicates what type of signature is used by this account, must be one of: // * sig // * msig // * lsig SigType *string `json:"sig-type,omitempty"` // \[onl\] delegation status of the account's MicroNovas // * Offline - indicates that the associated account is delegated. // * Online - indicates that the associated account used as part of the delegation pool. // * NotParticipating - indicates that the associated account is neither a delegator nor a delegate. Status string `json:"status"` }
Account defines model for Account.
type AccountInformationParams ¶
type AccountInformationParams struct { // Configures whether the response object is JSON or MessagePack encoded. Format *string `json:"format,omitempty"` }
AccountInformationParams defines parameters for AccountInformation.
type AccountParticipation ¶
type AccountParticipation struct { // \[sel\] Selection public key (if any) currently registered for this round. SelectionParticipationKey []byte `json:"selection-participation-key"` // \[stprf\] Root of the state proof key (if any) StateProofKey *[]byte `json:"state-proof-key,omitempty"` // \[voteFst\] First round for which this participation is valid. VoteFirstValid uint64 `json:"vote-first-valid"` // \[voteKD\] Number of subkeys in each batch of participation keys. VoteKeyDilution uint64 `json:"vote-key-dilution"` // \[voteLst\] Last round for which this participation is valid. VoteLastValid uint64 `json:"vote-last-valid"` // \[vote\] root participation public key (if any) currently registered for this round. VoteParticipationKey []byte `json:"vote-participation-key"` }
AccountParticipation defines model for AccountParticipation.
type AccountResponse ¶
type AccountResponse Account
AccountResponse defines model for AccountResponse.
type AccountStateDelta ¶
type AccountStateDelta struct { Address string `json:"address"` // Application state delta. Delta StateDelta `json:"delta"` }
AccountStateDelta defines model for AccountStateDelta.
type Application ¶
type Application struct { // \[appidx\] application index. Id uint64 `json:"id"` // Stores the global information associated with an application. Params ApplicationParams `json:"params"` }
Application defines model for Application.
type ApplicationLocalState ¶
type ApplicationLocalState struct { // The application which this local state is for. Id uint64 `json:"id"` // Represents a key-value store for use in an application. KeyValue *TealKeyValueStore `json:"key-value,omitempty"` // Specifies maximums on the number of each type that may be stored. Schema ApplicationStateSchema `json:"schema"` }
ApplicationLocalState defines model for ApplicationLocalState.
type ApplicationParams ¶
type ApplicationParams struct { // \[approv\] approval program. ApprovalProgram []byte `json:"approval-program"` // \[clearp\] approval program. ClearStateProgram []byte `json:"clear-state-program"` // The address that created this application. This is the address where the parameters and global state for this application can be found. Creator string `json:"creator"` // \[epp\] the amount of extra program pages available to this app. ExtraProgramPages *uint64 `json:"extra-program-pages,omitempty"` // Represents a key-value store for use in an application. GlobalState *TealKeyValueStore `json:"global-state,omitempty"` // Specifies maximums on the number of each type that may be stored. GlobalStateSchema *ApplicationStateSchema `json:"global-state-schema,omitempty"` // Specifies maximums on the number of each type that may be stored. LocalStateSchema *ApplicationStateSchema `json:"local-state-schema,omitempty"` }
ApplicationParams defines model for ApplicationParams.
type ApplicationResponse ¶
type ApplicationResponse Application
ApplicationResponse defines model for ApplicationResponse.
type ApplicationStateSchema ¶
type ApplicationStateSchema struct { // \[nbs\] num of byte slices. NumByteSlice uint64 `json:"num-byte-slice"` // \[nui\] num of uints. NumUint uint64 `json:"num-uint"` }
ApplicationStateSchema defines model for ApplicationStateSchema.
type Asset ¶
type Asset struct { // unique asset identifier Index uint64 `json:"index"` // AssetParams specifies the parameters for an asset. // // \[apar\] when part of an AssetConfig transaction. // // Definition: // data/transactions/asset.go : AssetParams Params AssetParams `json:"params"` }
Asset defines model for Asset.
type AssetHolding ¶
type AssetHolding struct { // \[a\] number of units held. Amount uint64 `json:"amount"` // Asset ID of the holding. AssetId uint64 `json:"asset-id"` // Address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case. Creator string `json:"creator"` // \[f\] whether or not the holding is frozen. IsFrozen bool `json:"is-frozen"` }
AssetHolding defines model for AssetHolding.
type AssetParams ¶
type AssetParams struct { // \[c\] Address of account used to clawback holdings of this asset. If empty, clawback is not permitted. Clawback *string `json:"clawback,omitempty"` // The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case. Creator string `json:"creator"` // \[dc\] The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive). Decimals uint64 `json:"decimals"` // \[df\] Whether holdings of this asset are frozen by default. DefaultFrozen *bool `json:"default-frozen,omitempty"` // \[f\] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted. Freeze *string `json:"freeze,omitempty"` // \[m\] Address of account used to manage the keys of this asset and to destroy it. Manager *string `json:"manager,omitempty"` // \[am\] A commitment to some unspecified asset metadata. The format of this metadata is up to the application. MetadataHash *[]byte `json:"metadata-hash,omitempty"` // \[an\] Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters. Name *string `json:"name,omitempty"` // Base64 encoded name of this asset, as supplied by the creator. NameB64 *[]byte `json:"name-b64,omitempty"` // \[r\] Address of account holding reserve (non-minted) units of this asset. Reserve *string `json:"reserve,omitempty"` // \[t\] The total number of units of this asset. Total uint64 `json:"total"` // \[un\] Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters. UnitName *string `json:"unit-name,omitempty"` // Base64 encoded name of a unit of this asset, as supplied by the creator. UnitNameB64 *[]byte `json:"unit-name-b64,omitempty"` // \[au\] URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters. Url *string `json:"url,omitempty"` // Base64 encoded URL where more information about the asset can be retrieved. UrlB64 *[]byte `json:"url-b64,omitempty"` }
AssetParams defines model for AssetParams.
type BlockResponse ¶
type BlockResponse struct { // Block header data. Block map[string]interface{} `json:"block"` // Optional certificate object. This is only included when the format is set to message pack. Cert *map[string]interface{} `json:"cert,omitempty"` }
BlockResponse defines model for BlockResponse.
type BuildVersion ¶
type BuildVersion struct { Branch string `json:"branch"` BuildNumber uint64 `json:"build_number"` Channel string `json:"channel"` CommitHash string `json:"commit_hash"` Major uint64 `json:"major"` Minor uint64 `json:"minor"` }
BuildVersion defines model for BuildVersion.
type CatchpointAbortResponse ¶
type CatchpointAbortResponse struct { // Catchup abort response string CatchupMessage string `json:"catchup-message"` }
CatchpointAbortResponse defines model for CatchpointAbortResponse.
type CatchpointStartResponse ¶
type CatchpointStartResponse struct { // Catchup start response string CatchupMessage string `json:"catchup-message"` }
CatchpointStartResponse defines model for CatchpointStartResponse.
type CompileResponse ¶
type CompileResponse struct { // base32 SHA512_256 of program bytes (Address style) Hash string `json:"hash"` // base64 encoded program bytes Result string `json:"result"` }
CompileResponse defines model for CompileResponse.
type CurrencyGreaterThan ¶
type CurrencyGreaterThan uint64
CurrencyGreaterThan defines model for currency-greater-than.
type CurrencyLessThan ¶
type CurrencyLessThan uint64
CurrencyLessThan defines model for currency-less-than.
type DryrunRequest ¶
type DryrunRequest struct { Accounts []Account `json:"accounts"` Apps []Application `json:"apps"` // LatestTimestamp is available to some TEAL scripts. Defaults to the latest confirmed timestamp this algod is attached to. LatestTimestamp uint64 `json:"latest-timestamp"` // ProtocolVersion specifies a specific version string to operate under, otherwise whatever the current protocol of the network this algod is running in. ProtocolVersion string `json:"protocol-version"` // Round is available to some TEAL scripts. Defaults to the current round on the network this algod is attached to. Round uint64 `json:"round"` Sources []DryrunSource `json:"sources"` Txns []json.RawMessage `json:"txns"` }
DryrunRequest defines model for DryrunRequest.
type DryrunResponse ¶
type DryrunResponse struct { Error string `json:"error"` // Protocol version is the protocol version Dryrun was operated under. ProtocolVersion string `json:"protocol-version"` Txns []DryrunTxnResult `json:"txns"` }
DryrunResponse defines model for DryrunResponse.
type DryrunSource ¶
type DryrunSource struct { AppIndex uint64 `json:"app-index"` // FieldName is what kind of sources this is. If lsig then it goes into the transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the Approval Program or Clear State Program of application[this.AppIndex]. FieldName string `json:"field-name"` Source string `json:"source"` TxnIndex uint64 `json:"txn-index"` }
DryrunSource defines model for DryrunSource.
type DryrunState ¶
type DryrunState struct { // Evaluation error if any Error *string `json:"error,omitempty"` // Line number Line uint64 `json:"line"` // Program counter Pc uint64 `json:"pc"` Scratch *[]TealValue `json:"scratch,omitempty"` Stack []TealValue `json:"stack"` }
DryrunState defines model for DryrunState.
type DryrunTxnResult ¶
type DryrunTxnResult struct { AppCallMessages *[]string `json:"app-call-messages,omitempty"` AppCallTrace *[]DryrunState `json:"app-call-trace,omitempty"` // Execution cost of app call transaction Cost *uint64 `json:"cost,omitempty"` // Disassembled program line by line. Disassembly []string `json:"disassembly"` // Application state delta. GlobalDelta *StateDelta `json:"global-delta,omitempty"` LocalDeltas *[]AccountStateDelta `json:"local-deltas,omitempty"` // Disassembled lsig program line by line. LogicSigDisassembly *[]string `json:"logic-sig-disassembly,omitempty"` LogicSigMessages *[]string `json:"logic-sig-messages,omitempty"` LogicSigTrace *[]DryrunState `json:"logic-sig-trace,omitempty"` Logs *[][]byte `json:"logs,omitempty"` }
DryrunTxnResult defines model for DryrunTxnResult.
type ErrorResponse ¶
ErrorResponse defines model for ErrorResponse.
type EvalDelta ¶
type EvalDelta struct { // \[at\] delta action. Action uint64 `json:"action"` // \[bs\] bytes value. Bytes *string `json:"bytes,omitempty"` // \[ui\] uint value. Uint *uint64 `json:"uint,omitempty"` }
EvalDelta defines model for EvalDelta.
type EvalDeltaKeyValue ¶
type EvalDeltaKeyValue struct { Key string `json:"key"` // Represents a TEAL value delta. Value EvalDelta `json:"value"` }
EvalDeltaKeyValue defines model for EvalDeltaKeyValue.
type GetBlockParams ¶
type GetBlockParams struct { // Configures whether the response object is JSON or MessagePack encoded. Format *string `json:"format,omitempty"` }
GetBlockParams defines parameters for GetBlock.
type GetPendingTransactionsByAddressParams ¶
type GetPendingTransactionsByAddressParams struct { // Truncated number of transactions to display. If max=0, returns all pending txns. Max *uint64 `json:"max,omitempty"` // Configures whether the response object is JSON or MessagePack encoded. Format *string `json:"format,omitempty"` }
GetPendingTransactionsByAddressParams defines parameters for GetPendingTransactionsByAddress.
type GetPendingTransactionsParams ¶
type GetPendingTransactionsParams struct { // Truncated number of transactions to display. If max=0, returns all pending txns. Max *uint64 `json:"max,omitempty"` // Configures whether the response object is JSON or MessagePack encoded. Format *string `json:"format,omitempty"` }
GetPendingTransactionsParams defines parameters for GetPendingTransactions.
type GetProofParams ¶
type GetProofParams struct { // Configures whether the response object is JSON or MessagePack encoded. Format *string `json:"format,omitempty"` }
GetProofParams defines parameters for GetProof.
type NodeStatusResponse ¶
type NodeStatusResponse struct { // The current catchpoint that is being caught up to Catchpoint *string `json:"catchpoint,omitempty"` // The number of blocks that have already been obtained by the node as part of the catchup CatchpointAcquiredBlocks *uint64 `json:"catchpoint-acquired-blocks,omitempty"` // The number of accounts from the current catchpoint that have been processed so far as part of the catchup CatchpointProcessedAccounts *uint64 `json:"catchpoint-processed-accounts,omitempty"` // The total number of accounts included in the current catchpoint CatchpointTotalAccounts *uint64 `json:"catchpoint-total-accounts,omitempty"` // The total number of blocks that are required to complete the current catchpoint catchup CatchpointTotalBlocks *uint64 `json:"catchpoint-total-blocks,omitempty"` // The number of accounts from the current catchpoint that have been verified so far as part of the catchup CatchpointVerifiedAccounts *uint64 `json:"catchpoint-verified-accounts,omitempty"` // CatchupTime in nanoseconds CatchupTime uint64 `json:"catchup-time"` // The last catchpoint seen by the node LastCatchpoint *string `json:"last-catchpoint,omitempty"` // LastRound indicates the last round seen LastRound uint64 `json:"last-round"` // LastVersion indicates the last consensus version supported LastVersion string `json:"last-version"` // NextVersion of consensus protocol to use NextVersion string `json:"next-version"` // NextVersionRound is the round at which the next consensus version will apply NextVersionRound uint64 `json:"next-version-round"` // NextVersionSupported indicates whether the next consensus version is supported by this node NextVersionSupported bool `json:"next-version-supported"` // StoppedAtUnsupportedRound indicates that the node does not support the new rounds and has stopped making progress StoppedAtUnsupportedRound bool `json:"stopped-at-unsupported-round"` // TimeSinceLastRound in nanoseconds TimeSinceLastRound uint64 `json:"time-since-last-round"` }
NodeStatusResponse defines model for NodeStatusResponse.
type ParticipationKey ¶
type ParticipationKey struct { // Address the key was generated for. Address string `json:"address"` // When registered, this is the first round it may be used. EffectiveFirstValid *uint64 `json:"effective-first-valid,omitempty"` // When registered, this is the last round it may be used. EffectiveLastValid *uint64 `json:"effective-last-valid,omitempty"` // The key's ParticipationID. Id string `json:"id"` // AccountParticipation describes the parameters used by this account in consensus protocol. Key AccountParticipation `json:"key"` // Round when this key was last used to propose a block. LastBlockProposal *uint64 `json:"last-block-proposal,omitempty"` // Round when this key was last used to generate a state proof. LastStateProof *uint64 `json:"last-state-proof,omitempty"` // Round when this key was last used to vote. LastVote *uint64 `json:"last-vote,omitempty"` }
ParticipationKey defines model for ParticipationKey.
type ParticipationKeyResponse ¶
type ParticipationKeyResponse ParticipationKey
ParticipationKeyResponse defines model for ParticipationKeyResponse.
type ParticipationKeysResponse ¶
type ParticipationKeysResponse []ParticipationKey
ParticipationKeysResponse defines model for ParticipationKeysResponse.
type PendingTransactionInformationParams ¶
type PendingTransactionInformationParams struct { // Configures whether the response object is JSON or MessagePack encoded. Format *string `json:"format,omitempty"` }
PendingTransactionInformationParams defines parameters for PendingTransactionInformation.
type PendingTransactionResponse ¶
type PendingTransactionResponse struct { // The application index if the transaction was found and it created an application. ApplicationIndex *uint64 `json:"application-index,omitempty"` // The number of the asset's unit that were transferred to the close-to address. AssetClosingAmount *uint64 `json:"asset-closing-amount,omitempty"` // The asset index if the transaction was found and it created an asset. AssetIndex *uint64 `json:"asset-index,omitempty"` // Rewards in micronovas applied to the close remainder to account. CloseRewards *uint64 `json:"close-rewards,omitempty"` // Closing amount for the transaction. ClosingAmount *uint64 `json:"closing-amount,omitempty"` // The round where this transaction was confirmed, if present. ConfirmedRound *uint64 `json:"confirmed-round,omitempty"` // Application state delta. GlobalStateDelta *StateDelta `json:"global-state-delta,omitempty"` // Inner transactions produced by application execution. InnerTxns *[]PendingTransactionResponse `json:"inner-txns,omitempty"` // \[ld\] Local state key/value changes for the application being executed by this transaction. LocalStateDelta *[]AccountStateDelta `json:"local-state-delta,omitempty"` // \[lg\] Logs for the application being executed by this transaction. Logs *[][]byte `json:"logs,omitempty"` // Indicates that the transaction was kicked out of this node's transaction pool (and specifies why that happened). An empty string indicates the transaction wasn't kicked out of this node's txpool due to an error. PoolError string `json:"pool-error"` // Rewards in micronovas applied to the receiver account. ReceiverRewards *uint64 `json:"receiver-rewards,omitempty"` // Rewards in micronovas applied to the sender account. SenderRewards *uint64 `json:"sender-rewards,omitempty"` // The raw signed transaction. Txn map[string]interface{} `json:"txn"` }
PendingTransactionResponse defines model for PendingTransactionResponse.
type PendingTransactionsResponse ¶
type PendingTransactionsResponse struct { // An array of signed transaction objects. TopTransactions []map[string]interface{} `json:"top-transactions"` // Total number of transactions in the pool. TotalTransactions uint64 `json:"total-transactions"` }
PendingTransactionsResponse defines model for PendingTransactionsResponse.
type PostParticipationResponse ¶
type PostParticipationResponse struct { // encoding of the participation ID. PartId string `json:"partId"` }
PostParticipationResponse defines model for PostParticipationResponse.
type PostTransactionsResponse ¶
type PostTransactionsResponse struct { // encoding of the transaction hash. TxId string `json:"txId"` }
PostTransactionsResponse defines model for PostTransactionsResponse.
type ProofResponse ¶
type ProofResponse struct { // The type of hash function used to create the proof, must be one of: // * sumhash // * sha512_256 Hashtype string `json:"hashtype"` // Index of the transaction in the block's payset. Idx uint64 `json:"idx"` // Merkle proof of transaction membership. Proof []byte `json:"proof"` // Hash of SignedTxnInBlock for verifying proof. Stibhash []byte `json:"stibhash"` // Represents the depth of the tree that is being proven, i.e. the number of edges from a leaf to the root. Treedepth uint64 `json:"treedepth"` }
ProofResponse defines model for ProofResponse.
type ServerInterface ¶
type ServerInterface interface { // Get account information. // (GET /v2/accounts/{address}) AccountInformation(ctx echo.Context, address string, params AccountInformationParams) error // Get a list of unconfirmed transactions currently in the transaction pool by address. // (GET /v2/accounts/{address}/transactions/pending) GetPendingTransactionsByAddress(ctx echo.Context, address string, params GetPendingTransactionsByAddressParams) error // Get application information. // (GET /v2/applications/{application-id}) GetApplicationByID(ctx echo.Context, applicationId uint64) error // Get asset information. // (GET /v2/assets/{asset-id}) GetAssetByID(ctx echo.Context, assetId uint64) error // Get the block for the given round. // (GET /v2/blocks/{round}) GetBlock(ctx echo.Context, round uint64, params GetBlockParams) error // Get a Merkle proof for a transaction in a block. // (GET /v2/blocks/{round}/transactions/{txid}/proof) GetProof(ctx echo.Context, round uint64, txid string, params GetProofParams) error // Get the current supply reported by the ledger. // (GET /v2/ledger/supply) GetSupply(ctx echo.Context) error // Gets the current node status. // (GET /v2/status) GetStatus(ctx echo.Context) error // Gets the node status after waiting for the given round. // (GET /v2/status/wait-for-block-after/{round}) WaitForBlock(ctx echo.Context, round uint64) error // Compile TEAL source code to binary, produce its hash // (POST /v2/teal/compile) TealCompile(ctx echo.Context) error // Provide debugging information for a transaction (or group). // (POST /v2/teal/dryrun) TealDryrun(ctx echo.Context) error // Broadcasts a raw transaction to the network. // (POST /v2/transactions) RawTransaction(ctx echo.Context) error // Get parameters for constructing a new transaction // (GET /v2/transactions/params) TransactionParams(ctx echo.Context) error // Get a list of unconfirmed transactions currently in the transaction pool. // (GET /v2/transactions/pending) GetPendingTransactions(ctx echo.Context, params GetPendingTransactionsParams) error // Get a specific pending transaction. // (GET /v2/transactions/pending/{txid}) PendingTransactionInformation(ctx echo.Context, txid string, params PendingTransactionInformationParams) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) AccountInformation ¶
func (w *ServerInterfaceWrapper) AccountInformation(ctx echo.Context) error
AccountInformation converts echo context to params.
func (*ServerInterfaceWrapper) GetApplicationByID ¶
func (w *ServerInterfaceWrapper) GetApplicationByID(ctx echo.Context) error
GetApplicationByID converts echo context to params.
func (*ServerInterfaceWrapper) GetAssetByID ¶
func (w *ServerInterfaceWrapper) GetAssetByID(ctx echo.Context) error
GetAssetByID converts echo context to params.
func (*ServerInterfaceWrapper) GetBlock ¶
func (w *ServerInterfaceWrapper) GetBlock(ctx echo.Context) error
GetBlock converts echo context to params.
func (*ServerInterfaceWrapper) GetPendingTransactions ¶
func (w *ServerInterfaceWrapper) GetPendingTransactions(ctx echo.Context) error
GetPendingTransactions converts echo context to params.
func (*ServerInterfaceWrapper) GetPendingTransactionsByAddress ¶
func (w *ServerInterfaceWrapper) GetPendingTransactionsByAddress(ctx echo.Context) error
GetPendingTransactionsByAddress converts echo context to params.
func (*ServerInterfaceWrapper) GetProof ¶
func (w *ServerInterfaceWrapper) GetProof(ctx echo.Context) error
GetProof converts echo context to params.
func (*ServerInterfaceWrapper) GetStatus ¶
func (w *ServerInterfaceWrapper) GetStatus(ctx echo.Context) error
GetStatus converts echo context to params.
func (*ServerInterfaceWrapper) GetSupply ¶
func (w *ServerInterfaceWrapper) GetSupply(ctx echo.Context) error
GetSupply converts echo context to params.
func (*ServerInterfaceWrapper) PendingTransactionInformation ¶
func (w *ServerInterfaceWrapper) PendingTransactionInformation(ctx echo.Context) error
PendingTransactionInformation converts echo context to params.
func (*ServerInterfaceWrapper) RawTransaction ¶
func (w *ServerInterfaceWrapper) RawTransaction(ctx echo.Context) error
RawTransaction converts echo context to params.
func (*ServerInterfaceWrapper) TealCompile ¶
func (w *ServerInterfaceWrapper) TealCompile(ctx echo.Context) error
TealCompile converts echo context to params.
func (*ServerInterfaceWrapper) TealDryrun ¶
func (w *ServerInterfaceWrapper) TealDryrun(ctx echo.Context) error
TealDryrun converts echo context to params.
func (*ServerInterfaceWrapper) TransactionParams ¶
func (w *ServerInterfaceWrapper) TransactionParams(ctx echo.Context) error
TransactionParams converts echo context to params.
func (*ServerInterfaceWrapper) WaitForBlock ¶
func (w *ServerInterfaceWrapper) WaitForBlock(ctx echo.Context) error
WaitForBlock converts echo context to params.
type SupplyResponse ¶
type SupplyResponse struct { // Round CurrentRound uint64 `json:"current_round"` // OnlineMoney OnlineMoney uint64 `json:"online-money"` // TotalMoney TotalMoney uint64 `json:"total-money"` }
SupplyResponse defines model for SupplyResponse.
type TealDryrunJSONBody ¶
type TealDryrunJSONBody DryrunRequest
TealDryrunJSONBody defines parameters for TealDryrun.
type TealDryrunJSONRequestBody ¶
type TealDryrunJSONRequestBody TealDryrunJSONBody
TealDryrunRequestBody defines body for TealDryrun for application/json ContentType.
type TealKeyValue ¶
type TealKeyValue struct { Key string `json:"key"` // Represents a TEAL value. Value TealValue `json:"value"` }
TealKeyValue defines model for TealKeyValue.
type TealKeyValueStore ¶
type TealKeyValueStore []TealKeyValue
TealKeyValueStore defines model for TealKeyValueStore.
type TealValue ¶
type TealValue struct { // \[tb\] bytes value. Bytes string `json:"bytes"` // \[tt\] value type. Value `1` refers to **bytes**, value `2` refers to **uint** Type uint64 `json:"type"` // \[ui\] uint value. Uint uint64 `json:"uint"` }
TealValue defines model for TealValue.
type TransactionParametersResponse ¶
type TransactionParametersResponse struct { // ConsensusVersion indicates the consensus protocol version // as of LastRound. ConsensusVersion string `json:"consensus-version"` // Fee is the suggested transaction fee // Fee is in units of micro-Algos per byte. // Fee may fall to zero but transactions must still have a fee of // at least MinTxnFee for the current network protocol. Fee uint64 `json:"fee"` // GenesisHash is the hash of the genesis block. GenesisHash []byte `json:"genesis-hash"` // GenesisID is an ID listed in the genesis block. GenesisId string `json:"genesis-id"` // LastRound indicates the last round seen LastRound uint64 `json:"last-round"` // The minimum transaction fee (not per byte) required for the // txn to validate for the current network protocol. MinFee uint64 `json:"min-fee"` }
TransactionParametersResponse defines model for TransactionParametersResponse.
type Version ¶
type Version struct { Build BuildVersion `json:"build"` GenesisHashB64 []byte `json:"genesis_hash_b64"` GenesisId string `json:"genesis_id"` Versions []string `json:"versions"` }
Version defines model for Version.
type VersionsResponse ¶
type VersionsResponse Version
VersionsResponse defines model for VersionsResponse.