import 'package:blockfrost/api.dart';All URIs are relative to https://cardano-mainnet.blockfrost.io/api/v0
| Method | HTTP request | Description |
|---|---|---|
| txSubmitPost | POST /tx/submit | Submit a transaction |
| txsHashDelegationsGet | GET /txs/{hash}/delegations | Transaction delegation certificates |
| txsHashGet | GET /txs/{hash} | Specific transaction |
| txsHashMetadataCborGet | GET /txs/{hash}/metadata/cbor | Transaction metadata in CBOR |
| txsHashMetadataGet | GET /txs/{hash}/metadata | Transaction metadata |
| txsHashMirsGet | GET /txs/{hash}/mirs | Transaction MIRs |
| txsHashPoolRetiresGet | GET /txs/{hash}/pool_retires | Transaction stake pool retirement certificates |
| txsHashPoolUpdatesGet | GET /txs/{hash}/pool_updates | Transaction stake pool registration and update certificates |
| txsHashRedeemersGet | GET /txs/{hash}/redeemers | Transaction redeemers |
| txsHashStakesGet | GET /txs/{hash}/stakes | Transaction stake addresses certificates |
| txsHashUtxosGet | GET /txs/{hash}/utxos | Transaction UTXOs |
| txsHashWithdrawalsGet | GET /txs/{hash}/withdrawals | Transaction withdrawal |
String txSubmitPost(contentType)
Submit a transaction
Submit an already serialized transaction to the network.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String contentType = contentType_example; // String |
try {
final response = api.txSubmitPost(contentType);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txSubmitPost: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| contentType | String |
String
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashDelegationsGet(hash)
Transaction delegation certificates
Obtain information about delegation certificates of a specific transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction.
try {
final response = api.txsHashDelegationsGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashDelegationsGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction. |
BuiltList<TxContentDelegationsInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TxContent txsHashGet(hash)
Specific transaction
Return content of the requested transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c42c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashMetadataCborGet(hash)
Transaction metadata in CBOR
Obtain the transaction metadata in CBOR.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashMetadataCborGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashMetadataCborGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
BuiltList<TxContentMetadataCborInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashMetadataGet(hash)
Transaction metadata
Obtain the transaction metadata.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashMetadataGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashMetadataGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
BuiltList<TxContentMetadataInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashMirsGet(hash)
Transaction MIRs
Obtain information about Move Instantaneous Rewards (MIRs) of a specific transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction.
try {
final response = api.txsHashMirsGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashMirsGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashPoolRetiresGet(hash)
Transaction stake pool retirement certificates
Obtain information about stake pool retirements within a specific transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashPoolRetiresGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashPoolRetiresGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
BuiltList<TxContentPoolRetiresInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashPoolUpdatesGet(hash)
Transaction stake pool registration and update certificates
Obtain information about stake pool registration and update certificates of a specific transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashPoolUpdatesGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashPoolUpdatesGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
BuiltList<TxContentPoolCertsInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashRedeemersGet(hash)
Transaction redeemers
Obtain the transaction redeemers.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashRedeemersGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashRedeemersGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
BuiltList<TxContentRedeemersInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashStakesGet(hash)
Transaction stake addresses certificates
Obtain information about (de)registration of stake addresses within a transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction.
try {
final response = api.txsHashStakesGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashStakesGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction. |
BuiltList<TxContentStakeAddrInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TxContentUtxo txsHashUtxosGet(hash)
Transaction UTXOs
Return the inputs and UTXOs of the specific transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction
try {
final response = api.txsHashUtxosGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashUtxosGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList txsHashWithdrawalsGet(hash)
Transaction withdrawal
Obtain information about withdrawals of a specific transaction.
import 'package:blockfrost/api.dart';
// TODO Configure API key authorization: ApiKeyAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ApiKeyAuth').apiKeyPrefix = 'Bearer';
final api = Blockfrost().getCardanoTransactionsApi();
final String hash = 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b; // String | Hash of the requested transaction.
try {
final response = api.txsHashWithdrawalsGet(hash);
print(response);
} catch on DioError (e) {
print('Exception when calling CardanoTransactionsApi->txsHashWithdrawalsGet: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| hash | String | Hash of the requested transaction. |
BuiltList<TxContentWithdrawalsInner>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]