constants

Contains useful constants.

kmd_auth_header = 'X-KMD-API-Token'

header key for kmd requests

Type:str
algod_auth_header = 'X-Algo-API-Token'

header key for algod requests

Type:str
indexer_auth_header = 'X-Indexer-API-Token'

header key for indexer requests

Type:str
unversioned_paths = ['/health', '/versions', '/metrics']

paths that don’t use the version path prefix

Type:str[]
no_auth = []

requests that don’t require authentication

Type:str[]
payment_txn = 'pay'

indicates a payment transaction

Type:str
keyreg_txn = 'keyreg'

indicates a key registration transaction

Type:str
assetconfig_txn = 'acfg'

indicates an asset configuration transaction

Type:str
assetfreeze_txn = 'afrz'

indicates an asset freeze transaction

Type:str
assettransfer_txn = 'axfer'

indicates an asset transfer transaction

Type:str
appcall_txn = 'appl'

indicates an app call transaction, allows creating, deleting, and interacting with an application

Type:str
note_field_type_deposit = 'd'

indicates a signed deposit in NoteField

Type:str
note_field_type_bid = 'b'

indicates a signed bid in NoteField

Type:str
note_field_type_settlement = 's'

indicates a signed settlement in NoteField

Type:str
note_field_type_params = 'p'

indicates signed params in NoteField

Type:str
txid_prefix = b'TX'

transaction prefix when signing

Type:bytes
tgid_prefix = b'TG'

transaction group prefix when computing the group ID

Type:bytes
bid_prefix = b'aB'

bid prefix when signing

Type:bytes
bytes_prefix = b'MX'

bytes prefix when signing

Type:bytes
msig_addr_prefix = 'MultisigAddr'

prefix for multisig addresses

Type:str
logic_prefix = b'Program'

program (logic) prefix when signing

Type:bytes
logic_data_prefix = b'ProgData'

program (logic) data prefix when signing

Type:bytes
check_sum_len_bytes = 4

how long checksums should be

Type:int
key_len_bytes = 32

how long addresses are in bytes

Type:int
address_len = 58

how long addresses are in base32, including the checksum

Type:int
mnemonic_len = 25

how long mnemonic phrases are

Type:int
min_txn_fee = 1000

minimum transaction fee

Type:int
microalgos_to_algos_ratio = 1000000

how many microalgos per algo

Type:int
metadata_length = 32

length of asset metadata

Type:int
note_max_length = 1024

maximum length of note field

Type:int
lease_length = 32

byte length of leases

Type:int
multisig_account_limit = 255

maximum number of addresses in a multisig account

Type:int
tx_group_limit = 16

maximum number of transaction in a transaction group

Type:int
max_asset_decimals = 19

maximum value for decimals in assets

Type:int
logic_sig_max_cost = 20000

max execution cost of a teal program

Type:int
logic_sig_max_size = 1000

max size of a teal program and its arguments in bytes

Type:int