### GET Request Signed Data Example Source: https://docs.cryptapi.io/webhooks/verify-webhook-signature This example shows the format of data signed for a GET request, which includes the full URL with all query parameters. ```bash https://yoursite.com/webhook?uuid=dbfcb40e-5a6b-4305-9fa2-b0fbda6e3ff2&address_in=3PFoGK63cVVUWnd2vu7W1kM83NXUfvzMqM&txid_in=a2174ffd39289100709f2a07b129cdbba69df2e22e5be1830221dab1fd4e332c&value_coin=0.05&confirmations=3&pending=0 ``` -------------------------------- ### Install CryptAPI Python Library Source: https://docs.cryptapi.io/libraries/python Install the library using pip. Ensure you have Python 3.0 and Requests 2.20 or higher. ```shell pip install python-cryptapi ``` -------------------------------- ### Convert Price Response Example Source: https://docs.cryptapi.io/api/convert Example JSON response for a successful price conversion request. ```json { "status": "success", "value_coin": "0.0000088", "exchange_rate": "0.00000880022" } ``` -------------------------------- ### Create Payment with CryptAPI Node.js Library Source: https://docs.cryptapi.io/get-started/custom-payment-flow Utilize the official Node.js library for a simplified integration. This example shows how to instantiate the library and get a payment address. ```javascript // Using the official Node.js library const CryptAPI = require('@cryptapi/api'); const callbackUrl = 'https://yoursite.com/webhook'; const params = { order_id: orderId, }; const cryptapiParams = { post: 0, json: 0, pending: 1, multi_token: 0, convert: 1 }; const bb = new CryptAPI('btc', 'YOUR_WALLET_ADDRESS', callbackUrl, params, cryptapiParams); const address = await bb.getAddress(); // address.address_in ``` -------------------------------- ### POST Request Signed Data Example Source: https://docs.cryptapi.io/webhooks/verify-webhook-signature This example illustrates the data signed for a POST request, which is the raw request body. ```bash uuid=dbfcb40e-5a6b-4305-9fa2-b0fbda6e3ff2&address_in=3PFoGK63cVVUWnd2vu7W1kM83NXUfvzMqM&txid_in=a2174ffd39289100709f2a07b129cdbba69df2e22e5be1830221dab1fd4e332c&value_coin=0.05&confirmations=3&pending=0 ``` -------------------------------- ### API Response Example Source: https://docs.cryptapi.io/api/tickerqrcode This is an example of the JSON response you will receive, containing the status, base64-encoded QR code, and payment URI. ```json { "status": "success", "qr_code": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAABlBMVEX///8AAABVwtN+AAABsklEQVR4nO3WsQ3EIAwE0LnA/ld3MoQJc4K4v2ALzaKdg75vdv4qgQAEIAABCEAAAhCAAAQ@example", "payment_uri": "bitcoin:14PqCsA7KMgseZMPwg6mJy754MtQkrgszu?amount=0.1" } ``` -------------------------------- ### Convert Price Example Source: https://docs.cryptapi.io/api/convert Demonstrates how to convert 10 USD to BTC. Ensure you have the correct 'from' and 'to' currency tickers. ```bash curl -X GET "https://api.cryptapi.io/convert/?value=10&from=usd&to=btc" ``` -------------------------------- ### Webhook Payload Example Source: https://docs.cryptapi.io/webhooks/custom-payment-flow-webhooks This is an example of a typical webhook payload received for a confirmed payment. ```json { "uuid": "dbfcb40e-5a6b-4305-9fa2-b0fbda6e3ff2", "address_in": "3PFoGK63cVVUWnd2vu7W1kM83NXUfvzMqM", "address_out": "1H6ZZpRmMnrw8ytepV3BYwMjYYnEkWDqVP", "txid_in": "a2174ffd39289100709f2a07b129cdbba69df2e22e5be1830221dab1fd4e332c", "txid_out": "b3285ggd50390211820g3b18b240decbba70eg3f33f6cf2941332eab2ge5f443d", "confirmations": 3, "value_coin": 0.05, "value_coin_convert": "{\"USD\": \"3.20\", \"EUR\": \"3.05\", \"GBP\": \"2.62\", \"CAD\": \"4.16\"}", "value_forwarded_coin": 0.0495, "value_forwarded_coin_convert": "{\"USD\": \"3.17\", \"EUR\": \"3.01\", \"GBP\": \"2.59\", \"CAD\": \"4.12\"}", "fee_coin": 0.0005, "coin": "btc", "price": 64000, "pending": 0 } ``` -------------------------------- ### Install CryptAPI PHP Library Source: https://docs.cryptapi.io/libraries/php Install the library using Composer. Ensure your PHP version is 7.2.0 or higher and that the curl and json extensions are enabled. ```shell composer require cryptapi/php-cryptapi ``` -------------------------------- ### Import CryptAPIHelper in Python Source: https://docs.cryptapi.io/libraries/python Import the main helper class to start using the library's functionalities. ```python from cryptapi import CryptAPIHelper ``` -------------------------------- ### Response Sample for Checking Logs Source: https://docs.cryptapi.io/libraries/php Example of the object structure returned when checking the logs of a request. ```PHP object(stdClass) { ["status"]=>string(7) "success" ["callback_url"]=>string(37) "https://example.com?payment_id=123112" ["address_in"]=>string(42) "0x0E945b1554c8029A6B9bE1F7A24ae75d2F44d8DB" ["address_out"]=>string(42) "0xA6B78B56ee062185E405a1DDDD18cE8fcBC4395d" ["notify_pending"]=>bool(true) ["notify_confirmations"]=>int(1) ["priority"]=>string(7) "default" ["callbacks"]=>array(0) { } } ``` -------------------------------- ### Response Sample for Generating Address Source: https://docs.cryptapi.io/libraries/php Example of the JSON response received after successfully generating a payment address. ```text { "address_in": "14PqCsA7KMgseZMPwg6mJy754MtQkrgszu", "address_out": "1H6ZZpRmMnrw8ytepV3BYwMjYYnEkWDqVP (single address) {1H6ZZpRmMnrw8ytepV3BYwMjYYnEkWDqVP: 0.70, 1PE5U4temq1rFzseHHGE2L8smwHCyRbkx3: 0.30} (multiple addresses) ", "callback_url": "https://example.com/invoice/1234?payment_id=5678", "priority": "default", "minimum_transaction_coin": 0.008, "status": "success" } ``` -------------------------------- ### Getting supported coins Source: https://docs.cryptapi.io/libraries/php Retrieve a list of all cryptocurrencies and tokens supported by the CryptAPI service. ```APIDOC ## Getting supported coins ### Description Retrieve a list of all cryptocurrencies and tokens supported by the CryptAPI service. ### Method `CryptAPI\CryptAPI::get_supported_coins()` ### Parameters None ### Request Example ```php ``` ### Response #### Success Response Response is an array with all supported coins. #### Response Example ```json [ "btc", "bch", "ltc", "doge", "bep20_1inch", "bep20_ada" // ...remaining supported cryptocurrencies or tokens ] ``` ``` -------------------------------- ### Enable Magento Module Source: https://docs.cryptapi.io/get-started/magento Commands to enable the Blockbee module and upgrade Magento. Ensure you have the correct path to your Magento installation. ```bash php bin/magento module:enable Blockbee_Blockbee php bin/magento setup:upgrade php bin/magento setup:di:compile ``` -------------------------------- ### Check Payment Logs using JavaScript (fetch) Source: https://docs.cryptapi.io/get-started/custom-payment-flow Example of how to use the fetch API in JavaScript to call the CryptAPI logs endpoint and process payment statuses. ```javascript const checkPaymentStatus = async (callbackUrl) => { const encodedCallback = encodeURIComponent(callbackUrl); const params = new URLSearchParams({ callback: encodedCallback }); const response = await fetch(`https://api.cryptapi.io/btc/logs/?${params}`); const data = await response.json(); if (data.status !== 'success') { console.error('API request failed:', data); return { error: 'API request failed' }; } if (data.callbacks && data.callbacks.length > 0) { const processedTransactions = []; for (const callback of data.callbacks) { const confirmedLog = callback.logs.find(log => log.pending === 0); const isConfirmed = confirmedLog !== undefined; processedTransactions.push({ uuid: callback.uuid || `${callback.txid_in}-${callback.value_coin}`, txid: callback.txid_in, amount: callback.value_coin, confirmations: callback.confirmations, status: callback.result, isConfirmed: isConfirmed, lastUpdate: callback.last_update }); } return { transactions: processedTransactions }; } return { transactions: [] }; }; // Example usage: // processPayments('YOUR_CALLBACK_URL'); ``` -------------------------------- ### Get Supported Coins (PHP) Source: https://docs.cryptapi.io/libraries/php Retrieves a list of all cryptocurrencies and tokens supported by the CryptAPI service. ```php ``` -------------------------------- ### Get Service and Coin Information (PHP) Source: https://docs.cryptapi.io/libraries/php Retrieves general service information or details for a specific cryptocurrency. The optional second parameter includes additional coin details. ```php ``` -------------------------------- ### Get Supported Coins with Python Source: https://docs.cryptapi.io/libraries/python Retrieve a list of all coins supported by CryptAPI. This static method returns an object containing details for each supported coin. ```python from cryptapi import CryptAPIHelper supportedCoins = CryptAPIHelper.get_supported_coins() ``` -------------------------------- ### CryptAPI Plugin File Naming Convention Source: https://docs.cryptapi.io/get-started/opencart The expected filename format for the CryptAPI OpenCart extension zip file. This is important for correct installation. ```text cryptapi.ocmod.zip ``` -------------------------------- ### Generate QR Code with PHP Source: https://docs.cryptapi.io/libraries/php Use this snippet to generate a QR code for a specific cryptocurrency. Ensure the CryptAPI library is installed via Composer. The `$value` and `$size` parameters are optional. ```php 12345 ]; $cryptapi_params = [ 'pending' => 1 ]; $ca = new CryptAPI\CryptAPI($coin, $my_address, $callback_url, $parameters, $cryptapi_params); $qrcode = $ca->get_qrcode($value, $size); ``` -------------------------------- ### Getting service/coin information Source: https://docs.cryptapi.io/libraries/php Retrieve general service information or specific details about a cryptocurrency. The optional second parameter allows for inclusion of additional coin-specific details. ```APIDOC ## Getting service/coin information ### Description Retrieve general service information or specific details about a cryptocurrency. The optional second parameter allows for inclusion of additional coin-specific details. ### Method `CryptAPI\CryptAPI::get_info(string $coin = null, bool $include_details = false)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```php ``` ### Response #### Success Response Response contains service information and coin-specific details when a coin parameter is provided. #### Response Example ```json { "status": "success", "data": { "general_info": { ... }, "coin_info": { ... } // Only if $coin and $include_details are provided } } ``` ``` -------------------------------- ### Currency Conversion Response Sample (PHP) Source: https://docs.cryptapi.io/libraries/php A sample response object detailing the converted value in the target cryptocurrency and the exchange rate used. ```php object(stdClass) { ["status"]=>string(7) "success" ["value_coin"]=>string(1) "3" ["exchange_rate"]=>string(8) "0.999467" } ``` -------------------------------- ### Get Specific Coin Information in Python Source: https://docs.cryptapi.io/libraries/python Retrieve detailed information about a specific cryptocurrency by its identifier. ```python from cryptapi import CryptAPIHelper # Get specific coin information coin_info = CryptAPIHelper.get_info('btc') ``` -------------------------------- ### Supported Coins Response Sample (PHP) Source: https://docs.cryptapi.io/libraries/php A sample array containing the ticker symbols for all supported cryptocurrencies and tokens. ```php array(65) { [0]=>string(3) "btc" [1]=>string(3) "bch" [2]=>string(3) "ltc" [3]=>string(4) "doge" [4]=>string(11) "bep20_1inch" [5]=>string(9) "bep20_ada" # ...remaining supported cryptocurrencies or tokens } ``` -------------------------------- ### OpenCart Version Requirements Source: https://docs.cryptapi.io/get-started/opencart Specifies the OpenCart versions compatible with the CryptAPI plugin. Ensure your OpenCart installation meets these requirements before proceeding. ```text OpenCart >= 4.0 OpenCart >= 3.0 ``` -------------------------------- ### Generate QR Code for Payment in Python Source: https://docs.cryptapi.io/libraries/python Create a QR code for a payment, optionally including the value and specifying the size. Returns base64 encoded image data and payment URI. ```python from cryptapi import CryptAPIHelper ca = CryptAPIHelper(coin, own_address, callback_url, parameters, ca_params) qr_code = ca.get_qrcode(value, size) ``` -------------------------------- ### Get Ticker Information Source: https://docs.cryptapi.io/api/tickerinfo Fetches detailed information for a specified cryptocurrency ticker. The `prices` parameter can be included to retrieve current market prices. ```APIDOC ## GET /info/ ### Description This method allows you to get information for a specific `ticker`. ### Method GET ### Endpoint https://api.cryptapi.io/{ticker}/info/ ### Parameters #### Path Parameters - **ticker** (string) - Required - The `ticker` parameter in this API request refers to the unique identifier of the cryptocurrency to which you are making the request. It is included in the URL of the request and helps to specify the exact cryptocurrency that you want to retrieve data for. The ticker is typically a short code that uniquely identifies the cryptocurrency, or the token and it's network/blockchain. For example, `btc` is the ticker for Bitcoin, and `trc20/usdt` is the ticker for USDT over TRC-20. Example: `btc` #### Query Parameters - **prices** (integer) - Optional - If you want to receive also the coin prices, set to `1` to enable the prices. Example: `1` ### Returns Returns information about the specified `ticker`. #### Success Response (200) - **coin** (string) - Human readable name of the currency. - **logo** (string) - The cryptocurrency logo. Useful to display it to your users. - **ticker** (string) - Ticker of the currency. - **minimum_transaction** (integer) - Deprecated. The minimum transaction value for this currency is expressed as an integer to facilitate precision value calculations. - **minimum_transaction_coin** (string) - Minimum transaction value for this currency. - **minimum_fee** (integer) - Deprecated. Minimum fee value expressed as an integer to facilitate precision value calculations. - **minimum_fee_coin** (string) - The minimum fee value. - **fee_percent** (number) - Fee percentage for this currency. - **network_fee_estimation** (string) - Estimation of the blockchain fee for this cryptocurrency/token. Note: This value is informative. To obtain a blockchain fee estimation use the estimate endpoint instead. - **status** (string) - Status of the request. Should be `success` if the request didn't fail. - **prices** (object) - Object with the exchange rate of this currency in various FIAT currencies. Keys are the names of the FIAT currencies, values are the estimated costs. Updated every 5 minutes from CoinMarketCap. - **prices_updated** (string) - Datetime of the last price update. ``` -------------------------------- ### Fetch Ticker Info and Convert Currency with Fetch API Source: https://docs.cryptapi.io/get-started/custom-payment-flow Demonstrates how to fetch cryptocurrency ticker information and convert fiat amounts to cryptocurrency using the Fetch API. This is useful for real-time pricing in e-commerce. ```javascript // Get ticker information and minimums const getTickerInfo = async () => { const response = await fetch('https://api.cryptapi.io/btc/info/'); const data = await response.json(); return data; }; // Convert USD to BTC for ecommerce payments const convertAmount = async (usdAmount) => { const params = new URLSearchParams({ value: usdAmount, from: 'USD' }); const response = await fetch(`https://api.cryptapi.io/btc/convert/?${params}`); const data = await response.json(); return data.value_coin; // BTC amount }; ``` -------------------------------- ### Transaction Fee Estimation Response Sample (PHP) Source: https://docs.cryptapi.io/libraries/php A sample response object showing the estimated transaction cost in cryptocurrency and various fiat currencies. ```php object(stdClass) { ["status"]=>string(7) "success" ["estimated_cost"]=>string(11) "0.000496344" ["estimated_cost_currency"] =>object(stdClass) { ["AED"]=>string(4) "1.12" ["AUD"]=>string(4) "0.46" ["BGN"]=>string(4) "0.55" # ... remaining FIAT currencies } } ``` -------------------------------- ### Local Webhook Testing with ngrok Source: https://docs.cryptapi.io/get-started/custom-payment-flow Use ngrok to expose your local server to the internet for testing webhook integrations. This allows CryptAPI to send real-time notifications to your local application. ```bash # Use ngrok for local webhook testing ngrok http 3000 # Your test webhook URL: https://abc123.ngrok.io/webhook ``` -------------------------------- ### Getting Supported Coins Source: https://docs.cryptapi.io/libraries/python Retrieve a list of all cryptocurrencies supported by CryptAPI. The response is an object where each key is a coin ticker and the value contains details about the coin. ```APIDOC ## Getting Supported Coins ### Description Retrieve a list of all cryptocurrencies supported by CryptAPI. The response is an object where each key is a coin ticker and the value contains details about the coin. ### Method `CryptAPIHelper.get_supported_coins()` ### Parameters None ### Request Example ```python from cryptapi import CryptAPIHelper supportedCoins = CryptAPIHelper.get_supported_coins() ``` ### Response #### Success Response (200) - **coin** (string) - The full name of the coin. - **logo** (string) - URL to the coin's logo. - **ticker** (string) - The ticker symbol for the coin. - **minimum_transaction** (integer) - The minimum transaction amount in satoshis or equivalent smallest unit. - **minimum_transaction_coin** (string) - The minimum transaction amount in the coin's main unit. - **minimum_fee** (integer) - The minimum fee in satoshis or equivalent smallest unit. - **minimum_fee_coin** (string) - The minimum fee in the coin's main unit. - **fee_percent** (string) - The percentage fee for transactions. - **network_fee_estimation** (string) - An estimated network fee. #### Response Example ```json { "btc": { "coin": "Bitcoin", "logo": "https://api.cryptapi.io/media/token_logos/btc.png", "ticker": "btc", "minimum_transaction": 8000, "minimum_transaction_coin": "0.00008000", "minimum_fee": 546, "minimum_fee_coin": "0.00000546", "fee_percent": "1.000", "network_fee_estimation": "0.00002518" }, "bch": { "coin": "Bitcoin Cash", "logo": "https://api.cryptapi.io/media/token_logos/bch.png", "ticker": "bch", "minimum_transaction": 50000, "minimum_transaction_coin": "0.00050000", "minimum_fee": 546, "minimum_fee_coin": "0.00000546", "fee_percent": "1.000", "network_fee_estimation": "0.00000305" } } ``` ``` -------------------------------- ### Check Payment Logs using Node.js Library Source: https://docs.cryptapi.io/get-started/custom-payment-flow Demonstrates how to check payment logs using the official CryptAPI Node.js library. ```javascript const CryptAPI = require('@cryptapi/api'); // Assuming callbackUrl, params, and cryptapiParams are defined elsewhere // const callbackUrl = 'YOUR_CALLBACK_URL'; // const params = {}; // Your parameters // const cryptapiParams = {}; // CryptAPI specific parameters // const bb = new CryptAPI('btc', 'YOUR_WALLET_ADDRESS', callbackUrl, params, cryptapiParams); // const logs = await bb.checkLogs(); // // logs.callbacks contains the payment history ``` -------------------------------- ### Get Coin Information Source: https://docs.cryptapi.io/api/info This endpoint provides detailed information about various cryptocurrencies, including their logos, tickers, minimum transaction amounts, fees, and current prices. ```APIDOC ## GET /info ### Description Retrieves comprehensive information about supported cryptocurrencies. ### Endpoint /info ### Response #### Success Response (200) - **btc** (object) - Bitcoin information. - **coin** (string) - Name of the coin. - **logo** (string) - URL of the coin's logo. - **ticker** (string) - Ticker symbol for the coin. - **minimum_transaction** (integer) - Minimum transaction amount in base units. - **minimum_transaction_coin** (string) - Minimum transaction amount in coin units. - **minimum_fee** (integer) - Minimum fee in base units. - **minimum_fee_coin** (string) - Minimum fee in coin units. - **fee_percent** (string) - Fee percentage. - **network_fee_estimation** (string) - Estimated network fee. - **prices** (object) - Current prices in different currencies. - **USD** (string) - Price in USD. - **EUR** (string) - Price in EUR. - **prices_updated** (string) - Timestamp when prices were last updated. - **avax-c** (object) - Avalanche (C-Chain) information. - **avax** (object) - Specific AVAX details. - **coin** (string) - Name of the coin. - **logo** (string) - URL of the coin's logo. - **ticker** (string) - Ticker symbol for the coin. - **minimum_transaction** (integer) - Minimum transaction amount in base units. - **minimum_transaction_coin** (string) - Minimum transaction amount in coin units. - **minimum_fee** (integer) - Minimum fee in base units. - **minimum_fee_coin** (string) - Minimum fee in coin units. - **fee_percent** (string) - Fee percentage. - **network_fee_estimation** (string) - Estimated network fee. - **prices** (object) - Current prices in different currencies. - **USD** (string) - Price in USD. - **EUR** (string) - Price in EUR. - **prices_updated** (string) - Timestamp when prices were last updated. - **fee_tiers** (array) - List of fee tiers. - **minimum** (string) - Minimum amount for the fee tier. - **fee** (string) - Fee percentage for the tier. ### Response Example ```json { "btc": { "coin": "Bitcoin", "logo": "https://api.cryptapi.io/media/token_logos/btc.png", "ticker": "btc", "minimum_transaction": 8000, "minimum_transaction_coin": "0.00008000", "minimum_fee": 546, "minimum_fee_coin": "0.00000546", "fee_percent": "1.000", "network_fee_estimation": "0.00000263", "prices": { "USD": "113687.2123324492", "EUR": "97303.8618504321" }, "prices_updated": "2025-07-10T17:35:17.529Z" }, "avax-c": { "avax": { "coin": "AVAX", "logo": "https://api.cryptapi.io/media/token_logos/avax_avax.png", "ticker": "avax", "minimum_transaction": 10000000000000000, "minimum_transaction_coin": "0.01000000", "minimum_fee": 0, "minimum_fee_coin": "0E-8", "fee_percent": "1.000", "network_fee_estimation": "0.0002641508790732", "prices": { "USD": "19.8455617107", "EUR": "16.9856376581" }, "prices_updated": "2025-07-10T17:35:17.529Z" } }, "fee_tiers": [ { "minimum": "0.00", "fee": "1.000" }, { "minimum": "10000.00", "fee": "0.900" } ] } ``` ``` -------------------------------- ### Ticker Creation Parameters Source: https://docs.cryptapi.io/api/tickercreate This section details the parameters available when creating a new ticker. These parameters allow for customization of transaction priority, multi-token payment acceptance, and fiat conversion. ```APIDOC ## Ticker Creation Parameters ### `priority` (string) Allows you to set the priority with which funds should be forwarded to the provided `address`. It reflects the amount of fees paid to the blockchain network and can affect the speed of transaction confirmation. **Notes:** * Only supported when using Bitcoin, Ethereum/ERC-20 and Litecoin. Priorities are different per each supported blockchain. * You can find the priorities to use with this endpoint, per blockchain, in our knowledge base. Example: `default` ### `multi_token` (integer) Allows customers to pay with any token supported by CryptAPI API, even if the token is different from what the user initially specified. However, you should ensure that your Wallet supports the tokens you expect customers to pay with and that your system can handle price conversions. For example, if a customer wishes to receive 1000 USDT (or equivalent) and a client sends 1000 TRX, the system should be able to handle that scenario. **Notes:** * Make sure the wallet you're using supports all the tokens supported by CryptAPI before enabling this parameter. * **If you are using your favorite exchange's deposit address to receive the funds, it's advised to leave this parameter disabled** , since sometimes the deposit addresses may differ between blockchains and tokens. * Disabled by default, use `multi_token=1` to enable it. * Available only for TRC20 and all supported EVM-based blockchains (eg. ERC20, BEP20, POLYGON). * If disabled and the customer send a different token from the initially specified, CryptAPI API will ignore these funds. * If enabled on unsupported blockchains, **API won't throw an error**. Instead it just ignores it. * For more information about this parameter, check our knowledge base. Example: `1` ### `convert` (integer) If enabled, returns the converted value converted to FIAT in the callback, with the parameters `value_coin_convert` and `value_forwared_coin_convert`. **Notes:** * Disabled by default, use `convert=1` to enable it. * The value of the fields are json-encoded. Example: `1` ``` -------------------------------- ### Get CryptAPI Service Information Source: https://docs.cryptapi.io/api/info Retrieves comprehensive information about the CryptAPI service, including supported cryptocurrencies, blockchains, tokens, and fee structures. Optionally, it can include current cryptocurrency prices. ```APIDOC ## GET https://api.cryptapi.io/info/ ### Description This endpoint provides information about the CryptAPI service, including supported blockchains, cryptocurrencies, and tokens. It can also return current coin prices if requested. ### Method GET ### Endpoint https://api.cryptapi.io/info/ ### Parameters #### Query Parameters - **prices** (integer) - Optional - If set to `1`, the response will include coin prices. Example: `1` ### Returns Returns a dictionary containing details for cryptocurrencies and blockchains. A `fee_tiers` key is also present at the top level. #### Success Response (200) - **btc** (object) - Details about a specific cryptocurrency (e.g., Bitcoin). - **coin** (string) - Human-readable name of the currency. - **logo** (string) - URL of the cryptocurrency logo. - **ticker** (string) - Ticker symbol of the currency. - **minimum_transaction_coin** (string) - Minimum transaction value for this currency. - **minimum_fee_coin** (string) - Minimum fee value for this currency. - **fee_percent** (string) - Fee percentage for this currency. - **network_fee_estimation** (string) - Estimated blockchain fee for this cryptocurrency/token. - **prices** (object) - Exchange rates in various FIAT currencies. - **prices_updated** (string) - Datetime of the last price update. - **avax-c** (object) - Details for a specific blockchain (e.g., Avalanche C-Chain). - **avax** (object) - Details about a specific token on the blockchain. - **fee_tiers** (object[]) - An array of objects detailing the fee structure based on volume. - **minimum** (string) - The minimum USD volume for this fee tier. - **fee** (string) - The fee percentage for this tier. #### Response Example ```json { "btc": { "coin": "Bitcoin", "logo": "https://cryptapi.io/media/coins/btc.png", "ticker": "btc", "minimum_transaction_coin": "0.000008", "minimum_fee_coin": "0.00000546", "fee_percent": "0.0000", "network_fee_estimation": "0.00000546", "prices": { "USD": 30000.50, "EUR": 28000.75 }, "prices_updated": "2023-10-27T10:00:00Z" }, "avax-c": { "avax": { "coin": "Avalanche", "logo": "https://cryptapi.io/media/coins/avax.png", "ticker": "avax", "minimum_transaction_coin": "0.00000001", "minimum_fee_coin": "0.00000001", "fee_percent": "0.0000", "network_fee_estimation": "0.00000001", "prices": { "USD": 10.25, "EUR": 9.50 }, "prices_updated": "2023-10-27T10:00:00Z" } }, "fee_tiers": [ { "minimum": "0", "fee": "0.0000" }, { "minimum": "10000", "fee": "0.0000" } ] } ``` ``` -------------------------------- ### Generate QR Code Source: https://docs.cryptapi.io/libraries/php This snippet demonstrates how to generate a QR code for a cryptocurrency payment using the CryptAPI PHP library. It includes optional parameters for value and size. ```APIDOC ## Generate QR Code ### Description Generates a QR code for a cryptocurrency payment. ### Method `get_qrcode($value, $size)` ### Parameters #### Method Parameters - **$value** (mixed) - Optional - The value to request from the user, in the main coin (e.g., BTC, ETH). Pass `false` to not include a value. - **$size** (integer) - Optional - The size of the QR Code image in pixels. Pass `false` to use the default size of 512. ### Response #### Success Response Returns an object with the following properties: - **qr_code** (string) - Base64 encoded image data of the QR code. - **payment_uri** (string) - The value encoded in the QR code, suitable for payment URIs. ``` -------------------------------- ### Processing Callback Notifications Source: https://docs.cryptapi.io/libraries/php This static method processes incoming callback data from CryptAPI, typically received via GET or POST requests. It helps parse the payment details into a usable array. ```APIDOC ## Getting notified when the user pays ### Description Processes incoming callback data from CryptAPI to extract payment details. ### Method `CryptAPI\CryptAPI::process_callback(array $data)` ### Parameters * `$data` (array) - The data received from the callback (e.g., `$_GET` or `$_POST`). ### Return Value An array containing payment details such as `address_in`, `address_out`, `txid_in`, `value`, `coin`, and any custom parameters provided during address generation. ```