Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get Wallet Portfolio

GEThttps://solana-gateway.moralis.io/account/:network/:address/portfolio

Gets all the native and token balances of the given address

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address to query
QUERY PARAMS
nftMetadataboolean
Should return the full NFT metadata
mediaItemsboolean
Should return media items
excludeSpamboolean
Should exclude spam NFTs
Responses
200
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://solana-gateway.moralis.io/account/mainnet/kXB7FfzdrfZpAZEW3TZcp8a8CwQbsowa6BdfAHZ4gVs/portfolio?nftMetadata=false&mediaItems=false&excludeSpam=true' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"nfts": {
"associatedTokenAddress": "",
"mint": "",
"name": "",
"symbol": "",
"tokenStandard": "",
"amount": "",
"amountRaw": "",
"decimals": "",
"possibleSpam": "",
"totalSupply": "",
"attributes": {
"traitType": ""
},
"creators": {
"address": "",
"share": "",
"verified": ""
},
"media": ""
},
"tokens": {
"associatedTokenAddress": "",
"mint": "",
"name": "",
"symbol": "",
"tokenStandard": "",
"amount": "",
"amountRaw": "",
"decimals": "",
"logo": "",
"isVerifiedContract": "",
"possibleSpam": ""
}
}