Get the Transaction Type of the originating transaction

Behaviour

  • Return the Transaction Type of the originating transaction

Definition

int64_t otxn_type (
    void
);

Example

int64_t tt = 
  otxn_type();

Parameters

None

Return Code

TypeDescription
int64_tThe Transaction Type of the originating transaction. Check the table below for a list of known Transaction Types at time of writing

Known Transaction Types

NameValue
ttPAYMENT0
ttESCROW_CREATE1
ttESCROW_FINISH2
ttACCOUNT_SET3
ttESCROW_CANCEL4
ttREGULAR_KEY_SET5
ttOFFER_CREATE7
ttOFFER_CANCEL8
ttTICKET_CREATE10
ttTICKET_CANCEL11
ttSIGNER_LIST_SET12
ttPAYCHAN_CREATE13
ttPAYCHAN_FUND14
ttPAYCHAN_CLAIM15
ttCHECK_CREATE16
ttCHECK_CASH17
ttCHECK_CANCEL18
ttDEPOSIT_PREAUTH19
ttTRUST_SET20
ttACCOUNT_DELETE21
ttHOOK_SET22
ttURITOKEN_MINT45
ttURITOKEN_BURN46
ttURITOKEN_BUY47
ttURITOKEN_CREATE_SELL_OFFER48
ttURITOKEN_CANCEL_SELL_OFFER49
ttGENESIS_MINT96
ttIMPORT97
ttCLAIM_REWARD98
ttINVOKE99
ttAMENDMENT100
ttFEE101
ttUNL_MODIFY102
ttEMIT_FAILURE103
ttUNL_REPORT104