These docs are for v2.0. Click to read the latest docs for v3.0.

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
ttAMENDMENT100
ttFEE101
ttUNL_MODIFY102