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

clients/horizonclient: claimable_balance only takes one parameter #4247

Closed
iateadonut opened this issue Feb 26, 2022 · 1 comment
Closed
Labels

Comments

@iateadonut
Copy link
Contributor

What version are you using?

[email protected]

What did you do?

I was trying to get a list of claimable balances of a single asset on a single wallet.

balances, err := client.ClaimableBalances(horizonclient.ClaimableBalanceRequest{
	Claimant: "GDJCDWRAAB3LA6TT32OBOXV2UYVJEVPKMQXDLUWYH7FQ73MCTH3UNPT7",
	//Sponsor: "GDFCYDQOVJ2OEWPLEGIRQVAM3VTOQ6JDNLJTDZP5S5OGTEHM5CIWMYBH",
	Asset: "AQUA:GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA",
})

What did you expect to see?

I expected to see the same results I would see from this url:
https://horizon.stellar.org/claimable_balances/?claimant=GDJCDWRAAB3LA6TT32OBOXV2UYVJEVPKMQXDLUWYH7FQ73MCTH3UNPT7&asset=AQUA:GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA&limit=200

What did you see instead?

I got the error: "invalid request: too many parameters"

I think I can fix this in claimable_balance_request.go; I can make a PR, but want to make sure this isn't already being fixed already.

@iateadonut iateadonut added the bug label Feb 26, 2022
@iateadonut
Copy link
Contributor Author

PR: #4248

@leighmcculloch leighmcculloch changed the title claimable_balance only takes one parameter in the go sdk clients/horizonclient: claimable_balance only takes one parameter Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant