get exchange currency
This function is needed to get the crypto to fiat exchange rate
GET https://alpacanode.xyz/api/currency/?course=btc_eur,btc_uah,btc_gas,ltc_usd&apiKey=*****
Example response
{
"data": {
"btc_eur": 61659.14,
"btc_uah": 2579475.88,
"btc_gas": {
"error": "pair not supported"
},
"ltc_usd": 77.49
},
"context": {
"cash_date": "12.06.2024",
"cash_time": "08:50:01"
}
}
BTC get transactions by address
GET https://alpacanode.xyz/api/btc/?type=get_transactions_by_address&address=bc1qhz5urjj08577y2tvr6rxp40z00dxlaz5k4zcc6&apiKey=*****
Example response
{
"data": [
{
"hash": "12ac2c65d2d597aced4bc9886d08dec43e6900e0a7e10894af1ebf3c1926339a",
"block_id": 847605,
"confirmations": 1,
"time": "2024-06-12 09:06:47",
"balance_change": 4008373,
"status": "confirmed",
"amount": 0.04008373
}
],
"context": {
"status": "success",
"cash_date": "12.06.2024",
"cash_time": "09:28:38"
}
}
BTC get transaction by hash
GET https://alpacanode.xyz/api/btc/?type=get_transaction_by_hash&hash=dd3b81dc9f5832600dd97a3d4cfbffa24af14dc3eb38107db5ff70de612f1dd6&apiKey=*****
Example response
{
"data": {
"transaction": {
"block_id": 775573,
"hash": "dd3b81dc9f5832600dd97a3d4cfbffa24af14dc3eb38107db5ff70de612f1dd6",
"status": "confirmed",
"confirmations": 72033,
"date": "2023-02-08",
"time": "2023-02-08 12:03:29"
},
"inputs": [
{
"value": 28640,
"value_usd": 4.892451,
"recipient": "bc1qsn9m3k442wu6tdtgdf47hlyj0nrunrhfxn6nmq"
}
],
"outputs": [
{
"value": 20000,
"value_usd": 4.6534,
"recipient": "3KAEUgGYEsQ5Bb9RyRpfnkkeK2TFUdk5gn"
},
{
"value": 5928,
"value_usd": 1.3792678,
"recipient": "bc1qsn9m3k442wu6tdtgdf47hlyj0nrunrhfxn6nmq"
}
]
},
"context": {
"status": "success",
"cash_date": "12.06.2024",
"cash_time": "09:30:24"
}
}
ETH get transactions by address
GET https://alpacanode.xyz/api/eth/?type=get_transactions_by_address&address=0x9674fa8450C84764e53A2a44A768299c520A5DC7&apiKey=*****
Example response
{
"data": [
{
"hash": "0x9153936a22f6ca7ce05508f8ebdb21edf24119675ee14c540edeaaca999ad908",
"block_id": 19645333,
"confirmations": 429540,
"time": "2024-04-13 08:01:47",
"balance_change": 0,
"status": "confirmed",
"amount": 0
},
{
"hash": "0x86fcb50f0b1df7711953c40810677d4923b4aa5d289660160bd6a4912b42a8fd",
"block_id": 19645182,
"confirmations": 429691,
"time": "2024-04-13 07:31:23",
"balance_change": 40000000000000000,
"status": "confirmed",
"amount": 0.04
}
],
"context": {
"status": "success",
"cash_date": "12.06.2024",
"cash_time": "09:32:36"
}
}
ETH get transaction by hash
GET https://alpacanode.xyz/api/eth/?type=get_transaction_by_hash&hash=0x34adb212f5cc448882350a7f5d4d6a2177e51bef6aa04c2b0fb9ed7bf9c3757c&apiKey=*****
Example response
{
"data": {
"transaction": {
"block_id": 19426804,
"hash": "0x34adb212f5cc448882350a7f5d4d6a2177e51bef6aa04c2b0fb9ed7bf9c3757c",
"status": "confirmed",
"confirmations": 648068,
"date": "2024-03-13",
"time": "2024-03-13 14:39:35",
"value": "0",
"value_usd": 0,
"recipient": "9bec42f5954577f54e5c7118a0f3b7484edc56a689cf57792ada1e8d2b3990d5"
}
},
"context": {
"status": "success",
"cash_date": "12.06.2024",
"cash_time": "09:32:18"
}
}
ETH get transactions by address
GET https://alpacanode.xyz/api/ltc/?type=get_transactions_by_address&address=ltc1qasj5fsduqcm2eyscgewjg5mk2rfnn8rgvwpeha&apiKey=*****
Example response
{
"data": [
{
"hash": "224e300099e453b4d0a7ea8ea769da499c055aa8775426f7a9eda86fe9655a54",
"block_id": 2612121,
"confirmations": 89511,
"time": "2024-01-09 15:48:53",
"balance_change": -2233640,
"status": "confirmed",
"amount": -0.0223364
},
{
"hash": "c01882b5097d11ea8226e693ecb473fdfa2787f57273d257572eb75b823df9fd",
"block_id": 2612119,
"confirmations": 89513,
"time": "2024-01-09 15:40:54",
"balance_change": 2233640,
"status": "confirmed",
"amount": 0.0223364
}
],
"context": {
"status": "success",
"cash_date": "12.06.2024",
"cash_time": "09:34:46"
}
}
ETH get transaction by hash
GET https://alpacanode.xyz/api/ltc/?type=get_transaction_by_hash&hash=7193cf7ba83321e8c9710acff03003f3138a3ffc3f405dff957a8388003d0e3a&apiKey=*****
Example response
{
"data": {
"transaction": {
"block_id": 2692397,
"hash": "7193cf7ba83321e8c9710acff03003f3138a3ffc3f405dff957a8388003d0e3a",
"status": "confirmed",
"confirmations": 9234,
"date": "2024-05-27",
"time": "2024-05-27 07:46:29"
},
"outputs": [
{
"value": 759873,
"value_usd": 0.637685,
"recipient": "ltc1qvcyq2sax45f6fmvs39rmtl65t5576en4rdwj9n"
},
{
"value": 37233456,
"value_usd": 31.2463,
"recipient": "ltc1qj9a48apvvk2pskftyd6vqm222u6x5dmy7qdtu2"
}
]
},
"context": {
"status": "success",
"cash_date": "12.06.2024",
"cash_time": "09:35:31"
}
}
MONERO get transaction
GET https://alpacanode.xyz/api/monero/?type=get_transaction&hash=7b110ea7ca20a13c2b2413a588010bf61caf5987a4a528e828a1982de47792f4&address=42vZ2QHQQcjF6YV4z56Zmg892HheZsYEejog8Uip8KP2h6ev5Percb77Ew4U6hBW8v8Fh8FAoTNE692STcK4HGnUVT4DoD2&viewkey=cd0061420ec9408b38f6a2fca7e73a6fb641f609980ebea932e64437407ec405&apiKey=*****
Example response
{
"data": {
"address": "2253359c60838c54459a1ccb9a28072aad5c58aa336763ffe9aca27fc5326defba26e6ed8080de254ec9c30188634f2b5d5c49f6868b7b2ffa29d149b81d19fc",
"outputs": [
{
"amount": 0,
"match": false,
"output_idx": 0,
"output_pubkey": "2ce39b68bb0a34d1feaf21f69d252a6d0aeecc865b36988e24a6886de3cfbe9b",
"amount_xmr": 0
},
{
"amount": 304951000000,
"match": true,
"output_idx": 1,
"output_pubkey": "f4d4e86af8f3b2785fbc296ef864a9cf300a6ce3ed42ae380d5e5842b73096ee",
"amount_xmr": 0.304951
}
],
"tx_confirmations": 93904,
"tx_hash": "7b110ea7ca20a13c2b2413a588010bf61caf5987a4a528e828a1982de47792f4",
"tx_prove": false,
"tx_timestamp": 1706903509,
"viewkey": "cd0061420ec9408b38f6a2fca7e73a6fb641f609980ebea932e64437407ec405"
},
"context": {
"code": 200,
"source": "D",
"results": 1,
"state": 3169530,
"market_price_usd": 177.43,
"servers": "API4,XMR4",
"time": 0.0056569576263427734,
"render_time": 0.003590106964111328,
"full_time": 0.009247064590454102,
"request_cost": 1
}
}