We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
getBlockchainState() does work ...
but as soon as I try
fullNode.getUnspentCoins({ puzzleHash: '<any puzzle hash>', startHeight: 10000, endHeight: 50000 }).then((value) => { console.log("getUnspentCoins result:", value); }).catch((e) => { console.error("getUnspentCoins error:", e) })
it returns:
getUnspentCoins result: { error: ''dict' object has no attribute 'startswith'', success: false }
while checking the same puzzle hash with CURL works
curl --insecure --cert ~/.chia/mainnet/config/ssl/full_node/private_full_node.crt --key ~/.chia/mainnet/config/ssl/full_node/private_full_node.key -H "Content-Type: application/json" -X POST https://localhost:8555/get_coin_records_by_puzzle_hash -d '{"puzzle_hash": "< some puzzle hash >", "start_height": 350000, "include_spend_coins":false}' | python3 -m json.tool
any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
Sorry case closed .. I sent parameters as json
correct way:
fullNode.getUnspentCoins( '<any puzzle hash>', 10000, 50000 }).then((value) => { console.log("getUnspentCoins result:", value); }).catch((e) => { console.error("getUnspentCoins error:", e) })
Sorry, something went wrong.
No branches or pull requests
Hi!
getBlockchainState() does work ...
but as soon as I try
it returns:
getUnspentCoins result: { error: ''dict' object has no attribute 'startswith'',
success: false }
while checking the same puzzle hash with CURL works
curl --insecure --cert ~/.chia/mainnet/config/ssl/full_node/private_full_node.crt --key ~/.chia/mainnet/config/ssl/full_node/private_full_node.key -H "Content-Type: application/json" -X POST https://localhost:8555/get_coin_records_by_puzzle_hash -d '{"puzzle_hash": "< some puzzle hash >", "start_height": 350000, "include_spend_coins":false}' | python3 -m json.tool
any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: