API Reference
Partner API Documentation
🔑 Need an API Key? Contact partners@snowball.money to get started with Partner API access and receive your credit allocation.
Overview
The Partner API provides access to Snowball's identity resolution and cross-chain bridge services. Partners can integrate these APIs to offer naming service search and blockchain bridging capabilities to their users.
All API endpoints are credit-based, with each operation consuming a predetermined number of credits from your partner account balance.
🔐 Authentication
All Partner API endpoints require authentication using an API key passed in the request header.
Header Required
x-api-key: <your-partner-api-key>Example Request
curl -X GET "https://api.snowball.money/partners/stats" \
-H "x-api-key: your_api_key_here"Error Responses
401 Unauthorized- Invalid or missing API key400 Bad Request- Insufficient credits for the operation
📊 Account Management
Get Partner Stats
Retrieve your current credit balance, usage statistics, and account information.
Endpoint: GET /partners/stats
Cost: Free (no credits consumed)
Request
Response
Response Fields
email
string
Partner account email
name
string
Partner account name
creditBalance
number
Remaining credits available
creditUsage
number
Total credits consumed
🔍 CIP (Cross-Identity Payments)
The CIP API allows you to search for identities across multiple naming services including MNS (Modular Naming Service), ENS (Ethereum Name Service), and other supported providers.
Search Identities
Search for identities across all supported naming services with a single request.
Endpoint: GET /partners/cip/identity/search
Cost: 1 credit per request
Request
Query Parameters
query
string
Yes
-
Identity name to search for
page
number
No
1
Page number for pagination
perPage
number
No
10
Results per page (max: 50)
Response
🌉 Bridge API
The Bridge API enables cross-chain token transfers by aggregating quotes from multiple bridge providers and tracking transaction status.
1. Get Supported Chains
Retrieve a list of all blockchain networks supported for cross-chain bridging.
Endpoint: GET /partners/bridge/chains
Cost: 1 credit per request
Request
Response
Response Fields
Chain Object:
caip2Id
string
Chain identifier in CAIP-2 format
name
string
Human-readable chain name
nativeToken
string
Native token symbol (e.g., ETH, SOL)
logoURI
string
Chain logo image URL
isBridgeSupported
boolean
Whether bridging is supported on this chain
2. Get Tokens for a Chain
Retrieve a list of tokens available for bridging on a specific blockchain.
Endpoint: GET /partners/bridge/tokens
Cost: 1 credit per request
Request
Query Parameters
caip2Id
string
Yes
Chain identifier in CAIP-2 format
Common CAIP-2 IDs
Ethereum:
eip155:1Solana:
solana:mainnet-betaPolygon:
eip155:137Arbitrum:
eip155:42161Base:
eip155:8453Optimism:
eip155:10BSC:
eip155:56Avalanche:
eip155:43114
Response
3. Get Bridge Quote
Request quotes for bridging tokens from one chain to another. Returns available routes with pricing, fees, and transaction data needed for execution.
Endpoint: GET /partners/bridge/quote
Cost: 2 credits per request
Request
Query Parameters
fromChain
string
Yes
-
Source chain CAIP-2 ID
toChain
string
Yes
-
Destination chain CAIP-2 ID
fromToken
string
Yes
-
Source token contract address
toToken
string
Yes
-
Destination token contract address
fromAmount
string
Yes
-
Amount to bridge in token's base units
fromAddress
string
Yes
-
Source wallet address
toAddress
string
No
fromAddress
Destination wallet address
slippage
number
No
0.03
Slippage tolerance (0.01 = 1%, 0.3 = 30%)
Amount Format: Amounts must be specified in the token's smallest unit (considering decimals):
For USDC (6 decimals): 1 USDC =
1000000For SOL (9 decimals): 1 SOL =
1000000000For ETH (18 decimals): 1 ETH =
1000000000000000000
Native Token Addresses:
EVM chains: Use
0x0000000000000000000000000000000000000000for native tokens (ETH, BNB, etc.)Solana: Use
11111111111111111111111111111111for SOL
Response
4. Check Bridge Transaction Status
Track the progress of a cross-chain bridge transaction from initiation to completion.
Endpoint: GET /partners/bridge/status
Cost: 1 credit per request
Request
Query Parameters
txHash
string
Yes
Source chain transaction hash
bridge
string
No
Bridge provider name (e.g., "lifi") for faster lookup
Response - Completed Transaction
Credit Deduction Policy
Credits are deducted after a successful response (HTTP 200)
Failed requests (4xx, 5xx errors) do not consume credits
Requests with insufficient credits return
400 Bad Requestbefore execution
Quick Start Examples
Example 1: Search for an Identity
Example 2: Get Bridge Quote (Solana → Ethereum)
Example 3: Check Your Credit Balance
🔧 Error Handling
Standard Error Response Format
Common Error Codes
400
Bad Request
Invalid parameters or insufficient credits
401
Unauthorized
Invalid or missing API key
404
Not Found
Resource not found
429
Too Many Requests
Rate limit exceeded
500
Internal Server Error
Server-side error
503
Service Unavailable
Service temporarily unavailable or external API failure
Error Examples
Insufficient Credits
Invalid API Key
📚 Additional Resources
CAIP-2 Format
CAIP-2 (Chain Agnostic Improvement Proposal) is a standard for blockchain identification.
Format: namespace:reference
Examples:
Ethereum:
eip155:1Polygon:
eip155:137Solana:
solana:mainnet-betaBitcoin:
bip122:000000000019d6689c085ae165831e93
Supported Naming Services
MNS (Modular Naming Service) - Snowball's native naming service
ENS (Ethereum Name Service) - Ethereum-based naming service
Additional providers coming soon
🆘 Support
For API support, integration assistance, or to request/increase credits:
Email: support@snowball.money
Documentation: https://snowball-mns.gitbook.io/snowball
📄 Terms of Service
By using the Partner API, you agree to:
Use credits responsibly and not attempt to abuse the service
Not resell API access without written permission
Properly attribute Snowball in your application
Comply with all applicable laws and regulations
Credits are non-refundable. Snowball reserves the right to suspend access for violations of the terms of service.
Last updated