Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show escrowed balances of current ibc module #17

Open
liangping opened this issue May 27, 2023 · 7 comments · Fixed by #18
Open

feat: show escrowed balances of current ibc module #17

liangping opened this issue May 27, 2023 · 7 comments · Fixed by #18
Assignees
Labels
enhancement New feature or request

Comments

@liangping
Copy link
Contributor

Adding a "Escrowed Accounts"

List all escrowed accounts from configs. (all channel_id and port_id of current chain)

  1. get escrowed address:
    /ibc/apps/atomicswap/v1/channels/{channel_id}/ports/{port_id}/escrow_address

  2. get balances of escrowed address:
    /cosmos/bank/v1beta1/balances/{address}](https://rest.testnet.side.one/swagger/#/Query/CosmosBankV1Beta1AllBalances)

3, show all result:

address channel_id/port_id token
@liangping liangping added the enhancement New feature or request label May 27, 2023
@liangping liangping changed the title feat: show escrowed module of current ibc module feat: show escrowed balances of current ibc module May 27, 2023
@alisaweb3
Copy link
Contributor

Okay. I got it.

@alisaweb3
Copy link
Contributor

I will get all channelId and portId from here: https://rest.testnet.side.one/swagger/#/Query/IbcCoreChannelV1Channels

@alisaweb3
Copy link
Contributor

alisaweb3 commented May 27, 2023

I got the data through the interface.

image

@alisaweb3
Copy link
Contributor

I submitted a pull request: #18

@liangping
Copy link
Contributor Author

Tokens do not show up sometimes

@alisaweb3
Copy link
Contributor

If there is no data, it will not be displayed

@soring323
Copy link

it is happening, using same endpoint for different modules.

about interchainswap, have to use this endpoint.
And then about transfer, we don't have escrow account
[/ibc/apps/interchainswap/v1/channels/{channel_id}/ports/{port_id}/escrow_address]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants