Skip to content

Commit 3bec352

Browse files
authored
Update account.go
1 parent 0cac5f9 commit 3bec352

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

account.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ func (c *Client) InternalTxByAddress(address string, startBlock *int, endBlock *
7575
return
7676
}
7777

78+
79+
// InternalTxByHash gets a list of "internal" transactions by address
80+
//
81+
// startBlock and endBlock can be nil
82+
//
83+
// if desc is true, result will be sorted in descendant order.
84+
func (c *Client) InternalTxByHash(txHash string) (txs []InternalTx, err error) {
85+
param := M{
86+
"txhash": txHash,
87+
88+
}
89+
90+
err = c.call("account", "txlistinternal", param, &txs)
91+
return
92+
}
93+
7894
// ERC20Transfers get a list of "erc20 - token transfer events" by
7995
// contract address and/or from/to address.
8096
//

0 commit comments

Comments
 (0)