hirosystems / hirosystems/stacks-blockchain-api

Duplicate entried in getAccountInbound

Open
#2,090 0 comments 0 reactions 1 assignee Claimed by @zone117x View on GitHub
Dominant language
TypeScript
Stars
193
Forks
127
Avg merge
16h 35m
Merged PRs (30d)
46

Description

**Describe the bug**
When calling getAccountInbound, the result contains duplicate entries that only differ by stx-transfer and stx-transfer-memo

**To Reproduce**
Steps to reproduce the behavior:
1. call `await accountsApi.getAccountInbound({principal: "SP2ZNPXGZ8S4GE568QSCF66PT02BZ63Y4W3Y7BHNZ", });`
2. check result for stx-transfer and stx-transfer-memo. e.g.
```
{
sender: 'SP3KJBWTS3K562BF5NXWG5JC8W90HEG7WPYH5B97X',
amount: '4904900750',
memo: '0x72657761726473203839000000000000000000000000000000000000000000000000',
block_height: 160523,
tx_id: '0x23c178d6f20a7772f6fda3c2c35e6bb4d90e9fadf87d09457bc9d9eb585b5790',
transfer_type: 'stx-transfer',
tx_index: 45
},
{
sender: 'SP3KJBWTS3K562BF5NXWG5JC8W90HEG7WPYH5B97X',
amount: '4904900750',
memo: '0x72657761726473203839000000000000000000000000000000000000000000000000',
block_height: 160523,
tx_id: '0x23c178d6f20a7772f6fda3c2c35e6bb4d90e9fadf87d09457bc9d9eb585b5790',
transfer_type: 'stx-transfer-memo',
tx_index: 45
},
```

**Expected behavior**
Only one stx transfer event should be listed

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.