Skip to content

NonparticipatingService

Constructors

new NonparticipatingService()

new NonparticipatingService(httpRequest): NonparticipatingService

Parameters

httpRequest: BaseHttpRequest

Returns

NonparticipatingService

Defined in

services.gen.ts:1376

Properties

httpRequest

readonly httpRequest: BaseHttpRequest

Defined in

services.gen.ts:1376

Methods

abortCatchup()

abortCatchup(data): CancelablePromise<AbortCatchupResponse>

Aborts a catchpoint catchup. Given a catchpoint, it aborts catching up to this catchpoint

Parameters

data: AbortCatchupData

The data for the request.

Returns

CancelablePromise<AbortCatchupResponse>

unknown

Throws

ApiError

Defined in

services.gen.ts:1742


accountApplicationInformation()

accountApplicationInformation(data): CancelablePromise<AccountApplicationInformationResponse>

Get account information about a given app. Given a specific account public key and application ID, this call returns the account’s application local state and global state (AppLocalState and AppParams, if either exists). Global state will only be returned if the provided address is the application’s creator.

Parameters

data: AccountApplicationInformationData

The data for the request.

Returns

CancelablePromise<AccountApplicationInformationResponse>

unknown AccountApplicationResponse describes the account’s application local state and global state (AppLocalState and AppParams, if either exists) for a specific application ID. Global state will only be returned if the provided address is the application’s creator.

Throws

ApiError

Defined in

services.gen.ts:1418


accountAssetInformation()

accountAssetInformation(data): CancelablePromise<AccountAssetInformationResponse>

Get account information about a given asset. Given a specific account public key and asset ID, this call returns the account’s asset holding and asset parameters (if either exist). Asset parameters will only be returned if the provided address is the asset’s creator.

Parameters

data: AccountAssetInformationData

The data for the request.

Returns

CancelablePromise<AccountAssetInformationResponse>

unknown AccountAssetResponse describes the account’s asset holding and asset parameters (if either exist) for a specific asset ID. Asset parameters will only be returned if the provided address is the asset’s creator.

Throws

ApiError

Defined in

services.gen.ts:1448


accountInformation()

accountInformation(data): CancelablePromise<Account>

Get account information. Given a specific account public key, this call returns the accounts status, balance and spendable amounts

Parameters

data: AccountInformationData

The data for the request.

Returns

CancelablePromise<Account>

Account AccountResponse wraps the Account type in a response.

Throws

ApiError

Defined in

services.gen.ts:1388


getApplicationBoxByName()

getApplicationBoxByName(data): CancelablePromise<Box>

Get box information for a given application. Given an application ID and box name, it returns the round, box name, and value (each base64 encoded). Box names must be in the goal app call arg encoding form ‘encoding:value ’. For ints, use the form ‘int:1234’. For raw bytes, use the form ‘b64:A ==‘. For printable strings, use the form ‘str:hello ’. For addresses, use the form ‘addr:XYZ …‘.

Parameters

data: GetApplicationBoxByNameData

The data for the request.

Returns

CancelablePromise<Box>

Box Box information

Throws

ApiError

Defined in

services.gen.ts:1502


getApplicationBoxes()

getApplicationBoxes(data): CancelablePromise<GetApplicationBoxesResponse>

Get all box names for a given application. Given an application ID, return all Box names. No particular ordering is guaranteed. Request fails when client or server-side configured limits prevent returning all Box names.

Parameters

data: GetApplicationBoxesData

The data for the request.

Returns

CancelablePromise<GetApplicationBoxesResponse>

unknown Box names of an application

Throws

ApiError

Defined in

services.gen.ts:1531


getApplicationById()

getApplicationById(data): CancelablePromise<Application>

Get application information. Given a application ID, it returns application information including creator, approval and clear programs, global and local schemas, and global state.

Parameters

data: GetApplicationByIdData

The data for the request.

Returns

CancelablePromise<Application>

Application Application information

Throws

ApiError

Defined in

services.gen.ts:1476


getAssetById()

getAssetById(data): CancelablePromise<Asset>

Get asset information. Given a asset ID, it returns asset information including creator, name, total supply and special addresses.

Parameters

data: GetAssetByIdData

The data for the request.

Returns

CancelablePromise<Asset>

Asset Asset information

Throws

ApiError

Defined in

services.gen.ts:1558


getBlock()

getBlock(data): CancelablePromise<GetBlockResponse>

Get the block for the given round.

Parameters

data: GetBlockData

The data for the request.

Returns

CancelablePromise<GetBlockResponse>

unknown Encoded block object.

Throws

ApiError

Defined in

services.gen.ts:1583


getBlockHash()

