API Reference

Partner API Documentation

circle-info

📚 Quick Navigation: Use the page outline in the right sidebar to jump to specific API endpoints.

circle-exclamation

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 key

  • 400 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

Field
Type
Description

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

Parameter
Type
Required
Default
Description

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:

Field
Type
Description

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

Parameter
Type
Required
Description

caip2Id

string

Yes

Chain identifier in CAIP-2 format

Common CAIP-2 IDs

  • Ethereum: eip155:1

  • Solana: solana:mainnet-beta

  • Polygon: eip155:137

  • Arbitrum: eip155:42161

  • Base: eip155:8453

  • Optimism: eip155:10

  • BSC: eip155:56

  • Avalanche: 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

Parameter
Type
Required
Default
Description

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%)

circle-exclamation

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

Parameter
Type
Required
Description

txHash

string

Yes

Source chain transaction hash

bridge

string

No

Bridge provider name (e.g., "lifi") for faster lookup

Response - Completed Transaction

circle-info

Status Values:

  • NOT_FOUND: Transaction not found or not yet indexed

  • PENDING: Transaction in progress, waiting for confirmations

  • DONE: Transaction completed successfully on both chains

  • FAILED: Transaction failed or reverted

Polling Recommendations:

  • Poll every 10-30 seconds for pending transactions

  • Stop polling once status is DONE or FAILED

  • Bridge transactions typically take 2-10 minutes depending on chains


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 Request before 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

Status Code
Error
Description

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:1

  • Polygon: eip155:137

  • Solana: solana:mainnet-beta

  • Bitcoin: 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

circle-check

🆘 Support


📄 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