mcpField
M
moonpay-block-explorer

moonpay-block-explorer

github.com/moonpayOther11247 installsUpdated 23w ago
Repository

About moonpay-block-explorer

moonpay-block-explorer is a skill for locating block explorer pages for transactions, wallets, and tokens. It selects an explorer by chain and explains how to extract details from MoonPay command results and open the page.

Key features

  1. 01Build transaction explorer links across chains
  2. 02Open wallet address pages
  3. 03Open token contract pages
  4. 04Extract chains and hashes from results
  5. 05Provide macOS and Linux opening commands

Use cases

  1. 01Inspect swap or bridge transactions
  2. 02Review a wallet's on-chain activity
  3. 03View token contract and holder information

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/moonpay/skills --skill moonpay-block-explorer

After installing, type/moonpay-block-explorerin Claude Code to confirm it loaded.

Details

From the project README

Block explorer

Goal

After any swap, bridge, or transfer, open the result in the correct block explorer. Also useful for viewing wallet addresses and token contract pages.

Explorer URLs

ChainTransactionWalletToken
solanahttps://solscan.io/tx/{sig}https://solscan.io/account/{addr}https://solscan.io/token/{addr}
ethereumhttps://etherscan.io/tx/{hash}https://etherscan.io/address/{addr}https://etherscan.io/token/{addr}
basehttps://basescan.org/tx/{hash}https://basescan.org/address/{addr}https://basescan.org/token/{addr}
polygonhttps://polygonscan.com/tx/{hash}https://polygonscan.com/address/{addr}https://polygonscan.com/token/{addr}
arbitrumhttps://arbiscan.io/tx/{hash}https://arbiscan.io/address/{addr}https://arbiscan.io/token/{addr}
optimismhttps://optimistic.etherscan.io/tx/{hash}https://optimistic.etherscan.io/address/{addr}https://optimistic.etherscan.io/token/{addr}
bnbhttps://bscscan.com/tx/{hash}https://bscscan.com/address/{addr}https://bscscan.com/token/{addr}
avalanchehttps://snowscan.xyz/tx/{hash}https://snowscan.xyz/address/{addr}https://snowscan.xyz/token/{addr}
bitcoinhttps://mempool.space/tx/{txid}https://mempool.space/address/{addr}—

Open a transaction

After a swap or bridge, extract the chain and tx hash, then open:

# macOS
open "https://solscan.io/tx/5rQ52JVb6q7H..."

# Linux
xdg-open "https://etherscan.io/tx/0xabcd..."
From swap/bridge output

mp token swap and mp token bridge return a result with the transaction signature. Use the chain to pick the correct explorer.

RESULT=$(mp --json token swap --wallet main --chain solana \
  --from-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --from-amount 1 \
  --to-token So11111111111111111111111111111111111111111)

# Open in browser
SIG=$(echo "$RESULT" | jq -r '.signature')
open "https://solscan.io/tx/$SIG"
From transaction list

mp transaction list returns transactions with from.txHash and to.txHash. Use the chain field to pick the explorer:

# View most recent transaction
TX=$(mp --json transaction list --wallet <addr> | jq -r '.items[0].from.txHash')
CHAIN=$(mp --json transaction list --wallet <addr> | jq -r '.items[0].from.chain')
# Build URL from chain → explorer table above

Open a wallet

View all on-chain activity for a wallet address:

# Solana wallet
open "https://solscan.io/account/N39jn2g1tA7dmdyyoHt9yiQegQoVhnfQzq1ZzuZRF9e"

# EVM wallet (same address works on any EVM explorer)
open "https://etherscan.io/address/0xf9e39F70d7636902e57a89C18B1BE39EBb5b9589"

Get wallet addresses from: mp wallet list or mp wallet retrieve --wallet <name>

Open a token page

View token contract, holders, and market data on the explorer:

# USDC on Solana
open "https://solscan.io/token/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

# USDC on Ethereum
open "https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"

Get token addresses from: mp token search --query "USDC" --chain solana

Open a checkout URL

mp buy returns a checkout URL. Open it directly:

URL=$(mp --json buy --token sol --amount 1 --wallet <addr> --email <email> | jq -r '.url')
open "$URL"

Platform detection

if [[ "$OSTYPE" == "darwin"* ]]; then
  open "$URL"
else
  xdg-open "$URL"
fi

Tips

  • After any swap, bridge, or transfer, offer to open the result in the explorer
  • EVM wallets share one address across all EVM chains — the same address works on etherscan, basescan, polygonscan, etc.
  • Bitcoin uses mempool.space — no token pages, just transactions and addresses
  • Solana signatures are base58 strings, EVM tx hashes start with 0x

Related skills

  • moonpay-swap-tokens — Swap and bridge commands that produce transaction signatures
  • moonpay-buy-crypto — Buy commands that return checkout URLs
  • moonpay-check-wallet — Get wallet addresses to view on explorers

Comments

Markdown supported