Chainlink CryptoAPIs External Adapter
Required?
Name
Description
Options
Defaults to
✅
API_KEY
An API key that can be obtained from here
API_TIMEOUT
Timeout parameter
30000
NOTE: the price
endpoint is temporarily still supported, however, is being deprecated. Please use the crypto
endpoint instead.
https://docs.cryptoapis.io/rest-apis/crypto-market-data-apis/index#exchange-rates
Required?
Name
Description
Options
Defaults to
✅
base
, from
, coin
, sym
The symbol of the currency to query
✅
quote
, to
, market
, convert
The symbol of the currency to convert to
cid
The CMC coin ID (optional to use in place of base
)
slug
The CMC coin name (optional to use in place of base
)
{
"id" : " 1" ,
"data" : {
"base" : " BTC" ,
"quote" : " USD"
}
}
{
"jobRunID" : " 1" ,
"data" : {
"payload" : {
"weightedAveragePrice" : 36670.69405468086 ,
"amount" : 135.37338203000004 ,
"timestamp" : 1610724372 ,
"datetime" : " 2021-01-15T15:26:12+0000" ,
"baseAsset" : " BTC" ,
"quoteAsset" : " USD"
},
"result" : 36670.69405468086
},
"result" : 36670.69405468086 ,
"statusCode" : 200
}
Difficulty & Height Endpoint
https://docs.cryptoapis.io/rest-apis/blockchain-as-a-service-apis/common/index#common
Required?
Name
Description
Options
Defaults to
✅
blockchain
, coin
, market
The blockchain to retrieve info for
BTC
, ETH
, LTC
, ETC
, BCH
, DOGE
, DASH
.
network
The blockchain network name
mainnet
, testnet
mainnet
{
"id" : " 1" ,
"data" : {
"endpoint" : " difficulty" ,
"blockchain" : " BTC"
}
}
{
"jobRunID" : " 1" ,
"data" : {
"payload" : {
"difficulty" : 20607418304385.63 ,
"headers" : 666185 ,
"chain" : " main" ,
"chainWork" : " 000000000000000000000000000000000000000018255ab714d1a15ffccd987e" ,
"mediantime" : 1610721116 ,
"blocks" : 666185 ,
"bestBlockHash" : " 0000000000000000000cc82b0a9a6e290cd13721a1abf88fdebb37fdc927308e" ,
"currency" : " BTC" ,
"transactions" : 606560353 ,
"verificationProgress" : 0.9999930065052965
},
"result" : 20607418304385.63
},
"result" : 20607418304385.63 ,
"statusCode" : 200
}
https://docs.cryptoapis.io/rest-apis/blockchain-as-a-service-apis/btc/index#btc-address-info-endpoint
Required?
Name
Description
Options
Defaults to
dataPath
Path where to find the addresses array
result
confirmations
Confirmations parameter
6
addresses
Array of addresses to query (this may also be under the result
parameter)
Addresses is an an array of objects that contain the following information:
Required?
Name
Description
Options
Defaults to
✅
address
Address to query
coin
Currency to query
btc
. eth
, bch
, ltc
, btsv
, zec
btc
chain
Chain to query (Ethereum testnet is Rinkeby)
mainnet
, testnet
mainnet
{
"id" : " 1" ,
"data" : {
"endpoint" : " balance" ,
"addresses" : [
{
"address" : " n4VQ5YdHf7hLQ2gWQYYrcxoE5B7nWuDFNF" ,
"chain" : " testnet"
}
],
"dataPath" : " addresses"
}
}
{
"jobRunID" : " 1" ,
"data" : {
"responses" : [
{
"payload" : {
"address" : " n4VQ5YdHf7hLQ2gWQYYrcxoE5B7nWuDFNF" ,
"totalSpent" : " 0.0498" ,
"totalReceived" : " 131.40923575" ,
"balance" : " 131.35943575" ,
"txi" : 1 ,
"txo" : 1590 ,
"txsCount" : 1587 ,
"addresses" : [" n4VQ5YdHf7hLQ2gWQYYrcxoE5B7nWuDFNF" ]
}
}
],
"result" : [
{
"address" : " n4VQ5YdHf7hLQ2gWQYYrcxoE5B7nWuDFNF" ,
"chain" : " testnet" ,
"coin" : " btc" ,
"balance" : " 131.35943575"
}
]
},
"result" : [
{
"address" : " n4VQ5YdHf7hLQ2gWQYYrcxoE5B7nWuDFNF" ,
"chain" : " testnet" ,
"coin" : " btc" ,
"balance" : " 13135943575"
}
],
"statusCode" : 200
}