Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 3.41 KB

TransactionApi.md

File metadata and controls

66 lines (48 loc) · 3.41 KB

TransactionApi

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

getTransaction

GeneralTransaction getTransaction(blockchain, network, transactionBlockchainIdentifier)

Get the details of a transaction made on a blockchain

<a href=&quot;https://github.com/BL0CK-X/blockchain-api/tree/main/examples/transaction/get-transaction\" target=&quot;_blank&quot;>See examples (Python, JavaScript)</a>. Get the details of a transaction made on the specified blockchain. `Cost: 0.25 Credit` (<a href=&quot;#section/Pricing&quot;>See Pricing</a>)

Example

// 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()
}

Parameters

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`

Return type

GeneralTransaction

Authorization

Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json