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

Drop in replacement? #4

Open
dfguo opened this issue Oct 15, 2018 · 1 comment
Open

Drop in replacement? #4

dfguo opened this issue Oct 15, 2018 · 1 comment

Comments

@dfguo
Copy link

dfguo commented Oct 15, 2018

Hi,

Can I use this as a dropin replacement for eosjs http endpoint? When querying get_actions, I get empty response:

› curl 'https://history.cryptolions.io/v1/history/get_actions' -H 'Content-Type: text/json;charset=UTF-8' --data-binary '{"account_name":"eosasia11111","pos":-1,"offset":-100}' --compressed

returns

{"actions":[]}

@orange1337
Copy link
Contributor

orange1337 commented Oct 15, 2018

Hi @dfguo,
Use application/json content type:.
Try this command:
curl -i -X POST -H 'Content-Type: application/json;charset=UTF-8' -d '{"account_name":"eosasia11111","pos":-1,"offset":-100}' --compressed https://history.cryptolions.io/v1/history/get_actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants