API documentation can be found for Bitcoin-like and Ethereum cryptocurrency on blockhairs website.
Bitcoin-like cryptocurrency
GetTransaction
GetTransaction fetches a Bitcoin-like transaction. The cryptocurrency supported, per 2021 September, are bitcoin, bitcoin-cash, litecoin, bitcoin-sv, dogecoin, dash, groestlcoin, zcash, ecash, bitcoin/testnet. Followed by the transaction hash (regex: /^[0-9a-f]{64}$/i), also known as txid.
Example usage of GetTransaction
packagemainimport("fmt""log""os""github.com/DiFronzo/blockchair")varclientIDstringfuncinit(){clientID=os.Getenv("API_KEY")}funcmain(){c:=blockchair.New()c.APIKey=clientID// If you don't have an API key remove the lines about "clientID".resp,err:=c.GetTransaction("bitcoin","f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16")iferr!=nil{log.Fatalln(err)}fmt.Println(resp)}
Request cost is 1.
GetTransactionAdv
GetTransactionAdv fetches a Bitcoin-like transaction and allowing options. The cryptocurrency supported, per 2021 September, are bitcoin, bitcoin-cash, litecoin, bitcoin-sv, dogecoin, dash, groestlcoin, zcash, ecash, bitcoin/testnet. Followed by the transaction hash (regex: /^[0-9a-f]{64}$/i), also known as txid. Lastly the wanted options in a map (for valid options see API doc. linked on top of the page).
Example usage of GetTransactionAdv
Request cost is 1.
GetTransactions
GetTransactions fetches mutliple Bitcoin-like transactions. The cryptocurrency supported, per 2021 September, are bitcoin, bitcoin-cash, litecoin, bitcoin-sv, dogecoin, dash, groestlcoin, zcash, ecash, bitcoin/testnet. Followed by the transaction hashes (regex: /^[0-9a-f]{64}$/i), also known as txid's.
Request cost is 0<x≤10⇒limn→x1+(0.1∗(n−1))
GetTransactionsAdv
GetTransactionsAdv fetches mutliple Bitcoin-like transactions and allowing options. The cryptocurrency supported, per 2021 September, are bitcoin, bitcoin-cash, litecoin, bitcoin-sv, dogecoin, dash, groestlcoin, zcash, ecash, bitcoin/testnet. Followed by the transaction hashes (regex: /^[0-9a-f]{64}$/i), also known as txid's.
Request cost is 0<x≤10⇒limn→x1+(0.1∗(n−1))
Ethereum cryptocurrency
GetTransactionEth
GetTransactionEth fetches an Ethereum transaction. The cryptocurrency supported, per 2021 September, are ethereum, ethereum/testnet. Followed by the transaction hash (regex: /^0x[0-9a-f]{64}$/i), also known as txid. Request cost is 1.
Example usage of GetTransactionEth
GetTransactionEthAdv
GetTransactionEthAdv fetches an Ethereum transaction and allowing options. The cryptocurrency supported, per 2021 September, are ethereum, ethereum/testnet. Followed by the transaction hash (regex: /^0x[0-9a-f]{64}$/i), also known as txid. Lastly the wanted options in a map (for valid options see API doc. linked on top of the page). Request cost is 1.