package
4.0.2-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AccountDataToAccount converts basics.AccountData to v2.model.Account.
AccountToAccountData converts v2.model.Account to basics.AccountData.
ApplicationParamsToAppParams converts model.ApplicationParams to basics.AppParams.
AppLocalState converts between basics.AppLocalState and model.ApplicationLocalState.
AppParamsToApplication converts basics.AppParams to model.Application.
AssetHolding converts between basics.AssetHolding and model.AssetHolding.
AssetParamsToAsset converts basics.AssetParams to model.Asset.
ConvertInnerTxn converts an inner SignedTxnWithAD to PreEncodedTxInfo for the REST API.
DeltaLogToLog base64 encode the logs.
DryrunRequestFromGenerated converts model.DryrunRequest to DryrunRequest field by fields and re-types Txns []transactions.SignedTxn.
GetStateProofTransactionForRound searches for a state proof transaction that can be used to prove on the given round (i.e the round is within the attestation period).
MergeAppParams merges values, existing in "base" take priority over new in "update".
NewAppCallLogs generates a new model.AppCallLogs struct.
StateDeltaToStateDelta converts basics.StateDelta to model.StateDelta.

# Constants

DefaultAssetResults sets a default size limit for the number of assets returned in a single request to the /v2/accounts/{address}/assets endpoint.
MaxAssetResults sets a size limit for the number of assets returned in a single request to the /v2/accounts/{address}/assets endpoint.
MaxTealDryrunBytes sets a size limit for dryrun requests With the ability to hold unlimited assets DryrunRequests can become quite large, so we allow up to 1MB.
MaxTealSourceBytes sets a size limit for TEAL source programs for requests Max TEAL program size is currently 8k but we allow for comments, spacing, and repeated consts in the source TEAL.

# Variables

ErrNoStateProofForRound returned when a state proof transaction could not be found.
ErrShutdown represents the error for the string errServiceShuttingDown.
ErrTimeout indicates a task took too long, and the server canceled it.
WaitForBlockTimeout is the timeout for the WaitForBlock endpoint.

# Structs

BlockResponseJSON is used to embed the block in JSON responses.
CompileResponseWithSourceMap overrides the sourcemap field in the CompileResponse for JSON marshalling.
DryrunRequest object uploaded to /v2/teal/dryrun It is the same as model.DryrunRequest but Txns deserialized properly.
Handlers is an implementation to the V2 route handler interface defined by the generated code.
PreEncodedSimulateRequest mirrors model.SimulateRequest.
PreEncodedSimulateRequestTransactionGroup mirrors model.SimulateRequestTransactionGroup.
PreEncodedSimulateResponse mirrors model.SimulateResponse.
PreEncodedSimulateTxnGroupResult mirrors model.SimulateTransactionGroupResult.
PreEncodedSimulateTxnResult mirrors model.SimulateTransactionResult.
PreEncodedTxInfo represents the PendingTransaction response before it is encoded to a format.

# Interfaces

LedgerForAPI describes the Ledger methods used by the v2 API.
NodeInterface represents node fns used by the handlers.