src/Parser.php
public function lookupCounterpartyTransactionType(array $tx, $protocol_version=null) {
        $data = $this->parseBitcoinTransaction($tx, $protocol_version);
        if ($data === null) { return null; }
        return $data['type'];
    }
public function lookupCounterpartyTransactionType(array $tx, $protocol_version=null) {
        $data = $this->parseBitcoinTransaction($tx, $protocol_version);
        if ($data === null) { return null; }
        return $data['type'];
    }
public function lookupCounterpartyTransactionType ( array $ tx , $ protocol_version = null ) { $ data = $ this -> parseBitcoinTransaction ( $ tx , $ protocol_version ) ; if ( $ data === null ) { return null ; } return $ data [ 'type' ] ; }
parses a transaction and determines the counterparty transaction type
@param  array  $tx Transaction data from bitcoind
@param  int|null  $protocol_version the procol version.  Leave blank for the latest protocol.
@return string|null Counterparty transaction type
parses a transaction and determines the counterparty transaction type