QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

Search for Inner Transaction Hash #68

Open ahdgfd opened 5 years ago

ahdgfd commented 5 years ago

At a Multisig Transaction there is always an Inner Transaction Hash and an outer Transaction Hash(Multisig Hash).

With the given Code i can only search for the Outer Transaction Hash(Multisig Hash):

nem.com.requests.transaction.byHash(searchEnabledEndpoint, txHash)

How can i search for the inner Transaction Hash, it works in the Blockchain Explorer of nem. There i enter the Inner Transaction Hash and get to the same Transaction if i searched for the Multisig Hash. In the sdk i get an error "Not Found".

In the nem sdk i found the function byHash with the created options:

var options = { url: _helpers2.default.formatEndpoint(endpoint) + '/transaction/get', method: 'GET', headers: _headers2.default.urlEncoded, qs: { 'hash': txHash }

I tried to change the qs from hash to innerHash but cannt solve my Problem, How do i have to change the request to search for a innerTransaction Hash?

Kindly Daniel