getBlockHash(data): CancelablePromise<GetBlockHashResponse>

Get the block hash for the block on the given round.

Parameters

data: GetBlockHashData

The data for the request.

Returns

CancelablePromise<GetBlockHashResponse>

unknown Hash of a block header.

Throws

ApiError

Defined in

services.gen.ts:1610


getBlockLogs()

getBlockLogs(data): CancelablePromise<GetBlockLogsResponse>

Get all of the logs from outer and inner app calls in the given round Get all of the logs from outer and inner app calls in the given round

Parameters

data: GetBlockLogsData

The data for the request.

Returns

CancelablePromise<GetBlockLogsResponse>

unknown All logs emitted in the given round. Each app call, whether top-level or inner, that contains logs results in a separate AppCallLogs object. Therefore there may be multiple AppCallLogs with the same application ID and outer transaction ID in the event of multiple inner app calls to the same app. App calls with no logs are not included in the response. AppCallLogs are returned in the same order that their corresponding app call appeared in the block (pre-order traversal of inner app calls)

Throws

ApiError

Defined in

services.gen.ts:1660


getBlockTimeStampOffset()

getBlockTimeStampOffset(): CancelablePromise<GetBlockTimeStampOffsetResponse>

Returns the timestamp offset. Timestamp offsets can only be set in dev mode. Gets the current timestamp offset.

Returns

CancelablePromise<GetBlockTimeStampOffsetResponse>

unknown Response containing the timestamp offset in seconds

Throws

ApiError

Defined in

services.gen.ts:1884


getBlockTxids()

getBlockTxids(data): CancelablePromise<GetBlockTxidsResponse>

Get the top level transaction IDs for the block on the given round.

Parameters

data: GetBlockTxidsData

The data for the request.

Returns

CancelablePromise<GetBlockTxidsResponse>

unknown Top level transaction IDs in a block.

Throws

ApiError

Defined in

services.gen.ts:1717


getLedgerStateDelta()

getLedgerStateDelta(data): CancelablePromise<LedgerStateDelta>

Get a LedgerStateDelta object for a given round Get ledger deltas for a round.

Parameters

data: GetLedgerStateDeltaData

The data for the request.

Returns

CancelablePromise<LedgerStateDelta>

LedgerStateDelta Contains ledger deltas

Throws

ApiError

Defined in

services.gen.ts:1827


getLedgerStateDeltaForTransactionGroup()

getLedgerStateDeltaForTransactionGroup(data): CancelablePromise<LedgerStateDelta>

Get a LedgerStateDelta object for a given transaction group Get a ledger delta for a given transaction group.

Parameters

data: GetLedgerStateDeltaForTransactionGroupData

The data for the request.

Returns

CancelablePromise<LedgerStateDelta>

LedgerStateDelta Response containing a ledger state delta for a single transaction group.

Throws

ApiError

Defined in

services.gen.ts:1797


getLightBlockHeaderProof()

getLightBlockHeaderProof(data): CancelablePromise<LightBlockHeaderProof>

Gets a proof for a given light block header inside a state proof commitment

Parameters

data: GetLightBlockHeaderProofData

The data for the request.

Returns

CancelablePromise<LightBlockHeaderProof>

LightBlockHeaderProof Proof of a light block header.

Throws

ApiError

Defined in

services.gen.ts:1634


getStateProof()

getStateProof(data): CancelablePromise<StateProof>

Get a state proof that covers a given round

Parameters

data: GetStateProofData

The data for the request.

Returns

CancelablePromise<StateProof>

StateProof StateProofResponse wraps the StateProof type in a response.

Throws

ApiError

Defined in

services.gen.ts:1959


getStatus()

getStatus(): CancelablePromise<GetStatusResponse>

Gets the current node status.

Returns

CancelablePromise<GetStatusResponse>

unknown

Throws

ApiError

Defined in

services.gen.ts:1982


getSupply()

getSupply(): CancelablePromise<GetSupplyResponse>

Get the current supply reported by the ledger.

Returns

CancelablePromise<GetSupplyResponse>

unknown Supply represents the current supply of MicroAlgos in the system.

Throws

ApiError

Defined in

services.gen.ts:1924


getTransactionGroupLedgerStateDeltasForRound()

getTransactionGroupLedgerStateDeltasForRound(data): CancelablePromise<GetTransactionGroupLedgerStateDeltasForRoundResponse>

Get LedgerStateDelta objects for all transaction groups in a given round Get ledger deltas for transaction groups in a given round.

Parameters

data: GetTransactionGroupLedgerStateDeltasForRoundData

The data for the request.

Returns

CancelablePromise<GetTransactionGroupLedgerStateDeltasForRoundResponse>

