Wallet
All the available functionality related to an account.
Get Balance
Returns the chain's native balance for the wallet address. For Solana, will return in SOL etc.
Query Params
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
GET /sol/v1/wallet/balance
var myHeaders = new Headers();
myHeaders.append("x-api-key", "YOUR_API_KEY");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/balance?network=devnet&wallet=97a3giHcGsk8YoEgWv4rP1ooWwJBgS72fpckZM6mQiFH", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
//Response
{
"success": true,
"message": "Balance fetched successfully",
"result": {
"balance": 0.9908624
}
}
Send Sol
Transfer SOL from one wallet to another
BODY (raw)
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
from_address: Wallet address of the sender
to_address: Wallet address of the receiver
amount: How much to send
POST /sol/v1/wallet/send_sol
var myHeaders = new Headers();
myHeaders.append("x-api-key", "-3iYNcRok7Gm4EMl");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"network": "devnet",
"from_address": "BFefyp7jNF5Xq2A4JDLLFFGpxLq5oPEFKBAQ46KJHW2R",
"to_address": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"amount": 1.2
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/send_sol", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "1.2 SOL transferred successfully",
"result": {
"encoded_transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDmFWYteRvJYw2HIfGgUAbGCrz00zOc1fx/ASNo7oRmvYYyp9RxUce7b6XJTmDH3BTasbGTY2hJe2h0xJ16/4PFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiXMePKuHbfGvuCNhdcnwlC6az6BIpyvK+1yTRL9XhyABAgIAAQwCAAAAAIyGRwAAAAA="
}
}
Get Token Balance
Get the balance of a particular token in a wallet (Supports Token 2022 token info đ)
Query Params
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
token: Fungible token address
GET /sol/v1/wallet/token_balance
var myHeaders = new Headers();
myHeaders.append("x-api-key", "-3iYNcRok7Gm4EMl");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/token_balance?network=mainnet-beta&wallet=BNZPZfmuoWFjvnPRasn6oxWF326Mq2jXv6JpY2AdcqbU&token=FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "Token balance fetched successfully",
"result": {
"address": "FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX",
"balance": 35457651.1169,
"associated_account": "8yGQMGJyjmZQ7rmUjhscquQfk7Yvr26k2wMA7FrxQQg6",
"info": {
"name": "Fluxbot",
"symbol": "FLUXB",
"image": "https://assets.coingecko.com/coins/images/33018/large/fluxbot.jpeg?1700193761",
"decimals": 5
},
"isFrozen": false
}
}
Get All Tokens Balance
This API gets the balance of all the tokens in your wallet (Supports Token 2022 token info đ)
Query Params
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
GET /sol/v1/wallet/all_tokens
var myHeaders = new Headers();
myHeaders.append("x-api-key", "YOUR_API_KEY");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/all_tokens?network=mainnet-beta&wallet=BNZPZfmuoWFjvnPRasn6oxWF326Mq2jXv6JpY2AdcqbU", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "5 tokens fetched successfully",
"result": [
{
"address": "3VJyo1n5EkBGh6uEcnKA1Bf8EgVnvrK3XjcDZDDXsPLF",
"balance": 888888888,
"associated_account": "DQJkt16VMhJ1nPp2T8F5oxxu1wuo2rfQBiiyNR1WpEn2",
"info": {
"decimals": 5,
"name": "Flonk",
"symbol": "FLONK",
"image": "https://assets.coingecko.com/coins/images/34189/large/IMG_9974.png?1704267040"
}
},
{
"address": "Dx1Lq5FjangW5ifRMEogAiakm24LyB5AoHmQifepvNjV",
"balance": 5,
"associated_account": "4iUphU2p1ATF5PnyRpjBeZtC2Mm1eErVUdnhXdYWYn4E",
"info": {
"decimals": 9,
"name": "BabyBonk",
"symbol": "BABYBONK",
"image": "https://assets.coingecko.com/coins/images/34741/large/babybonk_logo.jpg?1706018014"
}
},
{
"address": "FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX",
"balance": 35457651.1169,
"associated_account": "8yGQMGJyjmZQ7rmUjhscquQfk7Yvr26k2wMA7FrxQQg6",
"info": {
"decimals": 5,
"name": "Fluxbot",
"symbol": "FLUXB",
"image": "https://assets.coingecko.com/coins/images/33018/large/fluxbot.jpeg?1700193761"
}
},
{
"address": "JAzesW3tU2VLDx99pwgkDMca2DTNsEhSWG8sj21B1niz",
"balance": 0.94,
"associated_account": "BghhBt6NQKfdXCvLiB27bQ2ViCQWyzckZV49Ucstms2L",
"info": {
"decimals": 6,
"name": "Phoenix",
"symbol": "PHNX",
"image": "https://bafybeicmwtzskjhcsnoymhsv5fmlruwoxgounmcweiei2qnxh6ayesupiq.ipfs.nftstorage.link"
}
},
{
"address": "So11111111111111111111111111111111111111112",
"balance": 40429.706350151,
"associated_account": "EY8wxYMKHL45fBFWPW4HMk9med7RKf2R3ygVWkPYx55z",
"info": {
"decimals": 9,
"name": "Wrapped SOL",
"symbol": "SOL",
"image": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png"
}
}
]
}
You can further call Tokens Get Info API to fetch detailed info of required addresses.
Get Portfolio
This request gets all the token details (fungible and non-fungible) from a wallet. (Supports Token 2022 token info đ)
Query Params
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
GET /sol/v1/wallet/get_portfolio
var myHeaders = new Headers();
myHeaders.append("x-api-key", "-3iYNcRok7Gm4EMl");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/get_portfolio?network=devnet&wallet=BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "Portfolio fetched successfully",
"result": {
"sol_balance": 1.87873304,
"num_tokens": 2,
"tokens": [
{
"address": "4TLk2jocJuEysZubcMFCqsEFFu5jVGzTp14kAANDaEFv",
"balance": 500000
},
{
"address": "7yPeRofJpfPkjLJ8CLB7czuk4sKG9toXWVq8CcHr4DcU",
"balance": 310.000001
}
],
"num_nfts": 3,
"nfts": [
{
"key": 4,
"updateAuthority": "BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx",
"mint": "ApJPjFr585xKSMk7EtAKU4UrcpyEgdN7X8trvd3gChYk",
"data": {
"name": "Nightweaver",
"symbol": "NW",
"uri": "https://nftstorage.link/ipfs/' + 'bafkreidwzqo2fjyas32s2bhsvjo7fyi42yidtg5hpzetlsrij66eq3xblm",
"sellerFeeBasisPoints": 0,
"creators": [
{
"address": "BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx",
"verified": 1,
"share": 100
}
]
},
"primarySaleHappened": 0,
"isMutable": 1
},
{
"key": 4,
"updateAuthority": "BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx",
"mint": "9XTGWZENKa18N1vgCQ3RjJWHG92Di2JKYi73jiC4hkEM",
"data": {
"name": "SHYFT",
"symbol": "SHF",
"uri": "https://nftstorage.link/ipfs/ + bafkreid4ugb2wgbl2qkpfzd6bn34zkzjswfeo3esichllkn2m7fpffs4hy",
"sellerFeeBasisPoints": 5,
"creators": [
{
"address": "BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx",
"verified": 1,
"share": 100
}
]
},
"primarySaleHappened": 0,
"isMutable": 1
},
{
"key": 4,
"updateAuthority": "BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx",
"mint": "Cx3661bLrm7Q51yHnKSFhVr4YBLHBsvojj13nWBZkvQc",
"data": {
"name": "Shyft",
"symbol": "SH",
"uri": "https://nftstorage.link/ipfs/bafkreiewipf55m2tn5frny4alervvbqwdwdqmiaqzuri7ing2outmrxmke",
"sellerFeeBasisPoints": 1000,
"creators": [
{
"address": "BvzKvn6nUUAYtKu2pH3h5SbUkUNcRPQawg4bURBiojJx",
"verified": 1,
"share": 100
}
]
},
"primarySaleHappened": 0,
"isMutable": 1
}
]
}
}
Get All Domains
This API gets all the .sol domain addresses associated with a wallet.
Query Params
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
GET /sol/v1/wallet/get_domains
var myHeaders = new Headers();
myHeaders.append("x-api-key", "-3iYNcRok7Gm4EMl");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/get_domains?network=mainnet-beta&wallet=9hqqMGMfG44L2R1a1osDgQRWKYt4YuegfUB6rUSaXrv8", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "1 domains fetched successfully",
"result": [
{
"address": "CK9rDU7Bk9SV5SEmRUakMjN87fpqTTSWq2ieojTmXJoL",
"name": "anoushk.sol"
}
]
}
Resolve Address
Resolves the given name account to the associated .sol domain address.
Query Params
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
GET /sol/v1/wallet/resolve_address
var myHeaders = new Headers();
myHeaders.append("x-api-key", "-3iYNcRok7Gm4EMl");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/resolve_address?network=mainnet-beta&address=CK9rDU7Bk9SV5SEmRUakMjN87fpqTTSWq2ieojTmXJoL", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
// Response
{
"success": true,
"message": "Address resolved successfully",
"result": {
"name": "anoushk.sol"
}
}
Get Transaction History (deprecated)
Get the transaction history of your wallet
Deprecated! Use Transaction History endpoint instead.
GET /sol/v1/wallet/transaction_history
Query Params:
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet: Wallet address
tx_num: (optional) How many transactions (maximum 10 transactions at a time) do you want to fetch
before_tx_signature: (optional) Tx signature before which X number of transactions will be fetched, in reverse order going back in time
var myHeaders = new Headers();
myHeaders.append("x-api-key", "-3iYNcRok7Gm4EMl");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/transaction_history?network=devnet&wallet=2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc&tx_num=2&before_tx_signature=4pbfE4HtYjYyTrPN4pAZ68oXw2XxAUeVTedMvRnEn6qNwSj2RLUWUmjoVaUEbcJuLyBYvC1Za1npyhN1zFD8RXC", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "Last 2 transaction fetched successfully",
"result": [
{
"blockTime": 1661240123,
"meta": {
"err": null,
"fee": 10000,
"innerInstructions": [
{
"index": 2,
"instructions": [
{
"parsed": {
"info": {
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q"
},
"type": "getAccountDataSize"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"parsed": {
"info": {
"lamports": 2039280,
"newAccount": "DQuMYwiCccfBuptb4VhM7XzMyXEQGvbt2UZD12MwkUX8",
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"source": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"space": 165
},
"type": "createAccount"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"account": "DQuMYwiCccfBuptb4VhM7XzMyXEQGvbt2UZD12MwkUX8"
},
"type": "initializeImmutableOwner"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"parsed": {
"info": {
"account": "DQuMYwiCccfBuptb4VhM7XzMyXEQGvbt2UZD12MwkUX8",
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"owner": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc"
},
"type": "initializeAccount3"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
]
},
{
"index": 4,
"instructions": [
{
"parsed": {
"info": {
"destination": "BriaLPteAb7FZDKWjJjVuf6GMfL2LD2jThERFfr7Y2yg",
"lamports": 5616720,
"source": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF"
},
"type": "transfer"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"account": "BriaLPteAb7FZDKWjJjVuf6GMfL2LD2jThERFfr7Y2yg",
"space": 679
},
"type": "allocate"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"account": "BriaLPteAb7FZDKWjJjVuf6GMfL2LD2jThERFfr7Y2yg",
"owner": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
},
"type": "assign"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"destination": "DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"lamports": 2568240,
"source": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF"
},
"type": "transfer"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"account": "DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"space": 241
},
"type": "allocate"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"account": "DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"owner": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
},
"type": "assign"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"authorityType": "mintTokens",
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"multisigAuthority": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"newAuthority": "DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"signers": [
"HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF"
]
},
"type": "setAuthority"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"parsed": {
"info": {
"authorityType": "freezeAccount",
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"multisigAuthority": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"newAuthority": "DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"signers": [
"HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF"
]
},
"type": "setAuthority"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
]
}
],
"loadedAddresses": {
"readonly": [],
"writable": []
},
"logMessages": [
"Program 11111111111111111111111111111111 invoke [1]",
"Program 11111111111111111111111111111111 success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
"Program log: Instruction: InitializeMint",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2967 of 1000000 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
"Program log: Create",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: GetAccountDataSize",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1622 of 988445 compute units",
"Program return: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA pQAAAAAAAAA=",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Initialize the associated token account",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: InitializeImmutableOwner",
"Program log: Please upgrade to SPL Token 2022 for immutable owner support",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1405 of 981955 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: InitializeAccount3",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4241 of 978073 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 23539 of 997033 compute units",
"Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
"Program log: Instruction: MintTo",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4536 of 973494 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]",
"Program log: Instruction: Mint New Edition from Master Edition Via Token",
"Program log: Transfer 5616720 lamports to the new account",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Allocate space for the account",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Assign the account to the owning program",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Transfer 2568240 lamports to the new account",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Allocate space for the account",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Assign the account to the owning program",
"Program 11111111111111111111111111111111 invoke [2]",
"Program 11111111111111111111111111111111 success",
"Program log: Setting mint authority",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: SetAuthority",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3090 of 919224 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program log: Setting freeze authority",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
"Program log: Instruction: SetAuthority",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3250 of 913695 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program log: Finished setting freeze authority",
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s consumed 59157 of 968958 compute units",
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s success"
],
"postBalances": [
168319600,
1461600,
2853600,
5616720,
2568240,
2039280,
1113600,
1,
36068855480,
731913600,
5616720,
2039280,
1141440,
1009200,
934087680
],
"postTokenBalances": [
{
"accountIndex": 5,
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"owner": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "1",
"decimals": 0,
"uiAmount": 1,
"uiAmountString": "1"
}
},
{
"accountIndex": 11,
"mint": "Gj9awCwtCqTAq77SMXeHH434jc3DSoweeZHEmqynMLSd",
"owner": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "1",
"decimals": 0,
"uiAmount": 1,
"uiAmountString": "1"
}
}
],
"preBalances": [
180015440,
0,
2853600,
0,
0,
0,
1113600,
1,
36068855480,
731913600,
5616720,
2039280,
1141440,
1009200,
934087680
],
"preTokenBalances": [
{
"accountIndex": 11,
"mint": "Gj9awCwtCqTAq77SMXeHH434jc3DSoweeZHEmqynMLSd",
"owner": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "1",
"decimals": 0,
"uiAmount": 1,
"uiAmountString": "1"
}
}
],
"rewards": [],
"status": {
"Ok": null
}
},
"slot": 156969824,
"transaction": {
"message": {
"accountKeys": [
{
"pubkey": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"signer": true,
"writable": true
},
{
"pubkey": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"signer": true,
"writable": true
},
{
"pubkey": "3mJuKd14MmFAvK65FevtoqP94Tdie7J4ADzKPcGHoGiN",
"signer": false,
"writable": true
},
{
"pubkey": "BriaLPteAb7FZDKWjJjVuf6GMfL2LD2jThERFfr7Y2yg",
"signer": false,
"writable": true
},
{
"pubkey": "DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"signer": false,
"writable": true
},
{
"pubkey": "DQuMYwiCccfBuptb4VhM7XzMyXEQGvbt2UZD12MwkUX8",
"signer": false,
"writable": true
},
{
"pubkey": "mcyvPrAZzTAM8seL99uXX2uAVWBGERmDBF3sWfdsHox",
"signer": false,
"writable": true
},
{
"pubkey": "11111111111111111111111111111111",
"signer": false,
"writable": false
},
{
"pubkey": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"signer": false,
"writable": false
},
{
"pubkey": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
"signer": false,
"writable": false
},
{
"pubkey": "DuHoeNvoKaRCMyc7YHDTvDEUa6c4U1tFvcvLYhSAM2rJ",
"signer": false,
"writable": false
},
{
"pubkey": "J8HZF5eVDcK2poLk1CBHLeHXKace87s8uKtfsywkSktr",
"signer": false,
"writable": false
},
{
"pubkey": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
"signer": false,
"writable": false
},
{
"pubkey": "SysvarRent111111111111111111111111111111111",
"signer": false,
"writable": false
},
{
"pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"signer": false,
"writable": false
}
],
"addressTableLookups": null,
"instructions": [
{
"parsed": {
"info": {
"lamports": 1461600,
"newAccount": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"source": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"space": 82
},
"type": "createAccount"
},
"program": "system",
"programId": "11111111111111111111111111111111"
},
{
"parsed": {
"info": {
"decimals": 0,
"freezeAuthority": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"mintAuthority": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"rentSysvar": "SysvarRent111111111111111111111111111111111"
},
"type": "initializeMint"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"parsed": {
"info": {
"account": "DQuMYwiCccfBuptb4VhM7XzMyXEQGvbt2UZD12MwkUX8",
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"rentSysvar": "SysvarRent111111111111111111111111111111111",
"source": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"systemProgram": "11111111111111111111111111111111",
"tokenProgram": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"wallet": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc"
},
"type": "create"
},
"program": "spl-associated-token-account",
"programId": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"parsed": {
"info": {
"account": "DQuMYwiCccfBuptb4VhM7XzMyXEQGvbt2UZD12MwkUX8",
"amount": "1",
"mint": "5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"mintAuthority": "HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF"
},
"type": "mintTo"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"accounts": [
"BriaLPteAb7FZDKWjJjVuf6GMfL2LD2jThERFfr7Y2yg",
"DJhMybTyKpVv9qjksNTjWnJwhkXrfpoc1S1EKssKL3fv",
"3mJuKd14MmFAvK65FevtoqP94Tdie7J4ADzKPcGHoGiN",
"5PjhMehXXzK1wHhJ8zeSfapGGzgaKWE9KJDKXQaK5v5q",
"mcyvPrAZzTAM8seL99uXX2uAVWBGERmDBF3sWfdsHox",
"HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"J8HZF5eVDcK2poLk1CBHLeHXKace87s8uKtfsywkSktr",
"HgQy5bqJd3GcjqakukhfMpqSjF7jEYxGiqAqh4QtTuHF",
"DuHoeNvoKaRCMyc7YHDTvDEUa6c4U1tFvcvLYhSAM2rJ",
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"11111111111111111111111111111111",
"SysvarRent111111111111111111111111111111111"
],
"data": "99X3FKQFQmoD",
"programId": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
}
],
"recentBlockhash": "Aje63CxxBz8xEZ8EESsZxZVDWzQfMMkP6eToHsgrR3o1"
},
"signatures": [
"49xL2NBz7DPRcrQYrvSKEoXBWyDBoRvx1wKCKzUJ4onK7sNyZ1PWQVneT46TSGifuFbxMAk5gCcVPqk3fpzJFqMV",
"4iKXNy2WtokjGAZfCAg3EAwEUuMNVZsFSPekjhXeS2fCBdc5TTW9pmt2MdduRTgdRn9rA3piiGL6kHany2X7EdV"
]
}
},
{
"blockTime": 1661104206,
"meta": {
"err": null,
"fee": 5000,
"innerInstructions": [],
"loadedAddresses": {
"readonly": [],
"writable": []
},
"logMessages": [
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
"Program log: Instruction: Burn",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4752 of 400000 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
"Program log: Instruction: CloseAccount",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2916 of 395248 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success"
],
"postBalances": [
36068855480,
0,
1461600,
934087680
],
"postTokenBalances": [],
"preBalances": [
36066821200,
2039280,
1461600,
934087680
],
"preTokenBalances": [
{
"accountIndex": 1,
"mint": "52KeweFN1DeoHgUpZp2BAfjQHYdXHfsDmGX3my6rKarV",
"owner": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "1",
"decimals": 0,
"uiAmount": 1,
"uiAmountString": "1"
}
}
],
"rewards": [],
"status": {
"Ok": null
}
},
"slot": 156611444,
"transaction": {
"message": {
"accountKeys": [
{
"pubkey": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"signer": true,
"writable": true
},
{
"pubkey": "2EGUgsp5HYjDd8Ar4SqZE6xjzherBwmAy2SBLHK5UA8D",
"signer": false,
"writable": true
},
{
"pubkey": "52KeweFN1DeoHgUpZp2BAfjQHYdXHfsDmGX3my6rKarV",
"signer": false,
"writable": true
},
{
"pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"signer": false,
"writable": false
}
],
"addressTableLookups": null,
"instructions": [
{
"parsed": {
"info": {
"account": "2EGUgsp5HYjDd8Ar4SqZE6xjzherBwmAy2SBLHK5UA8D",
"amount": "1",
"authority": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"mint": "52KeweFN1DeoHgUpZp2BAfjQHYdXHfsDmGX3my6rKarV"
},
"type": "burn"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"parsed": {
"info": {
"account": "2EGUgsp5HYjDd8Ar4SqZE6xjzherBwmAy2SBLHK5UA8D",
"destination": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"owner": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc"
},
"type": "closeAccount"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"recentBlockhash": "9fedWuo73yhe5xFnkuVeJfirdSfVeigH98aW3K5E49Se"
},
"signatures": [
"2DAJ9TJmAvZuBgpebHWfCjJhKngPCXg9cqkHp6qjrrSzx4Difygcjr95rGqGWoQmNdWdHu6yfMdysFwDUzseYYM3"
]
}
}
]
}
Get Transaction Details (deprecated)
Get particular transaction details from the transaction signature
Deprecated! Use Transaction Details endpoint instead.
GET /sol/v1/wallet/transaction
Query Params:
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
txn_signature: Transaction signature
const myHeaders = new Headers();
myHeaders.append("x-api-key", "QEbMrBRQEP92ToRo");
const requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("http://localhost:4000/sol/v1/wallet/transaction?network=devnet&txn_signature=fQ7tkCegzKYUGxDgrcCSiBkgebBzJsE3jWuc8aUXQdJztoUgL6EGvVQG2oPbMexAvAF2zyPxo3yTbqmAuefHLbc", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "Transaction details fetched successfully",
"result": {
"blockTime": 1667296261,
"meta": {
"err": null,
"fee": 5000,
"innerInstructions": [],
"logMessages": [
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
"Program log: Instruction: BurnChecked",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4753 of 200000 compute units",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success"
],
"postBalances": [
35491566202,
1461600,
2039280,
934087680
],
"postTokenBalances": [
{
"accountIndex": 2,
"mint": "7yPeRofJpfPkjLJ8CLB7czuk4sKG9toXWVq8CcHr4DcU",
"owner": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "0",
"decimals": 9,
"uiAmount": null,
"uiAmountString": "0"
}
}
],
"preBalances": [
35491571202,
1461600,
2039280,
934087680
],
"preTokenBalances": [
{
"accountIndex": 2,
"mint": "7yPeRofJpfPkjLJ8CLB7czuk4sKG9toXWVq8CcHr4DcU",
"owner": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"uiTokenAmount": {
"amount": "88000000100",
"decimals": 9,
"uiAmount": 88.0000001,
"uiAmountString": "88.0000001"
}
}
],
"rewards": [],
"status": {
"Ok": null
}
},
"slot": 172667542,
"transaction": {
"message": {
"accountKeys": [
{
"pubkey": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"signer": true,
"source": "transaction",
"writable": true
},
{
"pubkey": "7yPeRofJpfPkjLJ8CLB7czuk4sKG9toXWVq8CcHr4DcU",
"signer": false,
"source": "transaction",
"writable": true
},
{
"pubkey": "FHESNJFLo5dpGKPYbEuVv9izxwUVth6751VwG7DzoZYC",
"signer": false,
"source": "transaction",
"writable": true
},
{
"pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"signer": false,
"source": "transaction",
"writable": false
}
],
"addressTableLookups": null,
"instructions": [
{
"parsed": {
"info": {
"account": "FHESNJFLo5dpGKPYbEuVv9izxwUVth6751VwG7DzoZYC",
"authority": "2fmz8SuNVyxEP6QwKQs6LNaT2ATszySPEJdhUDesxktc",
"mint": "7yPeRofJpfPkjLJ8CLB7czuk4sKG9toXWVq8CcHr4DcU",
"tokenAmount": {
"amount": "88000000100",
"decimals": 9,
"uiAmount": 88.0000001,
"uiAmountString": "88.0000001"
}
},
"type": "burnChecked"
},
"program": "spl-token",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"recentBlockhash": "76A74DrejLhCufBhkTM9eNeLSNCSjjwUNnryxCRQmaAY"
},
"signatures": [
"fQ7tkCegzKYUGxDgrcCSiBkgebBzJsE3jWuc8aUXQdJztoUgL6EGvVQG2oPbMexAvAF2zyPxo3yTbqmAuefHLbc"
]
}
}
}
Create Semi Custodial Wallet
A type of wallet where Shyft holds half of your private keys while the other half is with the client or the end user.
POST /sol/v1/wallet/create_semi_wallet
We create a standard Solana wallet using keypair.generate()
. The private key is then encrypted with the provided password and random encryption parameters. In order to decrypt the key, we need the same password and the same encryption parameters.
So, password and encryption parameters act as 2 keys to unlock your wallet.
Shyft never ever stores or logs your password at any time. This can be confirmed with our open source code.
const myHeaders = new Headers();
myHeaders.append("x-api-key", "QEbMrBRQEP92ToRo");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"password": "Ishkaran"
});
const requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/create_semi_wallet/", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "Semi custodial wallet created successfully",
"result": {
"wallet_address": "VtkQHQt6GFggoNiWT7Tvafce6cJvCZbzEU8gBTez5rz"
}
}
Decrypt Semi Custodial Wallet
Decrypt a semi-custodial wallet and get an encrypted private key and decryption key.
You can only get decryption data for semi-custodial wallets created by you.
GET /sol/v1/wallet/decrypt_semi_wallet
const myHeaders = new Headers();
myHeaders.append("x-api-key", "QEbMrBRQEP92ToRo");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"wallet": "VtkQHQt6GFggoNiWT7Tvafce6cJvCZbzEU8gBTez5rz",
"password": "Ishkaran"
});
const requestOptions = {
method: 'GET',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/decrypt_semi_wallet", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "Decryption Data",
"result": {
"encryptedPrivateKey": "A9tP2aDsBNwSUojMc2eFF8qakkRRrfrYeUkGvFmZBHtrLPU7s9BNYupRazdMcbGuXtHpAbfW32MZgmGxdM5Z5U8wZrEZ5cNUcnjCSptRE2Hv3jB1zUP8JHKg8U44LM238ZUtHGUvZJcS1",
"decryptionKey": "{\"salt\":\"8YBdmxT3aoSCAAMBKwYw6V\",\"kdf\":\"pbkdf2\",\"digest\":\"sha256\",\"iterations\":100000,\"nonce\":\"GevsymPUrngEKXxBPWQvTyufrY9XKnsM9\"}"
}
}
Get Collections In Wallet
For all the NFTs in a wallet, this endpoint returns a list of collections and NFTs under those collections.
GET /sol/v1/wallet/collections
Query Params:
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet_address: Wallet address
var myHeaders = new Headers();
myHeaders.append("x-api-key", "QEbMrBRQEP92ToRo");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/collections?network=mainnet-beta&wallet_address=5wwb8L8FQyH3MRfQa6GpcP6xNt3XQqSC1wHiVTiLhQA6", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "All NFT collections",
"result": {
"collections": [
{
"address": null,
"name": "Lotus Gang",
"family": "Lotus Gang",
"nft_count": 10,
"nfts": [
{
"name": "Lotus Lad #1740",
"symbol": "",
"royalty": 5,
"mint": "CgWPdyFa2bLYkwwXQ2Mp4gmCxPesFsNoG8LSRXB3ut4B",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/W9Fa_EH0MnQruWK5kRe6asfkdvghElM7Wm7LeAE8Uio",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #1838",
"symbol": "",
"royalty": 5,
"mint": "3EJ4nASS8HGetB8MVLY4CiBi656oCEWxYTi8dTd4tS1U",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/s0ZwfSyp3uY7nljs8O_qGPrtY6QnwKrtkSHH8zqZyhU",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lady #1893",
"symbol": "",
"royalty": 5,
"mint": "GbPf7RejWLdkgXCj5M7EBjxwCUQSmu85LjJu81QgXPKj",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/0LWwoW6Ct-fnhxtakZ1IRbdsF7ryJs4vYB0RBUrjvwA",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #913",
"symbol": "",
"royalty": 5,
"mint": "EP8F2CdkCJpSbZmbQKzndSaLmYZB6JWhRs92yDTvDRBA",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/p6MLzS5nzFjo95IqnxRcKLsFNZACQ2w1YJLGVbEUMTU",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #1907",
"symbol": "",
"royalty": 5,
"mint": "9Qq8L3deKFhi66BoLTzmkfWU1e91Ne4Wu7wdP3R2upvq",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/TWjVsxfsZhLmKyWTFwDba00wgMxkMEDtkIFpnQaQ8yM",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #1766",
"symbol": "",
"royalty": 5,
"mint": "FtkqCYpvi2ZR6SddEPisr86didSJs2gHPX2Kpiag2eZe",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/MRk39_--zr1-oyT712zugYjI-sUWtyFgLjvP0is5h2c",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #301",
"symbol": "",
"royalty": 5,
"mint": "7UyTauyz2XXDPt4tCgPEBFH6VbfqNSC35NKFMq94wRxU",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/bF_b0uRITk22e0eZTG3cO33L6lFXGK59-hN-RwMsMV8",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #1226",
"symbol": "",
"royalty": 5,
"mint": "9QN9Pbj83BN4DtEE5zTaP1mSeW8cEqAaAnKRukxTaHGj",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/GuYnto1ZKO_VMJN1c6xB7P7gVPfYUkyqJT2I-rcHJlk",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lad #664",
"symbol": "",
"royalty": 5,
"mint": "BQgm4n4fBTwzZYYPtBm1KcmnzkmfyN3Qg888Dd1CtQNY",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/1lCzRTSSbKUTEQQEYzK7eY_vmz4Xh2Uc5Aj4ZYHj0Ts",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Lotus Lady #475",
"symbol": "",
"royalty": 5,
"mint": "FpxgXwfHAXtuKcY7nBnukJCY7vVxuXN1jFq4EgqGF5vs",
"update_authority": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"metadata_uri": "https://arweave.net/D4TlQe_xjch_ASlRYK-6ZPCztKPCPidi16bw-gIn7Mc",
"creators": [
{
"address": "3n1mz8MyqpQwgX9E8CNPPZtAdJa3aLpuCSMbPumM9wzZ",
"share": 100,
"verified": true
}
]
}
]
},
{
"address": null,
"name": "Lotus Crystal Bag",
"family": "Lotus Crystal Bag",
"nft_count": 1,
"nfts": [
{
"name": "Lotus Crystal Bag",
"symbol": "BAG",
"royalty": 0,
"mint": "7DktFS6MXjQ7iDeC9tCSUSrKPeocbzZZEh9TWxZDmQsa",
"update_authority": "BNc4Md2szbrsJ5EK5mhd9wwW5cDbDniAEKiZrHyicBxM",
"metadata_uri": "https://api.npoint.io/c8938cd74711c2acb3ca",
"creators": []
}
]
},
{
"address": null,
"name": "Critters Magic Bottle",
"family": "Critters Magic Bottle",
"nft_count": 1,
"nfts": [
{
"name": "Critters Magic Bottle",
"symbol": "BOTTLE",
"royalty": 0,
"mint": "DuXX1yc1DAa5qQJGJDDLiXktt15gcvxQTY8PDFUQxVFP",
"update_authority": "4o7na99ZyTVTYWGHdQo7efJdBea9rMxC82z2panneC5S",
"metadata_uri": "https://api.npoint.io/d1a5a660fe957b68794f",
"creators": []
}
]
},
{
"address": null,
"name": "unknown",
"family": null,
"nft_count": 9,
"nfts": [
{
"name": "moonlet bay [ty]",
"symbol": "",
"royalty": 15,
"mint": "Ha78By7Mx9TLiikQk7nY8nXDXcv6TbJmMb34cB16dxXg",
"update_authority": "DzbD8Ut5JVzk1tvKC9YwwkQajDZuEgFF5k31n6tSfYVB",
"metadata_uri": "https://bafkreico2f673735dwdap3tjudoggydzgr3kfl7zuf7icetyrwgoiz2364.ipfs.dweb.link?ext=json",
"creators": [
{
"address": "DzbD8Ut5JVzk1tvKC9YwwkQajDZuEgFF5k31n6tSfYVB",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Hoar",
"symbol": "CC",
"royalty": 6,
"mint": "4QB5qTqn9YXHQh5dxhRMAPFfjCis1a6wLRDangcmMNYs",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/XtgdazJcvOjEz4Firp6nRumgLeJuOKFXtEv59syoNGw",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Hila",
"symbol": "CC",
"royalty": 6,
"mint": "7BUBgoDtMJojZCrn5E4VzuDvobEa26uK5U5EdJ8at9C4",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/9yila8LZmYrr6kzzcheAP9cta5lKByDoHImZNaRFZbA",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Naps",
"symbol": "CC",
"royalty": 6,
"mint": "4FndyJgFzHkXPwtE88utKB9wTu5U1F1C2bktg9Ysnpmm",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/tuzdFz1nfsU1WOP5iQVHv8GESAs2CiDclgJ0fnlqXcM",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Lago",
"symbol": "CC",
"royalty": 6,
"mint": "6gYzPTQg7GA5gNdHZB7mLSnmcGpH2ZCGWUUWnb9j8UJK",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/NXPQNELIDwQNUCi5qodQpujfmYeEaMcewRLC3meQTe4",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Vehm",
"symbol": "CC",
"royalty": 6,
"mint": "5M8pESAhqmztemRK7LD3KAaSgmnHKZ9FiqyVjrpJrbex",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/-QxoPM5_mO8ouo79UulH-0bWVEWtndkwRuHHIOK4700",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Whom",
"symbol": "CC",
"royalty": 6,
"mint": "FreG4pRfYcnjGcUhh5aCbUiSPrUmUcMEda5HEexopiTP",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/dFbIOfGtEhP2hI9Tw_deOqUAoiISqsb4zP4B8T5D_PY",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Wail",
"symbol": "CC",
"royalty": 6,
"mint": "4GHJW6Km9roGwMnbpnnM3rJGbXscS7tntHZdTVnVfWQ4",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/72un106PL6O9g32DPLiLuU8SwB57sByQwTt-kuSGNXM",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
},
{
"name": "Critter Cyth",
"symbol": "CC",
"royalty": 6,
"mint": "Fz11mdbkQnnD2uCVga9c5wF4xv6k6jjzGWkTGYg9e6xY",
"update_authority": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"metadata_uri": "https://arweave.net/JFMp_fod0M5IqK74_2kP1A5YHT8W5TDyv-GE1QpDtcc",
"creators": [
{
"address": "6gWkABmdSeZsmcUXdRJDrgxAK95JeFHoo2XbcGCcdzm9",
"share": 0,
"verified": true
},
{
"address": "EKx4b376L4XkzKY7eTQ2SzXBwH4NKuHHjKbCpckJQyTZ",
"share": 100,
"verified": true
}
]
}
]
}
]
}
}
Get Stake Accounts
Get staking accounts of the given wallet.
Stake accounts on Solana can be used to assign tokens to validators on the network to potentially earn rewards for the owner of the stake account. Stake accounts are created and managed differently than traditional wallet addresses, known as system accounts. The system account is only able to send and receive SOL from other accounts on the network, while the stake account supports the more complex operations required to manage the delegation of tokens.
GET /sol/v1/wallet/stake_accounts
Query Params:
network: Solana blockchain environment (testnet/devnet/mainnet-beta)
wallet_address: Wallet address
page: (optional) The page number to get the results for a particular page. If no page number is specified, the
page
is 1size: (optional) The number of results to be returned for each page. The default number is 10 and a maximum of 10 is allowed.
var myHeaders = new Headers();
myHeaders.append("x-api-key", "QEbMrBRQEP92ToRo");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.shyft.to/sol/v1/wallet/stake_accounts?network=devnet&wallet_address=3YNyqvs6aGGtgtRKQ27ysP6GK5vVJ37vq86JWqyfyLD2&page=4&size=5", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"success": true,
"message": "All stake accounts associated with this wallet",
"result": {
"data": [
{
"stake_account_address": "7DgMe8jq3j9Q4SStyVpGSwvvuwpzXHbho6Rr6bcfgrkE",
"stake_authority_address": "3YNyqvs6aGGtgtRKQ27ysP6GK5vVJ37vq86JWqyfyLD2",
"withdraw_authority_address": "3YNyqvs6aGGtgtRKQ27ysP6GK5vVJ37vq86JWqyfyLD2",
"status": "initialized",
"total_amount": 0.011,
"rent": 0.00228288,
"delegated_amount": 0,
"active_amount": 0.00871712,
"activation_epoch": null,
"deactivation_epoch": null,
"state": "inactive"
},
{
"stake_account_address": "B2BtmDQLqDAYBy5PCR7mjduFJ2JuXtwj4fBsqWS9yKAn",
"stake_authority_address": "3YNyqvs6aGGtgtRKQ27ysP6GK5vVJ37vq86JWqyfyLD2",
"withdraw_authority_address": "3YNyqvs6aGGtgtRKQ27ysP6GK5vVJ37vq86JWqyfyLD2",
"vote_account_address": "i7NyKBMJCA9bLM2nsGyAGCKHECuR2L5eh4GqFciuwNT",
"status": "delegated",
"total_amount": 0.011,
"rent": 0.00228288,
"delegated_amount": 0.00871712,
"active_amount": 0.00871712,
"activation_epoch": 425,
"deactivation_epoch": null,
"state": "active"
}
],
"page": 3,
"size": 2,
"total_data": 168,
"total_page": 84
}
}
Last updated