Transactions

Payment

ret_code_t
vertices_transaction_pay_new(
            account_info_t *account, 
            char *receiver, 
            uint64_t amount, 
            void *params);

Parameters

  • account: sender account. Handle after creating the account using vertices_account_add.

  • receiver: public base-32 address of the receiver account.

  • amount: the number of tokens to be sent. In Algorand's case in microAlgos.

  • params: in Algorand's case, note that will be included in the transaction.

Return codes

  • VTC_SUCCESS if the transaction went through

  • VTC_ERROR_INVALID_PARAM if one parameter is incorrect

  • VTC_ERROR_NO_MEM if there is no room to queue the payment transaction

Application call

Parameters

  • account: sender account. Handle after creating the account using vertices_account_add.

  • app_id: Algorand application ID

  • params: in Algorand's case, a pointer to app_values_t that has been zeroed before.

Return codes

  • VTC_SUCCESS if the transaction went through

  • VTC_ERROR_INVALID_PARAM if one parameter is incorrect

  • VTC_ERROR_NO_MEM if there is no room to queue the payment transaction

Last updated

Was this helpful?