Class DefaultApi
Assembly: Algorand.dll
Syntax
public class DefaultApi : IDefaultApi
Constructors
|
Edit this page
View Source
DefaultApi(HttpClient)
Declaration
public DefaultApi(HttpClient httpClient)
Parameters
Properties
|
Edit this page
View Source
JsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
| Type |
Description |
| JsonSerializerSettings |
|
|
Edit this page
View Source
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Methods
|
Edit this page
View Source
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.
Declaration
public Task<AccountApplicationResponse> AccountApplicationInformationAsync(string address, ulong applicationId, Format? format = null)
Parameters
| Type |
Name |
Description |
| string |
address |
An account public key
|
| ulong |
applicationId |
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<AccountApplicationResponse> AccountApplicationInformationAsync(CancellationToken cancellationToken, string address, ulong applicationId, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
Lookup an account's application holdings (local state and params if the account is the creator).
Declaration
public Task<AccountApplicationsInformationResponse> AccountApplicationsInformationAsync(string address, ulong? limit = null, string? next = null, string? include = null)
Parameters
| Type |
Name |
Description |
| string |
address |
An account public key
|
| ulong? |
limit |
Maximum number of results to return.
|
| string |
next |
The next page of results. Use the next token provided by the previous results.
|
| string |
include |
Include additional items in the response. Use params to include full application parameters (global state, schema, etc.). Multiple values can be comma-separated. Defaults to returning only application IDs and local state.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<AccountApplicationsInformationResponse> AccountApplicationsInformationAsync(CancellationToken cancellationToken, string address, ulong? limit = null, string? next = null, string? include = null)
Parameters
Returns
|
Edit this page
View Source
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.
Declaration
public Task<AccountAssetResponse> AccountAssetInformationAsync(string address, ulong assetId, Format? format = null)
Parameters
| Type |
Name |
Description |
| string |
address |
An account public key
|
| ulong |
assetId |
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<AccountAssetResponse> AccountAssetInformationAsync(CancellationToken cancellationToken, string address, ulong assetId, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
Lookup an account's asset holdings.
Declaration
public Task<AccountAssetsInformationResponse> AccountAssetsInformationAsync(string address, ulong? limit = null, string? next = null)
Parameters
| Type |
Name |
Description |
| string |
address |
An account public key
|
| ulong? |
limit |
Maximum number of results to return.
|
| string |
next |
The next page of results. Use the next token provided by the previous results.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<AccountAssetsInformationResponse> AccountAssetsInformationAsync(CancellationToken cancellationToken, string address, ulong? limit = null, string? next = null)
Parameters
Returns
|
Edit this page
View Source
Given a specific account public key, this call returns the account's status,
balance and spendable amounts
Declaration
public Task<Account> AccountInformationAsync(string address, string? exclude = null, Format? format = null)
Parameters
| Type |
Name |
Description |
| string |
address |
An account public key
|
| string |
exclude |
When set to all will exclude asset holdings, application local state, created
asset parameters, any created application parameters. Defaults to none.
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<Account> AccountInformationAsync(CancellationToken cancellationToken, string address, string? exclude = null, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
ExperimentalCheckAsync()
Returns OK if experimental API is enabled.
Declaration
public Task<string> ExperimentalCheckAsync()
Returns
Exceptions
|
Edit this page
View Source
ExperimentalCheckAsync(CancellationToken)
Declaration
public Task<string> ExperimentalCheckAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
GetApplicationBoxByNameAsync(CancellationToken, ulong, string?)
Declaration
public Task<Box> GetApplicationBoxByNameAsync(CancellationToken cancellationToken, ulong applicationId, string? name = null)
Parameters
Returns
|
Edit this page
View Source
GetApplicationBoxByNameAsync(ulong, string?)
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...'.
Declaration
public Task<Box> GetApplicationBoxByNameAsync(ulong applicationId, string? name = null)
Parameters
| Type |
Name |
Description |
| ulong |
applicationId |
|
| string |
name |
A box name, in the goal app call arg 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...'.
|
Returns
Exceptions
|
Edit this page
View Source
GetApplicationBoxesAsync(CancellationToken, ulong, ulong?)
Declaration
public Task<BoxesResponse> GetApplicationBoxesAsync(CancellationToken cancellationToken, ulong applicationId, ulong? max = null)
Parameters
Returns
|
Edit this page
View Source
GetApplicationBoxesAsync(ulong, ulong?)
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.
Declaration
public Task<BoxesResponse> GetApplicationBoxesAsync(ulong applicationId, ulong? max = null)
Parameters
| Type |
Name |
Description |
| ulong |
applicationId |
|
| ulong? |
max |
Max number of box names to return. If max is not set, or max == 0, returns all
box-names.
|
Returns
Exceptions
|
Edit this page
View Source
GetApplicationByIDAsync(CancellationToken, ulong)
Declaration
public Task<Application> GetApplicationByIDAsync(CancellationToken cancellationToken, ulong applicationId)
Parameters
Returns
|
Edit this page
View Source
GetApplicationByIDAsync(ulong)
Given a application ID, it returns application information including creator,
approval and clear programs, global and local schemas, and global state.
Declaration
public Task<Application> GetApplicationByIDAsync(ulong applicationId)
Parameters
| Type |
Name |
Description |
| ulong |
applicationId |
|
Returns
Exceptions
|
Edit this page
View Source
GetAssetByIDAsync(CancellationToken, ulong)
Declaration
public Task<Asset> GetAssetByIDAsync(CancellationToken cancellationToken, ulong assetId)
Parameters
Returns
|
Edit this page
View Source
GetAssetByIDAsync(ulong)
Given a asset ID, it returns asset information including creator, name, total
supply and special addresses.
Declaration
public Task<Asset> GetAssetByIDAsync(ulong assetId)
Parameters
| Type |
Name |
Description |
| ulong |
assetId |
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<CertifiedBlock> GetBlockAsync(CancellationToken cancellationToken, ulong round, Format? format = null, bool? headerOnly = null)
Parameters
Returns
|
Edit this page
View Source
Get the block for the given round.
Declaration
public Task<CertifiedBlock> GetBlockAsync(ulong round, Format? format = null, bool? headerOnly = null)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round from which to fetch block information.
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
| bool? |
headerOnly |
|
Returns
Exceptions
|
Edit this page
View Source
GetBlockHashAsync(CancellationToken, ulong)
Declaration
public Task<BlockHashResponse> GetBlockHashAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
GetBlockHashAsync(ulong)
Get the block hash for the block on the given round.
Declaration
public Task<BlockHashResponse> GetBlockHashAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round from which to fetch block hash information.
|
Returns
Exceptions
|
Edit this page
View Source
GetBlockLogsAsync(CancellationToken, ulong)
Declaration
public Task<BlockLogsResponse> GetBlockLogsAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
GetBlockLogsAsync(ulong)
Get all of the logs from outer and inner app calls in the given round
Declaration
public Task<BlockLogsResponse> GetBlockLogsAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round from which to fetch block log information.
|
Returns
Exceptions
|
Edit this page
View Source
GetBlockTimeStampOffsetAsync()
Gets the current timestamp offset.
Declaration
public Task<GetBlockTimeStampOffsetResponse> GetBlockTimeStampOffsetAsync()
Returns
Exceptions
|
Edit this page
View Source
GetBlockTimeStampOffsetAsync(CancellationToken)
Declaration
public Task<GetBlockTimeStampOffsetResponse> GetBlockTimeStampOffsetAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
GetBlockTxidsAsync(CancellationToken, ulong)
Declaration
public Task<BlockTxidsResponse> GetBlockTxidsAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
GetBlockTxidsAsync(ulong)
Get the top level transaction IDs for the block on the given round.
Declaration
public Task<BlockTxidsResponse> GetBlockTxidsAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round from which to fetch block transaction IDs.
|
Returns
Exceptions
|
Edit this page
View Source
GetGenesisAsync()
Returns the entire genesis file in json.
Declaration
public Task<Genesis> GetGenesisAsync()
Returns
Exceptions
|
Edit this page
View Source
GetGenesisAsync(CancellationToken)
Declaration
public Task<Genesis> GetGenesisAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<LedgerStateDelta> GetLedgerStateDeltaAsync(CancellationToken cancellationToken, ulong round, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
Get ledger deltas for a round.
Declaration
public Task<LedgerStateDelta> GetLedgerStateDeltaAsync(ulong round, Format? format = null)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round for which the deltas are desired.
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Get a ledger delta for a given transaction group.
Declaration
public Task<LedgerStateDelta> GetLedgerStateDeltaForTransactionGroupAsync(string id, Format? format = null)
Parameters
| Type |
Name |
Description |
| string |
id |
A transaction ID, or transaction group ID
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<LedgerStateDelta> GetLedgerStateDeltaForTransactionGroupAsync(CancellationToken cancellationToken, string id, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
GetLightBlockHeaderProofAsync(CancellationToken, ulong)
Declaration
public Task<LightBlockHeaderProof> GetLightBlockHeaderProofAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
GetLightBlockHeaderProofAsync(ulong)
Gets a proof for a given light block header inside a state proof commitment
Declaration
public Task<LightBlockHeaderProof> GetLightBlockHeaderProofAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round to which the light block header belongs.
|
Returns
Exceptions
|
Edit this page
View Source
Get the list of pending transactions, sorted by priority, in decreasing order,
truncated at the end at MAX. If MAX = 0, returns all pending transactions.
Declaration
public Task<PendingTransactions> GetPendingTransactionsAsync(Format? format = null, ulong? max = null)
Parameters
| Type |
Name |
Description |
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
| ulong? |
max |
Truncated number of transactions to display. If max=0, returns all pending txns.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<PendingTransactions> GetPendingTransactionsAsync(CancellationToken cancellationToken, Format? format = null, ulong? max = null)
Parameters
Returns
|
Edit this page
View Source
Get the list of pending transactions by address, sorted by priority, in
decreasing order, truncated at the end at MAX. If MAX = 0, returns all pending
transactions.
Declaration
public Task<PendingTransactions> GetPendingTransactionsByAddressAsync(string address, Format? format = null, ulong? max = null)
Parameters
| Type |
Name |
Description |
| string |
address |
An account public key
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
| ulong? |
max |
Truncated number of transactions to display. If max=0, returns all pending txns.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<PendingTransactions> GetPendingTransactionsByAddressAsync(CancellationToken cancellationToken, string address, Format? format = null, ulong? max = null)
Parameters
Returns
|
Edit this page
View Source
GetReadyAsync()
Returns OK if healthy and fully caught up.
Declaration
public Task<string> GetReadyAsync()
Returns
Exceptions
|
Edit this page
View Source
GetReadyAsync(CancellationToken)
Declaration
public Task<string> GetReadyAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
GetStateProofAsync(CancellationToken, ulong)
Declaration
public Task<StateProof> GetStateProofAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
GetStateProofAsync(ulong)
Get a state proof that covers a given round
Declaration
public Task<StateProof> GetStateProofAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round for which a state proof is desired.
|
Returns
Exceptions
|
Edit this page
View Source
GetStatusAsync()
Gets the current node status.
Declaration
public Task<NodeStatusResponse> GetStatusAsync()
Returns
Exceptions
|
Edit this page
View Source
GetStatusAsync(CancellationToken)
Declaration
public Task<NodeStatusResponse> GetStatusAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
GetSupplyAsync()
Get the current supply reported by the ledger.
Declaration
public Task<SupplyResponse> GetSupplyAsync()
Returns
Exceptions
|
Edit this page
View Source
GetSupplyAsync(CancellationToken)
Declaration
public Task<SupplyResponse> GetSupplyAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
GetSyncRoundAsync()
Gets the minimum sync round for the ledger.
Declaration
public Task<GetSyncRoundResponse> GetSyncRoundAsync()
Returns
Exceptions
|
Edit this page
View Source
GetSyncRoundAsync(CancellationToken)
Declaration
public Task<GetSyncRoundResponse> GetSyncRoundAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<TransactionGroupLedgerStateDeltasForRoundResponse> GetTransactionGroupLedgerStateDeltasForRoundAsync(CancellationToken cancellationToken, ulong round, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
Get ledger deltas for transaction groups in a given round.
Declaration
public Task<TransactionGroupLedgerStateDeltasForRoundResponse> GetTransactionGroupLedgerStateDeltasForRoundAsync(ulong round, Format? format = null)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round for which the deltas are desired.
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<TransactionProofResponse> GetTransactionProofAsync(CancellationToken cancellationToken, ulong round, string txid, Format? format = null, string? hashtype = null)
Parameters
Returns
|
Edit this page
View Source
Get a proof for a transaction in a block.
Declaration
public Task<TransactionProofResponse> GetTransactionProofAsync(ulong round, string txid, Format? format = null, string? hashtype = null)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round in which the transaction appears.
|
| string |
txid |
The transaction ID for which to generate a proof.
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
| string |
hashtype |
The type of hash function used to create the proof, must be one of:
* sha512_256
* sha256
|
Returns
Exceptions
|
Edit this page
View Source
GetVersionAsync()
Retrieves the supported API versions, binary build versions, and genesis
information.
Declaration
public Task<Version> GetVersionAsync()
Returns
Exceptions
|
Edit this page
View Source
GetVersionAsync(CancellationToken)
Declaration
public Task<Version> GetVersionAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
HealthCheckAsync()
Declaration
public Task<string> HealthCheckAsync()
Returns
Exceptions
|
Edit this page
View Source
HealthCheckAsync(CancellationToken)
Declaration
public Task<string> HealthCheckAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
MetricsAsync()
Return metrics about algod functioning.
Declaration
public Task<string> MetricsAsync()
Returns
Exceptions
|
Edit this page
View Source
MetricsAsync(CancellationToken)
Declaration
public Task<string> MetricsAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Given a transaction ID of a recently submitted transaction, it returns
information about it. There are several cases when this might succeed:
- transaction committed (committed round > 0)
- transaction still in the pool (committed round = 0, pool error = "")
- transaction removed from pool due to error (committed round = 0, pool error !=
"")
Or the transaction may have happened sufficiently long ago that the node no
longer remembers it, and this will return an error.
Declaration
public Task<IReturnableTransaction> PendingTransactionInformationAsync(string txid, Format? format = null)
Parameters
| Type |
Name |
Description |
| string |
txid |
A transaction ID
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<IReturnableTransaction> PendingTransactionInformationAsync(CancellationToken cancellationToken, string txid, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
RawTransactionAsyncAsync(List<SignedTransaction>)
Fast track for broadcasting a raw transaction or transaction group to the
network through the tx handler without performing most of the checks and
reporting detailed errors. Should be only used for development and performance
testing.
Declaration
public Task<string> RawTransactionAsyncAsync(List<SignedTransaction> rawtxn)
Parameters
| Type |
Name |
Description |
| List<SignedTransaction> |
rawtxn |
The byte encoded signed transaction to broadcast to network
|
Returns
Exceptions
|
Edit this page
View Source
RawTransactionAsyncAsync(CancellationToken, List<SignedTransaction>)
Declaration
public Task<string> RawTransactionAsyncAsync(CancellationToken cancellationToken, List<SignedTransaction> rawtxn)
Parameters
Returns
|
Edit this page
View Source
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
Declaration
protected virtual Task<DefaultApi.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
SetBlockTimeStampOffsetAsync(CancellationToken, ulong)
Declaration
public Task<string> SetBlockTimeStampOffsetAsync(CancellationToken cancellationToken, ulong offset)
Parameters
Returns
|
Edit this page
View Source
SetBlockTimeStampOffsetAsync(ulong)
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.
Declaration
public Task<string> SetBlockTimeStampOffsetAsync(ulong offset)
Parameters
| Type |
Name |
Description |
| ulong |
offset |
The timestamp offset for blocks in dev mode.
|
Returns
Exceptions
|
Edit this page
View Source
SetSyncRoundAsync(CancellationToken, ulong)
Declaration
public Task<string> SetSyncRoundAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
SetSyncRoundAsync(ulong)
Sets the minimum sync round on the ledger.
Declaration
public Task<string> SetSyncRoundAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round for which the deltas are desired.
|
Returns
Exceptions
|
Edit this page
View Source
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.
Declaration
public Task<SimulateResponse> SimulateTransactionAsync(SimulateRequest request, Format? format = null)
Parameters
| Type |
Name |
Description |
| SimulateRequest |
request |
The transactions to simulate, along with any other inputs.
|
| Format? |
format |
Configures whether the response object is JSON or MessagePack encoded. If not
provided, defaults to JSON.
|
Returns
Exceptions
|
Edit this page
View Source
Declaration
public Task<SimulateResponse> SimulateTransactionAsync(CancellationToken cancellationToken, SimulateRequest request, Format? format = null)
Parameters
Returns
|
Edit this page
View Source
SwaggerJSONAsync()
Returns the entire swagger spec in json.
Declaration
public Task<string> SwaggerJSONAsync()
Returns
Exceptions
|
Edit this page
View Source
SwaggerJSONAsync(CancellationToken)
Declaration
public Task<string> SwaggerJSONAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
TealCompileAsync(Stream, bool?)
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.
Declaration
public Task<CompileResponse> TealCompileAsync(Stream source, bool? sourcemap = null)
Parameters
| Type |
Name |
Description |
| Stream |
source |
TEAL source code to be compiled
|
| bool? |
sourcemap |
When set to true, returns the source map of the program as a JSON. Defaults to
false.
|
Returns
Exceptions
|
Edit this page
View Source
TealCompileAsync(CancellationToken, Stream, bool?)
Declaration
public Task<CompileResponse> TealCompileAsync(CancellationToken cancellationToken, Stream source, bool? sourcemap = null)
Parameters
Returns
|
Edit this page
View Source
TealDisassembleAsync(Stream)
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.
Declaration
public Task<DisassembleResponse> TealDisassembleAsync(Stream source)
Parameters
| Type |
Name |
Description |
| Stream |
source |
TEAL program binary to be disassembled
|
Returns
Exceptions
|
Edit this page
View Source
TealDisassembleAsync(CancellationToken, Stream)
Declaration
public Task<DisassembleResponse> TealDisassembleAsync(CancellationToken cancellationToken, Stream source)
Parameters
Returns
|
Edit this page
View Source
TealDryrunAsync(DryrunRequest)
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.
Declaration
public Task<DryrunResponse> TealDryrunAsync(DryrunRequest request)
Parameters
| Type |
Name |
Description |
| DryrunRequest |
request |
Transaction (or group) and any accompanying state-simulation data.
|
Returns
Exceptions
|
Edit this page
View Source
TealDryrunAsync(CancellationToken, DryrunRequest)
Declaration
public Task<DryrunResponse> TealDryrunAsync(CancellationToken cancellationToken, DryrunRequest request)
Parameters
Returns
|
Edit this page
View Source
TransactionParamsAsync()
Get parameters for constructing a new transaction
Declaration
public Task<TransactionParametersResponse> TransactionParamsAsync()
Returns
Exceptions
|
Edit this page
View Source
TransactionParamsAsync(CancellationToken)
Declaration
public Task<TransactionParametersResponse> TransactionParamsAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
TransactionsAsync(List<SignedTransaction>)
Broadcasts a raw transaction or transaction group to the network.
Declaration
public Task<PostTransactionsResponse> TransactionsAsync(List<SignedTransaction> rawtxn)
Parameters
| Type |
Name |
Description |
| List<SignedTransaction> |
rawtxn |
The byte encoded signed transaction to broadcast to network
|
Returns
Exceptions
|
Edit this page
View Source
TransactionsAsync(CancellationToken, List<SignedTransaction>)
Declaration
public Task<PostTransactionsResponse> TransactionsAsync(CancellationToken cancellationToken, List<SignedTransaction> rawtxn)
Parameters
Returns
|
Edit this page
View Source
UnsetSyncRoundAsync()
Unset the ledger sync round.
Declaration
public Task<string> UnsetSyncRoundAsync()
Returns
Exceptions
|
Edit this page
View Source
UnsetSyncRoundAsync(CancellationToken)
Declaration
public Task<string> UnsetSyncRoundAsync(CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
WaitForBlockAsync(CancellationToken, ulong)
Declaration
public Task<NodeStatusResponse> WaitForBlockAsync(CancellationToken cancellationToken, ulong round)
Parameters
Returns
|
Edit this page
View Source
WaitForBlockAsync(ulong)
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.
Declaration
public Task<NodeStatusResponse> WaitForBlockAsync(ulong round)
Parameters
| Type |
Name |
Description |
| ulong |
round |
The round to wait until returning status
|
Returns
Exceptions
Implements