Skip to content

Commit

Permalink
Add the getTransactionsByPublicKey method
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Nov 5, 2018
1 parent 610ffbf commit 162bd37
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Arionum.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ class Arionum {
})
}

/**
* Retrieve the transactions of a specified public key.
*
* @param {string} publicKey
* @return Promise
*/
getTransactionsByPublicKey (publicKey) {
return this
.getJson({
q: 'getTransactions',
public_key: publicKey
})
}

/**
* Retrieve a specified transaction by its id.
*
Expand Down

0 comments on commit 162bd37

Please sign in to comment.