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

createBasicTransactionWithData empty response #3197

Closed
blouflashdb opened this issue Dec 15, 2024 · 1 comment · Fixed by #3198
Closed

createBasicTransactionWithData empty response #3197

blouflashdb opened this issue Dec 15, 2024 · 1 comment · Fixed by #3198
Labels
bug Something isn't working

Comments

@blouflashdb
Copy link

Calling this in my bash:

curl --request POST --url http://127.0.0.1:8648 --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0","method": "createBasicTransactionWithData","params": ["NQXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX", "NQXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX", "data", 1, 0, "+0"],"id": 1}'

gives me this response:

curl: (52) Empty reply from server
@Eligioo
Copy link
Member

Eligioo commented Dec 16, 2024

The server actually fails to process this request as expects the data field to be in a hex representation. If you fail to do so the server simply panics which is incorrect behaviour.

It being clear that a hex format must be provided is among of the improvements of the RPC docs and server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants