TransWikia.com

How to retrieve a list of "pending Truslines" to verify?

Stellar Asked on August 21, 2021

Assume I have a [Custom Asset] that either or both of it’s [Issuer/Distributor] Account(s) [Authorization required] Flag set to True.
How can I fetch a list of [Pending Trustlines] for my [Asset] in each corresponding Account in order to verify at any desired time?
BTW, I noticed an answer mentioned "trustlines filtering" "https://stellar.stackexchange.com/questions/2844/viewing-trustlines-for-authorization-required-assets-from-an-asset-issuer-perspe" but didn’t resolve my issue!
Stay Safe V

One Answer

You should be able to use the Horizon /accounts endpoint to return all the accounts with trustlines to an asset: https://www.stellar.org/developers/horizon/reference/endpoints/accounts.html

You can then iterate over that list to find accounts that haven't yet been authorized. (see https://github.com/stellar/go/issues/1938)

Correct answer by Justin Rice on August 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP