Bitcoin Forum
November 22, 2017, 02:12:15 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: MAAAPI - Matt's Alternative AntPool API  (Read 1682 times)
matt4054
Legendary
*
Offline Offline

Activity: 1400


BitcoinQueue.com


View Profile WWW
December 31, 2015, 08:41:37 AM
 #1

MAAAPI
Matt's Alternative AntPool API

Info and usage

MAAAPI is an unofficial, alternative API for AntPool. It was created because the official API is currently unusable as a REST API, as it was intended. MAAAPI can be used instead, it is entirely compatible with the official API implementation and actually only acts as a proxy through CloudFlare attack mode filters.

Go to the website to register your API key and use MAAAPI

2016-01-08: Public AntPool block data API has been added!

How can I use it?

First, you need to register your API key on the website.

Then, as the base URL of your API calls simply use http://maaapi.mooo.com/api/... instead of https://antpool.com/api/...

What are the limits?

The default limit is 10 requests per 10 minutes. It is deliberately low because AntPool enforces a per-address policy of 600 requests per 10 minutes on its API backend. Since all requests from MAAAPI to AntPool are channeled through the same address, the limit needs to be low to allow many people to use it at the same time.

If you need a higher limit, please contact support and consider a donation.

Is it safe?

Yes, your API secret will stay secret. Of course, the traffic going through MAAAPI could be sniffed or logged, but there's not much harm that could be done with the API key. It's actually more of a privacy feature than a security feature.

HTTPS?

Yes, but only self-signed. If you would like to help paying for a trusted certificate, please consider a donation.

IPv6?

Yes, MAAAPI is IPv6 enabled Smiley

How do I use the AntPool API anyway?

Please refer to the official API guide on AntPool

How can I contact MAAAPI?

The easiest way is to send an e-mail to the contact address on the website or just leave a message here.

Donations

I am very grateful to those who will be considering donations to keep this service alive.

Donations can be sent to 1cYL4oUVD6Pfu4VRhs6veLoBpVMnL51Gi

Thanks a lot for your support!

Go to the website to register your API key and use MAAAPI
1511316735
Hero Member
*
Offline Offline

Posts: 1511316735

View Profile Personal Message (Offline)

Ignore
1511316735
Reply with quote  #2

1511316735
Report to moderator
1511316735
Hero Member
*
Offline Offline

Posts: 1511316735

View Profile Personal Message (Offline)

Ignore
1511316735
Reply with quote  #2

1511316735
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511316735
Hero Member
*
Offline Offline

Posts: 1511316735

View Profile Personal Message (Offline)

Ignore
1511316735
Reply with quote  #2

1511316735
Report to moderator
1511316735
Hero Member
*
Offline Offline

Posts: 1511316735

View Profile Personal Message (Offline)

Ignore
1511316735
Reply with quote  #2

1511316735
Report to moderator
matt4054
Legendary
*
Offline Offline

Activity: 1400


BitcoinQueue.com


View Profile WWW
January 01, 2016, 04:46:59 PM
 #2

Because many people are using several calls per iteration (workers, account, hashrate...), the 10 requests / 10 minutes appeared a bit too low.

Therefore, the new limit is now 20 requests / 10 minutes. Happy new year Smiley
trendax
Full Member
***
Offline Offline

Activity: 135


View Profile WWW
January 07, 2016, 10:36:25 AM
 #3

...
only acts as a proxy through CloudFlare attack mode filters.
...

@matt4054

This reads like a good project and I've gleamed over this thread a few times but I feel like I'm missing something.
Are you indicating that the proxy ip is whitelisted bypassing the CloudFlare filtering for Antpool or did you mean the proxy has a kind of CloudFlare filtering and therefore forwards filtered traffic?
If you're the later, how does that add benefit when the end point will still be to busy to answer calls if under attack?


matt4054
Legendary
*
Offline Offline

Activity: 1400


BitcoinQueue.com


View Profile WWW
January 07, 2016, 10:53:47 AM
 #4

Actually, the problem is not that the official AntPool API is overloaded, but it can no longer be used a side effect of the CloudFlare DDoS protection that they switched on about 4 weeks ago.

Since then, it is impossible to access the API using a regular REST HTTP client like curl, because any request to the API will result in a 503 Service Temporarily Unavailable response code by the CloudFlare filter. In a regular browser, some JavaScript code would execute and then redirect to the requested page, but it doesn't work for the API.

In order to get through the CloudFlare filter, it is necessary to use a headless browser to evaluate and solve the CloudFlare challenge, then get the clearance cookie, and send it with the request. It's exactly what the proxy (MAAAPI) does.

This way, it's not necessary to modify existing clients to add a complicated system to get through the CloudFlare filter as described above.
trendax
Full Member
***
Offline Offline

Activity: 135


View Profile WWW
January 07, 2016, 11:18:28 AM
 #5


@matt4054

Ahh now I understand, very clever. Thanks for clarifying that and keep up the good work.


matt4054
Legendary
*
Offline Offline

Activity: 1400


BitcoinQueue.com


View Profile WWW
January 08, 2016, 02:50:20 PM
 #6

Public AntPool block data API has been added!

The current official AntPool API does not provide any block history, although it is publicly available on the web from the official AntPool website. From now on, MAAPI provides a JSON REST API to this data to the public, though its own API.

Click here for more information
trendax
Full Member
***
Offline Offline

Activity: 135


View Profile WWW
January 10, 2016, 08:09:04 AM
 #7


@matt4054

The block history extension is cool, a nice bonus complementing the official api commands already supported.



Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!