Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

0220 AT API Calls

Anton Yip edited this page Mar 10, 2017 · 5 revisions

Function Set A1 = TxID Where the transaction occured after $Timestamp.
FUN A_to_Tx_after_Timestamp $Timestamp

Function Check A1 is Zero. If A is Zero, the value at the address of ValidTransaction will be set to 1
FUN @ValidTransaction check_A_Is_Zero

Function get the timestamp for the transaction ID in A1
FUN @LastTransaction get_Timestamp_for_Tx_in_A

Function get the sender's id of the transaction in A1 and put it in B1
FUN B_to_Address_of_Tx_in_A

Function Send the amount in $Amount to the address in B1
FUN send_to_Address_in_B $Amount

Function Set WalletBalance to the wallet's current balace.
FUN @WalletBalance get_Current_Balance

Function Set B1 to the value in DeveloperWallet
FUN set_B1 $DeveloperWallet

Function GetCurrentTime. Time is in the higher 8 bytes in blockheight
FUN @CurrentTime get_Block_Timestamp

Clone this wiki locally