summaryrefslogtreecommitdiff
path: root/libgoal/libgoal.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgoal/libgoal.go')
-rw-r--r--libgoal/libgoal.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgoal/libgoal.go b/libgoal/libgoal.go
index 3193921dd..524ffc293 100644
--- a/libgoal/libgoal.go
+++ b/libgoal/libgoal.go
@@ -881,6 +881,16 @@ func (c *Client) GetPendingTransactions(maxTxns uint64) (resp v1.PendingTransact
return
}
+// GetPendingTransactionsByAddress gets a snapshot of current pending transactions on the node for the given address.
+// If maxTxns = 0, fetches as many transactions as possible.
+func (c *Client) GetPendingTransactionsByAddress(addr string, maxTxns uint64) (resp v1.PendingTransactions, err error) {
+ algod, err := c.ensureAlgodClient()
+ if err == nil {
+ resp, err = algod.PendingTransactionsByAddr(addr, maxTxns)
+ }
+ return
+}
+
// ExportKey exports the private key of the passed account, assuming it's available
func (c *Client) ExportKey(walletHandle []byte, password, account string) (resp kmdapi.APIV1POSTKeyExportResponse, err error) {
kmd, err := c.ensureKmdClient()