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()
<a href="https://github.com/BL0CK-X/the-blockchain-api/tree/main/examples/solana-account/get-account\" target="_blank">See examples (Python, JavaScript). 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. Cost: 0.25 Credit
(<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.SolanaAccountApi(configuration);
let body:theblockchainapi.SolanaAccountApiSolanaGetAccountRequest = {
// string | The network ID (devnet, mainnet-beta)
network: "mainnet-beta",
// string | The public key of the account
publicKey: "EEr5yQpNXf7Bru6Rt5podx56HGW9CEehXqgRGh2wa71w",
};
apiInstance.solanaGetAccount(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
network | [string] | The network ID (devnet, mainnet-beta) | defaults to undefined |
publicKey | [string] | The public key of the account | defaults to undefined |
Account
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Account found. Details in response. | - |
400 | Invalid input or issue retrieving transaction. See response for details | - |
401 | Invalid API key pair in headers | - |
402 | Payment required. Occurs when you run out of API requests. Upgrade <a href="https://dashboard.theblockchainapi.com/billing\" target="_blank">here</a>. | - |
404 | Task not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountIsCandyMachine solanaGetAccountIsCandyMachine()
<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). 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)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.SolanaAccountApi(configuration);
let body:theblockchainapi.SolanaAccountApiSolanaGetAccountIsCandyMachineRequest = {
// string | The network ID (devnet, mainnet-beta)
network: "mainnet-beta",
// string | The public key of the account
publicKey: "EEr5yQpNXf7Bru6Rt5podx56HGW9CEehXqgRGh2wa71w",
};
apiInstance.solanaGetAccountIsCandyMachine(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
network | [string] | The network ID (devnet, mainnet-beta) | defaults to undefined |
publicKey | [string] | The public key of the account | defaults to undefined |
AccountIsCandyMachine
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
400 | Invalid input or issue retrieving transaction. See response for details | - |
401 | Invalid API key pair in headers | - |
402 | Payment required. Occurs when you run out of API requests. Upgrade <a href="https://dashboard.theblockchainapi.com/billing\" target="_blank">here</a>. | - |
404 | Task not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountIsNFT solanaGetAccountIsNFT()
<a href="https://github.com/BL0CK-X/the-blockchain-api/tree/main/examples/solana-account/get-is-nft\" target="_blank">See examples (Python, JavaScript). Determine whether or not a public key is an NFT mint address
Cost: 0.5 Credit
(<a href="#section/Pricing">See Pricing)
import { theblockchainapi } from 'theblockchainapi';
import * as fs from 'fs';
const configuration = theblockchainapi.createConfiguration();
const apiInstance = new theblockchainapi.SolanaAccountApi(configuration);
let body:theblockchainapi.SolanaAccountApiSolanaGetAccountIsNFTRequest = {
// string | The network ID (devnet, mainnet-beta)
network: "mainnet-beta",
// string | The public key of the account
publicKey: "EEr5yQpNXf7Bru6Rt5podx56HGW9CEehXqgRGh2wa71w",
};
apiInstance.solanaGetAccountIsNFT(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
network | [string] | The network ID (devnet, mainnet-beta) | defaults to undefined |
publicKey | [string] | The public key of the account | defaults to undefined |
AccountIsNFT
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
400 | Invalid input or issue retrieving transaction. See response for details | - |
401 | Invalid API key pair in headers | - |
402 | Payment required. Occurs when you run out of API requests. Upgrade <a href="https://dashboard.theblockchainapi.com/billing\" target="_blank">here</a>. | - |
404 | Task not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]