ASA Deployment Flags
create new application and returns application id
application approval program
application clear program
SSCDeployment flags
Transaction parameters
Create Asset in Runtime using asa.yaml
ASA Deployment Flags
asserts if account is defined.
account
line number in TEAL file Note: if user is accessing this function directly through runtime, the line number is unknown
asserts if account address is defined
account address
line number in TEAL file Note: if user is accessing this function directly through runtime, the line number is unknown
asserts if application exists in state
application index
application
line number in TEAL file Note: if user is accessing this function directly through runtime, the line number is unknown
asserts if asset exists in state
asset index
asset definitions
line number Note: if user is accessing this function directly through runtime, the line number is unknown
Creates a new account with logic signature and smart contract arguments in the runtime store. The arguments are used when we send a transaction with this account and verify it.
TEAL code
arguments passed
logic signature with arguments.
Deploy Asset in Runtime using asa.yaml
ASA Deployment Flags
Deploy Asset in Runtime without using asa.yaml
ASA Deployment Flags
deploy a new application and returns application id
application approval program (TEAL code or program filename)
application clear program (TEAL code or program filename)
SSCDeployment flags
Transaction parameters
Smart Contract template parameters
Transfers amount
of microAlgos from from
address to to
address
From account
to address
amount of algo in microalgos
Fetches account from this.store
account address
Fetches app from this.store
Application Index
Queries app id by app name from global state. Returns undefined if app is not found. https://www.pivotaltracker.com/story/show/180142720
Returns asset creator account or throws error is it doesn't exist
Returns Asset Definitions
Asset Index
Returns Asset Holding from an account
Asset Index
address of account to get holding from
Queries asset id by asset name from global state. Returns undefined if asset is not found.
Asset name
Fetches global state value for key present in creator's global state for given appID, returns undefined otherwise
Fetches local state for account address and application index
application index
address for which local state needs to be retrieved
Return current round
Return current timestamp
Returns transaction receipt for a particular transaction
transaction ID
Setup initial accounts as {address: SDKAccount}. This should be called only when initializing Runtime.
Loads logic signature for contract mode, creates a new runtime account associated with lsig
ASC filename
only show logs on console when set as true. By default this value is true
loaded logic signature from assets/
Opt-In to all accounts given in asa.yaml to a specific asset.
Asset Index
Account address opt-in for application Id
Account address
Application Id
Stateful smart contract transaction optional parameters (accounts, args..)
Transaction Parameters
Asset Opt-In for account in Runtime
Asset Index
Account address to opt-into asset
Transaction Parameters
This function executes TEAL code line by line
: teal code as string
: execution Mode (Stateless or Stateful)
set current round with timestamp for a block
current round
block's timestamp
Update application
sender address
application Id
new approval program (TEAL code or program filename)
new clear program (TEAL code or program filename)
Transaction parameters
Stateful smart contract transaction optional parameters (accounts, args..)
Validate signature for Algorand account on transaction params. Include check spending account when creating a transaction from Algorand account Throw RuntimeError if signature is invalid.
transaction parameters.
validate logic signature and teal logic
Transaction Parameters
Validate first and last rounds of transaction using current round
transactions
Generated using TypeDoc
Create Asset in Runtime without using asa.yaml
deployASADef
should be used instead