#querying self-bonds programmatically

1 messages ยท Page 1 of 1 (latest)

granite island
#

can you say just a bit more about context and how it's used?

clear mountain
#

so i am trying to query self stake using the indexer and endpoints present on the swagger
but i dont see anything that outputs self stake

granite island
#

@wheat elbow can you help?

#

I'll ask devs during the day.

clear mountain
#

Okay thanks

granite island
#

querying self-bonds programmatically

covert canopy
#

you are trying to query self stake of a validator?

covert canopy
#

A query like this for a validator's address would show the self-bonds:

https://indexer.mainnet.siuuu.click/api/v1/pos/bond/{validator_address}
#

But many validators may not necessarily have self-bonds from tokens delegated directly from their validator account. Many validators may also be staking some of their own tokens through a different non-validator address

clear mountain
#

the self stake addr during genesis was different so was getting empty output.
thanks again.