unknown Response containing all ledger state deltas for transaction groups, with their associated Ids, in a single round.

Throws

ApiError

Defined in

services.gen.ts:1857


getTransactionProof()

getTransactionProof(data): CancelablePromise<GetTransactionProofResponse>

Get a proof for a transaction in a block.

Parameters

data: GetTransactionProofData

The data for the request.

Returns

CancelablePromise<GetTransactionProofResponse>

unknown Proof of transaction in a block.

Throws

ApiError

Defined in

services.gen.ts:1688


setBlockTimeStampOffset()

setBlockTimeStampOffset(data): CancelablePromise<unknown>

Given a timestamp offset in seconds, adds the offset to every subsequent block header’s timestamp. Sets the timestamp offset (seconds) for blocks in dev mode. Providing an offset of 0 will unset this value and try to use the real clock for the timestamp.

Parameters

data: SetBlockTimeStampOffsetData

The data for the request.

Returns

CancelablePromise<unknown>

unknown OK

Throws

ApiError

Defined in

services.gen.ts:1903


shutdownNode()

shutdownNode(data): CancelablePromise<ShutdownNodeResponse>

Special management endpoint to shutdown the node. Optionally provide a timeout parameter to indicate that the node should begin shutting down after a number of seconds.

Parameters

data: ShutdownNodeData = {}

The data for the request.

Returns

CancelablePromise<ShutdownNodeResponse>

unknown

Throws

ApiError

Defined in

services.gen.ts:1942


simulateTransaction()

simulateTransaction(data): CancelablePromise<SimulateTransactionResponse>

Simulates a raw transaction or transaction group as it would be evaluated on the network. The simulation will use blockchain state from the latest committed round.

Parameters

data: SimulateTransactionData

The data for the request.

Returns

CancelablePromise<SimulateTransactionResponse>

unknown Result of a transaction group simulation.

Throws

ApiError

Defined in

services.gen.ts:2121


startCatchup()

startCatchup(data): CancelablePromise<StartCatchupResponse>

Starts a catchpoint catchup. Given a catchpoint, it starts catching up to this catchpoint

Parameters

data: StartCatchupData

The data for the request.

Returns

CancelablePromise<StartCatchupResponse>

unknown

unknown

Throws

ApiError

Defined in

services.gen.ts:1768


tealCompile()

tealCompile(data): CancelablePromise<TealCompileResponse>

Compile TEAL source code to binary, produce its hash Given TEAL source code in plain text, return base64 encoded program bytes and base32 SHA512_256 hash of program bytes (Address style). This endpoint is only enabled when a node’s configuration file sets EnableDeveloperAPI to true.

Parameters

data: TealCompileData

The data for the request.

Returns

CancelablePromise<TealCompileResponse>

unknown Teal compile Result

Throws

ApiError

Defined in

services.gen.ts:2028


tealDisassemble()

tealDisassemble(data): CancelablePromise<TealDisassembleResponse>

Disassemble program bytes into the TEAL source code. Given the program bytes, return the TEAL source code in plain text. This endpoint is only enabled when a node’s configuration file sets EnableDeveloperAPI to true.

Parameters

data: TealDisassembleData

The data for the request.

Returns

CancelablePromise<TealDisassembleResponse>

unknown Teal disassembly Result

Throws

ApiError

Defined in

services.gen.ts:2055


tealDryrun()

tealDryrun(data): CancelablePromise<TealDryrunResponse>

Provide debugging information for a transaction (or group). Executes TEAL program(s) in context and returns debugging information about the execution. This endpoint is only enabled when a node’s configuration file sets EnableDeveloperAPI to true.

Parameters

data: TealDryrunData = {}

The data for the request.

Returns

CancelablePromise<TealDryrunResponse>

unknown DryrunResponse contains per-txn debug information from a dryrun.

Throws

ApiError

Defined in

services.gen.ts:2079


transactionParams()

transactionParams(): CancelablePromise<TransactionParamsResponse>

Get parameters for constructing a new transaction

Returns

CancelablePromise<TransactionParamsResponse>

unknown TransactionParams contains the parameters that help a client construct a new transaction.

Throws

ApiError

Defined in

services.gen.ts:2100


waitForBlock()

waitForBlock(data): CancelablePromise<WaitForBlockResponse>

Gets the node status after waiting for a round after the given round. Waits for a block to appear after round {round} and returns the node’s status at the time. There is a 1 minute timeout, when reached the current status is returned regardless of whether or not it is the round after the given round.

Parameters

data: WaitForBlockData

The data for the request.

Returns

CancelablePromise<WaitForBlockResponse>

unknown

Throws

ApiError

Defined in

services.gen.ts:2002