Introduction

Find out how to integrate explorer.cash into your app, website or store to accept cryptocurrency directly to your wallet.

Requirements

First of all, you need to subscribe to one of our crypto packs. When subscribing, you must enter the URL of the website that will be used to accept crypto currencies.

API URL in production mode :

https://api.explorer.cash

API URL in test mode :

https://api.explorer.cash/testing

All responses are returned in JSON format.

Payment request

To check the payment of a crypto transaction, you need to submit a payment request.

Service URL :

POST https://api.explorer.cash/paymentrequests

List of supported parameters :
ParameterMandatoryDescription
callback_urlURL of your application that will be called during payment
payment_referenceYour payment reference (ex: Order ID)
timeoutThe time window for the payment in minutes
confirmationsNumber of confirmations to consider a transaction valid
unitUnit of the crypto currency (ex: BTC, BCH, USDT, USDC, ...)
addressAddress of your wallet for the crypto currency used
address_tagTag for crypto currencies supporting this feature (ex: XRP)
amountAmount of the payment in the crypto defined in "unit"
conversion_rateConversion rate used

This service returns a payment ID :

{
"payment_id": "0wyQBvivK1shkoBLctlvM5zQnKGxcgvOIBKVgtoJFoo="
}

Payment validation

When the payment is detected in the blockchain linked to the cryptocurrency used, a payment notification is sent to the URL you specified in the payment request (callback_url parameter) :

{
"payment_id": "0wyQBvivK1shkoBLctlvM5zQnKGxcgvOIBKVgtoJFoo=",
"payment_reference": 3560,
"tx_hash": "aba3c7c17634e2e9708fb2c38adab78d119885d7719e46ace762032465a64fbd",
"unit": "BTC"
"address": "1EfARsRNXC3DG1ZF1PesbyVNLE1jEHcKDi",
"amount": 0.06538985,
"amount_left": 0,
"status": "WAITING"
...
}

List of data sent in JSON format :

FieldDescription
payment_id

Payment ID. Use this field to verify that it matches the one you received when creating the payment request.

payment_referenceYour payment reference (ex: Order ID)
tx_hashThe transaction ID on the blockchain
amount_leftAmount remaining to be paid
status

Payment status: PENDING, WAITING or PAID

PENDING: Payment has been made but the customer has not paid the full amount. The remaining amount is available in the amount_left field. WAITING: Payment has been made in full. The payment will be validated as soon as the number of confirmations entered in the payment request is reached. PAID: Payment is confirmed.

Please note that the other fields provided when creating the payment request are also injected into the data sent such as unit, address, conversion_rate, ...

Exchange rate

You can subscribe to this service, to receive the exchange rate of crypto currencies in your currency every 5 minutes. All world currencies are supported.

To use this service, you must subscribe to the package: Pro Plus.

Service URL :

POST https://api.explorer.cash/rates

List of supported parameters :
ParameterMandatoryDescription
callback_urlURL of your application that will be called when updating exchange rates
currencyYour currency (ex: USD, EUR, ...).

This service returns the exchange rate of crypto currencies in your currency :

{
"BTC": 9315.68,
"ETH": 270.42,
"XRP": 0.207253,
"USDT": 0.850194,
"BCH": 241.9,
"ADA": 0.11763,
"BSV": 179.12
....
"BTT": 0.00032235,
"ALEND": 0.294445
}

Libraries

Find below our useful libraries to implement our Blockchain payment API on your own projects :

PHP : explorer.cash API for PHP

Top