Skip to main content

Crossmint wallet implementation for GOAT SDK

Project description

Crossmint Wallet Implementation for GOAT SDK

This package provides Crossmint wallet integration for the GOAT SDK, supporting both EVM Smart Wallets and Solana Custodial Wallets.

Features

  • EVM Smart Wallet support
  • Solana Custodial Wallet support
  • Async API client for Crossmint interactions
  • Support for multiple authentication methods (email, phone, user ID)
  • Transaction and signature management
  • Balance queries and ENS resolution

Installation

poetry add goat-sdk-wallet-crossmint

Usage

from goat_wallets.crossmint import smart_wallet_factory, custodial_factory
from crossmint.common_sdk_base import CrossmintApiClient

# Initialize Crossmint client
crossmint_client = CrossmintApiClient(...)

# Create Smart Wallet
smart_wallet = await smart_wallet_factory(crossmint_client)({
    # Required: One of the following to locate the wallet
    "address": "0x...",  # Wallet address, or use linkedUser instead:
    # "linkedUser": {
    #     "email": "user@example.com",  # Or use phone/userId
    #     # "phone": "+1234567890",
    #     # "userId": "user-id"
    # },
    "chain": "base",  # or "ethereum", etc.
    "signer": {
        "secretKey": "0x..."  # Private key for signing
    },
    "provider": "https://base-mainnet.g.alchemy.com/v2/your-api-key",
    "options": {
        "ensProvider": "https://base-mainnet.g.alchemy.com/v2/your-api-key"  # Optional: For ENS resolution
    }
})

# Create Custodial Solana Wallet
custodial_wallet = await custodial_factory(crossmint_client)({
    "connection": solana_connection,  # Solana RPC connection
    # One of the following for wallet location:
    "email": "user@example.com",
    # "phone": "+1234567890",
    # "userId": "user-id",
    # "address": "solana-address"
})

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

goat_sdk_wallet_crossmint-0.1.5.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goat_sdk_wallet_crossmint-0.1.5-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file goat_sdk_wallet_crossmint-0.1.5.tar.gz.

File metadata

  • Download URL: goat_sdk_wallet_crossmint-0.1.5.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/6.13.0-1-MANJARO

File hashes

Hashes for goat_sdk_wallet_crossmint-0.1.5.tar.gz
Algorithm Hash digest
SHA256 fbbc008dd7f3a0f305e8f9ea968e32a7d198e6204356731f616f75decb5790b2
MD5 77fe69e5ff5a262250252823852ce504
BLAKE2b-256 08ed481f8d86bb51e2b926ff90e951e7d58c6de8479e67fae60f2821937bcfa0

See more details on using hashes here.

File details

Details for the file goat_sdk_wallet_crossmint-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for goat_sdk_wallet_crossmint-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9e5551cdc7a6e0649c3f15dbf87cf203ce11c7d95c099064da90472b906d5ad5
MD5 68f6c57eafb1398cb538f8d3f360e7e2
BLAKE2b-256 f49afb5b0d925689387c9c3e01762f6b1b0d1fafaf6fece98052aca97f70fbb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page