Transaction info
Page about how to get transaction(s)
Bitcoin-like cryptocurrency
GetTransaction
Example usage of GetTransaction
package main
import (
"fmt"
"log"
"os"
"github.com/DiFronzo/blockchair"
)
var clientID string
func init() {
clientID = os.Getenv("API_KEY")
}
func main() {
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")
if err != nil {
log.Fatalln(err)
}
fmt.Println(resp)
}GetTransactionAdv
Example usage of GetTransactionAdv
GetTransactions
GetTransactionsAdv
Ethereum cryptocurrency
GetTransactionEth
Example usage of GetTransactionEth
GetTransactionEthAdv
Last updated
Was this helpful?