Git Product home page Git Product logo

myetherapi's Introduction

MyEtherAPI: An API by MyEtherWallet


The Basics

Endpoints

Call Types

All The Calls

If you are looking for very intense setup or most customizable stuff, we highly recommend just spinning up your own AWS clone of what we've done: https://github.com/MyEtherWallet/docker-geth-lb.


Contact

On the Web • MyEtherWallet.comSign Message
Chrome Extension • MyEtherWallet CXEAL CX (anti-phishing)
Social: FacebookLinkedinMediumRedditSlackTwitter

Be safe & secure & always back up your keys.

MIT License Copyright © 2015-2017 MyEtherWallet LLC

myetherapi's People

Contributors

kvhnuke avatar tayvano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myetherapi's Issues

why I used web3.py connection node error

from web3 import Web3,HTTPProvider
from eth_utils import decode_hex,encode_hex
my_provider = HTTPProvider('https://api.myetherapi.com/eth')
w13 = Web3(my_provider)
addr = "0x520C03a35F3344C10F823C0c811B44DBa74Ba23B"
a = w13.eth.getBalance(addr)
print(a)

error:ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:720)

what happened?

web3 preflight options request blocked by Cloudflare

When trying to use the API in browser via web3.js, no call is being processed by myetherwallet.
After investigation, it turn out that the OPTIONS request made by the browser to check CORS support is not getting passed to the MyEtherWallet API endpoint, and is instead blocked by the Cloudflare server. Following is the OPTIONS request and the corresponding CloudFlare response:

Request:

OPTIONS /eth HTTP/1.1
Host: api.myetherapi.com
Connection: close
Access-Control-Request-Method: POST
Origin: null
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2837.0 Safari/537.36
Access-Control-Request-Headers: content-type
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4

Response:

HTTP/1.1 403 Forbidden
Server: CloudFront
Date: Tue, 05 Dec 2017 10:03:40 GMT
Content-Type: text/html
Content-Length: 555
Connection: close
X-Cache: Error from cloudfront
Via: 1.1 d7d3ef7b74c87e295676d270227068b9.cloudfront.net (CloudFront)
X-Amz-Cf-Id: DDvrcDeSkZnlXMvMnrbqXQmdh51Z5oKIsTFm0sWR9Ri8DlZ1YoeG3g==

<TITLE>ERROR: The request could not be satisfied</TITLE> <\h1>ERROR<\/h1> <\h2>The request could not be satisfied.<\/h2>
Request blocked.

Generated by cloudfront (CloudFront)
Request ID: DDvrcDeSkZnlXMvMnrbqXQmdh51Z5oKIsTFm0sWR9Ri8DlZ1YoeG3g==

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.