Author

Topic: MAAAPI - Matt's Alternative AntPool API (Read 1894 times)

full member
Activity: 124
Merit: 100
January 10, 2016, 03:09:04 AM
#7

@matt4054

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


legendary
Activity: 1946
Merit: 1035
January 08, 2016, 09:50:20 AM
#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
full member
Activity: 124
Merit: 100
January 07, 2016, 06:18:28 AM
#5

@matt4054

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

legendary
Activity: 1946
Merit: 1035
January 07, 2016, 05: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.
full member
Activity: 124
Merit: 100
January 07, 2016, 05: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?

legendary
Activity: 1946
Merit: 1035
January 01, 2016, 11:46:59 AM
#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
legendary
Activity: 1946
Merit: 1035
December 31, 2015, 03: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
Jump to: