Help us improve
Share bugs, ideas, or general feedback.
From alchemy-skills
Exports MoonPay portfolio balances and transaction history to CSV or JSON for spreadsheets and tax reporting.
npx claudepluginhub moonpay/skills --plugin moonpay-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/alchemy-skills:moonpay-export-dataThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Save portfolio snapshots and transaction history to CSV or JSON files using `mp` output piped through `jq`. Useful for spreadsheets, tax reporting, and record-keeping.
Imports Wise (TransferWise) CSV transaction exports into accounting systems, handling multi-currency transfers, conversion fees, deduplication by ID, and categorization.
Set up the MoonPay CLI, authenticate with email/OTP, and manage local encrypted wallets. Use when commands fail, for login, or to create/import wallets.
Analyzes Kraken crypto portfolios using kraken CLI: fetches balances/prices for valuation/P&L, trade history/ledgers, fees/volume tiers, exports reports.
Share bugs, ideas, or general feedback.
Save portfolio snapshots and transaction history to CSV or JSON files using mp output piped through jq. Useful for spreadsheets, tax reporting, and record-keeping.
jq installed: which jq~/Documents/moonpay/ (create if needed)Export all token balances for a wallet on a specific chain:
mkdir -p ~/Documents/moonpay
# Header + data
echo "symbol,name,amount,usd_value,price" > ~/Documents/moonpay/portfolio-$(date +%Y%m%d).csv
mp --json token balance list --wallet <address> --chain solana \
| jq -r '.items[] | [.symbol, .name, .balance.amount, .balance.value, .balance.price] | @csv' \
>> ~/Documents/moonpay/portfolio-$(date +%Y%m%d).csv
Loop over chains and append to one file:
FILE=~/Documents/moonpay/portfolio-$(date +%Y%m%d).csv
echo "chain,symbol,name,amount,usd_value,price" > "$FILE"
for CHAIN in solana ethereum base polygon arbitrum; do
mp --json token balance list --wallet <address> --chain "$CHAIN" \
| jq -r --arg chain "$CHAIN" '.items[] | [$chain, .symbol, .name, .balance.amount, .balance.value, .balance.price] | @csv' \
>> "$FILE" 2>/dev/null
done
Note: EVM wallets share one address across all EVM chains. Solana uses a different address.
Export swap and bridge history. These are transactions executed via the CLI and registered with swaps.xyz — not all on-chain activity.
echo "date,type,from_chain,from_token,from_amount,to_chain,to_token,to_amount,usd,status" \
> ~/Documents/moonpay/transactions-$(date +%Y%m%d).csv
mp --json transaction list --wallet <address> \
| jq -r '.items[] | [
.transactionId,
.type,
.from.chain, .from.token, .from.amount,
.to.chain, .to.token, .to.amount,
.usd,
.status
] | @csv' \
>> ~/Documents/moonpay/transactions-$(date +%Y%m%d).csv
mp --json transaction list --wallet <address> --chain solana \
| jq -r '.items[] | ...' >> transactions.csv
For structured data or programmatic use:
mp --json token balance list --wallet <address> --chain solana \
| jq '.items | map({symbol, amount: .balance.amount, usd: .balance.value})' \
> ~/Documents/moonpay/portfolio-$(date +%Y%m%d).json
After writing the file, open it in the default app:
# macOS — opens in Numbers/Excel
open ~/Documents/moonpay/portfolio-$(date +%Y%m%d).csv
# Linux
xdg-open ~/Documents/moonpay/portfolio-$(date +%Y%m%d).csv
jq @csv handles proper CSV escaping (quotes, commas in values)portfolio-20260222.csvmp transaction list only includes CLI-executed swaps/bridges registered via swaps.xyz, not all on-chain transactionsmp token balance list --wallet <addr> --chain <chain> directly