All URIs are relative to https://api.blockchainapi.com/v1
Method | HTTP request | Description |
---|---|---|
solanaGetAccount | GET /solana/account/{network}/{public_key} | Get the details of an account on Solana |
solanaGetAccountIsCandyMachine | GET /solana/account/{network}/{public_key}/is_candy_machine | Get if account is candy machine |
solanaGetAccountIsNFT | GET /solana/account/{network}/{public_key}/is_nft | Get if account is NFT |
Account solanaGetAccount(network, publicKey)
Get the details of an account on Solana
<a href="https://github.com/BL0CK-X/the-blockchain-api/tree/main/examples/solana-account/get-account\" target="_blank">See examples (Python, JavaScript)</a>. Get the details of an account on Solana. Learn more about accounts <a href="https://docs.solana.com/developing/programming-model/accounts\" target="_blank">here</a>. `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 = SolanaAccountApi()
val network : kotlin.String = mainnet-beta // kotlin.String | The network ID (devnet, mainnet-beta)
val publicKey : kotlin.String = EEr5yQpNXf7Bru6Rt5podx56HGW9CEehXqgRGh2wa71w // kotlin.String | The public key of the account
try {
val result : Account = apiInstance.solanaGetAccount(network, publicKey)
println(result)
} catch (e: ClientException) {
println("4xx response calling SolanaAccountApi#solanaGetAccount")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SolanaAccountApi#solanaGetAccount")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
network | kotlin.String | The network ID (devnet, mainnet-beta) | |
publicKey | kotlin.String | The public key of the account |
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: Not defined
- Accept: application/json
AccountIsCandyMachine solanaGetAccountIsCandyMachine(network, publicKey)
Get if account is candy machine
<a href="https://github.com/BL0CK-X/the-blockchain-api/tree/main/examples/solana-account/get-is-candy-machine\" target="_blank">See examples (Python, JavaScript)</a>. Determine whether or not a public key address corresponds to a candy machine ID or candy machine configuration. `Cost: 1 Credit` (<a href="#section/Pricing">See Pricing</a>)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = SolanaAccountApi()
val network : kotlin.String = mainnet-beta // kotlin.String | The network ID (devnet, mainnet-beta)
val publicKey : kotlin.String = EEr5yQpNXf7Bru6Rt5podx56HGW9CEehXqgRGh2wa71w // kotlin.String | The public key of the account
try {
val result : AccountIsCandyMachine = apiInstance.solanaGetAccountIsCandyMachine(network, publicKey)
println(result)
} catch (e: ClientException) {
println("4xx response calling SolanaAccountApi#solanaGetAccountIsCandyMachine")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SolanaAccountApi#solanaGetAccountIsCandyMachine")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
network | kotlin.String | The network ID (devnet, mainnet-beta) | |
publicKey | kotlin.String | The public key of the account |
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: Not defined
- Accept: application/json
AccountIsNFT solanaGetAccountIsNFT(network, publicKey)
Get if account is NFT
<a href="https://github.com/BL0CK-X/the-blockchain-api/tree/main/examples/solana-account/get-is-nft\" target="_blank">See examples (Python, JavaScript)</a>. Determine whether or not a public key is an NFT `mint address` `Cost: 0.5 Credit` (<a href="#section/Pricing">See Pricing</a>)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = SolanaAccountApi()
val network : kotlin.String = mainnet-beta // kotlin.String | The network ID (devnet, mainnet-beta)
val publicKey : kotlin.String = EEr5yQpNXf7Bru6Rt5podx56HGW9CEehXqgRGh2wa71w // kotlin.String | The public key of the account
try {
val result : AccountIsNFT = apiInstance.solanaGetAccountIsNFT(network, publicKey)
println(result)
} catch (e: ClientException) {
println("4xx response calling SolanaAccountApi#solanaGetAccountIsNFT")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SolanaAccountApi#solanaGetAccountIsNFT")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
network | kotlin.String | The network ID (devnet, mainnet-beta) | |
publicKey | kotlin.String | The public key of the account |
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: Not defined
- Accept: application/json