Solana is a blockchain network focused on fast transactions and high throughput. It uses a unique method of ordering transactions to improve its speed. Users can pay their transaction fees and interact with smart contracts with SOL, the network's native cryptocurrency.
For now, Solana is in BETA and there is a rate limitation applied for all projects for Solana to 40 req/s on the platform.
Tatum supports 2 chains:
Generate Solana private key and account address.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Internal server error. There was an error on the server during the processing of the request.
{- "mnemonic": "urge pulp usage sister evidence arrest palm math please chief egg abuse",
- "address": "FykfMwA9WNShzPJbbb9DNXsfgDgS3XZzWiFgrVXfWoPJ",
- "privateKey": "zgsAKfjuXrAxEyuYRxbbxPM3rdsPbJPnGreaGMbcdUApJ6wHnCqQnf9b1RNPdeZxsRMkezh4VgXQ7YrbpndGtEv"
}
2 credits per API call
This endpoint is deprecated. Use the HTTP-based JSON RPC driver instead.
Use this endpoint URL as a http-based JSON RPC driver to connect directly to the Solana node provided by Tatum. To learn more about Solana JSON RPC, visit the Solana developer's guide.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Internal server error. There was an error on the server during the processing of the request.
{- "jsonrpc": "2.0",
- "method": "getVersion",
- "params": [ ],
- "id": 2
}
{- "jsonrpc": "2.0",
- "result": {
- "solana-core": "1.8.5"
}, - "id": 1
}
Get Solana current block number. This is the number of the latest block in the blockchain.
OK
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Internal server error. There was an error on the server during the processing of the request.
6491272
Get Solana block by block hash or block number.
You can find full data description here - https://docs.solana.com/developing/clients/jsonrpc-api#getblock
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Internal server error. There was an error on the server during the processing of the request.
{- "blockHeight": 94778421,
- "blockTime": 1638279333,
- "blockhash": "Ch7qVhCkSqEvhWE8xzJZbJKRcsH6wtTjfiMJdt9eKiD7",
- "parentSlot": 97742681,
- "previousBlockhash": "C3vsoVwVWx7yPRhsNoKpcm2CJTrnVcvimdC4bd3jTPbj",
- "rewards": [
- {
- "commission": "string",
- "lamports": 7,
- "postBalance": 10149491708073344,
- "pubkey": "ETSKPSzESbVdmtUn67LA2p9J1gPCSEgYvmJS9pNNWQqR",
- "rewardType": "Rent"
}
], - "transactions": [
- {
- "meta": {
- "err": { },
- "fee": 5000,
- "innerInstructions": [
- { }
], - "logMessages": [
- "Program Vote111111111111111111111111111111111111111 invoke [1]"
], - "postBalances": [
- 1101768559544744
], - "postTokenBalances": [
- {
- "accountIndex": 1,
- "mint": "So11111111111111111111111111111111111111112",
- "owner": "BYM81n8HvTJuqZU1PmTVcwZ9G8uoji7FKM6EaPkwphPt",
- "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
- "uiTokenAmount": {
- "amount": 2653579503,
- "decimals": 9,
- "uiAmount": 2.653579503,
- "uiAmountString": 2.653579503
}
}
], - "preBalances": [
- 1101768559549744
], - "preTokenBalances": [
- {
- "accountIndex": 1,
- "mint": "So11111111111111111111111111111111111111112",
- "owner": "BYM81n8HvTJuqZU1PmTVcwZ9G8uoji7FKM6EaPkwphPt",
- "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
- "uiTokenAmount": {
- "amount": 2653579503,
- "decimals": 9,
- "uiAmount": 2.653579503,
- "uiAmountString": 2.653579503
}
}
], - "rewards": [
- { }
], - "status": {
- "Ok": "string"
}
}, - "transaction": {
- "message": {
- "header": {
- "numReadonlySignedAccounts": 0,
- "numReadonlyUnsignedAccounts": 3,
- "numRequiredSignatures": 1
}, - "accountKeys": [
- "0974de54f77afa9ad3d474909f6ce095b9623a359a5d08cc807b8a92dd5e1f96"
], - "recentBlockhash": "C3vsoVwVWx7yPRhsNoKpcm2CJTrnVcvimdC4bd3jTPbj",
- "instructions": [
- {
- "accounts": [
- null
], - "data": "2ZjTR1vUs2pHXyTM4rXnJowxekwfBcBJwsE4EameG3Sapvgfit27vrBd8k8QYCoTtMgfHEJLDqWEWBYUYVd",
- "programIdIndex": 4
}
], - "indexToProgramIds": { }
}, - "signatures": [
- "5FPSzkTsjZDBigU3ZagvkcwSPimt4K6voqrN9uUNVzWDBeRXWVH3uMarDPpSfrS7sFQeyKyDd5KpbdCrL3EWEP59"
]
}
}
]
}
Get Solana account balance in SOL. This method does not prints any balance of the SPL or NFT tokens on the account.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Internal server error. There was an error on the server during the processing of the request.
{- "balance": "10.52"
}
Get Solana transaction by transaction hash.
You can find full data description here - https://docs.solana.com/developing/clients/jsonrpc-api#gettransaction
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server during the processing of the request.
{- "blockTime": 1638279975,
- "meta": {
- "err": { },
- "fee": 5000,
- "innerInstructions": [
- { }
], - "logMessages": [
- "Program Vote111111111111111111111111111111111111111 invoke [1]"
], - "postBalances": [
- 1101768559544744
], - "postTokenBalances": [
- {
- "accountIndex": 1,
- "mint": "So11111111111111111111111111111111111111112",
- "owner": "BYM81n8HvTJuqZU1PmTVcwZ9G8uoji7FKM6EaPkwphPt",
- "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
- "uiTokenAmount": {
- "amount": 2653579503,
- "decimals": 9,
- "uiAmount": 2.653579503,
- "uiAmountString": 2.653579503
}
}
], - "preBalances": [
- 1101768559549744
], - "preTokenBalances": [
- {
- "accountIndex": 1,
- "mint": "So11111111111111111111111111111111111111112",
- "owner": "BYM81n8HvTJuqZU1PmTVcwZ9G8uoji7FKM6EaPkwphPt",
- "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
- "uiTokenAmount": {
- "amount": 2653579503,
- "decimals": 9,
- "uiAmount": 2.653579503,
- "uiAmountString": 2.653579503
}
}
], - "rewards": [
- { }
], - "status": {
- "Ok": "string"
}
}, - "transaction": {
- "message": {
- "header": {
- "numReadonlySignedAccounts": 0,
- "numReadonlyUnsignedAccounts": 3,
- "numRequiredSignatures": 1
}, - "accountKeys": [
- "0974de54f77afa9ad3d474909f6ce095b9623a359a5d08cc807b8a92dd5e1f96"
], - "recentBlockhash": "C3vsoVwVWx7yPRhsNoKpcm2CJTrnVcvimdC4bd3jTPbj",
- "instructions": [
- {
- "accounts": [
- 1
], - "data": "2ZjTR1vUs2pHXyTM4rXnJowxekwfBcBJwsE4EameG3Sapvgfit27vrBd8k8QYCoTtMgfHEJLDqWEWBYUYVd",
- "programIdIndex": 4
}
], - "indexToProgramIds": { }
}, - "signatures": [
- "5FPSzkTsjZDBigU3ZagvkcwSPimt4K6voqrN9uUNVzWDBeRXWVH3uMarDPpSfrS7sFQeyKyDd5KpbdCrL3EWEP59"
]
}, - "slot": 97744333
}
Send SOL from account to account.
This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key.
No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and loss of funds. In this method, it is possible to enter privateKey
or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production,
Tatum KMS should be used for the highest security standards, and signatureId should be present in the request.
Alternatively, using the Tatum client library for supported languages.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server during the processing of the request.
{- "from": "FykfMwA9WNShzPJbbb9DNXsfgDgS3XZzWiFgrVXfWoPJ",
- "to": "FZAS4mtPvswgVxbpc117SqfNgCDLTCtk5CoeAtt58FWU",
- "amount": "100000",
- "fromPrivateKey": "zgsAKfjuXrAxEyuYRxbbxPM3rdsPbJPnGreaGMbcdUApJ6wHnCqQnf9b1RNPdeZxsRMkezh4VgXQ7YrbpndGtEv"
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"
}
Broadcast signed custom transactions to Solana blockchain and waits for transaction confirmation depending on the commitment given. More information about commitment levels here
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server during the processing of the request.
{- "txData": "01de391b34567fc65080dfe9e27170e2f9ac1cd1719878719feb74bb422d1795201df71fcf7349f5"
}
{- "txId": "5Sh63rNFg6iR9YUGPwEkbAg4kYSWnf5eRS2wcLG1Gc6psj27SGK3LNuN9jNSPKn3JoChgmq8pSirHWsPPWzy2PFw",
- "confirmed": false
}