Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Support POST method for Etherscan.io #54

Closed
wants to merge 1 commit into from

Conversation

axic
Copy link
Contributor

@axic axic commented Mar 25, 2016

No description provided.

@kumavis
Copy link
Member

kumavis commented Mar 30, 2016

lets just always POST then, less logic

@kumavis kumavis closed this Mar 30, 2016
@kumavis
Copy link
Member

kumavis commented Mar 30, 2016

changed to POST all

@axic
Copy link
Contributor Author

axic commented Mar 31, 2016

I do think it was more useful with an option :)

@kumavis
Copy link
Member

kumavis commented Apr 2, 2016

easy to add in when necesary, im resistant to feature bloat

var uri = proto + '://api.etherscan.io/api?' + toQueryString({ module: module, action: action }) + '&' + toQueryString(params)
// console.log('[etherscan] request: ', uri)

// URLs have a length in many browsers, switch to POST in that case
// http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers
if (uri.length > 2000) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kumavis this part was not taken into master and eth_sendRawTransaction still uses GET.

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

Successfully merging this pull request may close these issues.

2 participants