All URIs are relative to https://api.blockchainapi.com/v1
Method | HTTP request | Description |
---|---|---|
getTransaction | GET /{blockchain}/transaction/{network}/{transaction_blockchain_identifier} | Get the details of a transaction made on a blockchain |
GeneralTransaction getTransaction(blockchain, network, transactionBlockchainIdentifier)
Get the details of a transaction made on a blockchain
<a href="https://github.com/BL0CK-X/blockchain-api/tree/main/examples/transaction/get-transaction\" target="_blank">See examples (Python, JavaScript)</a>. Get the details of a transaction made on the specified blockchain. `Cost: 0.25 Credit` (<a href="#section/Pricing">See Pricing</a>)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = TransactionApi()
val blockchain : kotlin.String = blockchain_example // kotlin.String | The blockchain you want to use
val network : kotlin.String = ropsten // kotlin.String | The network of the blockchain you selected - Solana: `devnet`, `mainnet-beta` - Ethereum: `ropsten`, `mainnet` Defaults when not provided (not applicable to path parameters): - Solana: `devnet` - Ethereum: `ropsten`
val transactionBlockchainIdentifier : kotlin.String = 0x5f36b787daa57bfe8568d69e24eae54ccb00720c6edfc826bd4a7b19c525eef4 // kotlin.String | The transaction signature of the transaction. Examples: - Solana: `5wHu1qwD7q5ifaN5nwdcDqNFo53GJqa7nLp2BeeEpcHCusb4GzARz4GjgzsEHMkBMgCJMGa6GSQ1VG96Exv8kt2W` - Ethereum: `0x5f36b787daa57bfe8568d69e24eae54ccb00720c6edfc826bd4a7b19c525eef4`
try {
val result : GeneralTransaction = apiInstance.getTransaction(blockchain, network, transactionBlockchainIdentifier)
println(result)
} catch (e: ClientException) {
println("4xx response calling TransactionApi#getTransaction")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TransactionApi#getTransaction")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
blockchain | kotlin.String | The blockchain you want to use | [enum: ethereum, solana] |
network | kotlin.String | The network of the blockchain you selected - Solana: `devnet`, `mainnet-beta` - Ethereum: `ropsten`, `mainnet` Defaults when not provided (not applicable to path parameters): - Solana: `devnet` - Ethereum: `ropsten` | |
transactionBlockchainIdentifier | kotlin.String | The transaction signature of the transaction. Examples: - Solana: `5wHu1qwD7q5ifaN5nwdcDqNFo53GJqa7nLp2BeeEpcHCusb4GzARz4GjgzsEHMkBMgCJMGa6GSQ1VG96Exv8kt2W` - Ethereum: `0x5f36b787daa57bfe8568d69e24eae54ccb00720c6edfc826bd4a7b19c525eef4` |
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: Not defined
- Accept: application/json