Windows installation requires MinGW. The recommended way to install is through chocolatey.
After installing chocolatey, run:
Copy
Ask AI
choco install mingw
Make sure MinGW is in your PATH (e.g., C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin).For more details and troubleshooting, see the starknet.py installation guide.
2
Install the Python SDK
Copy
Ask AI
pip install chipi-python
Apple Silicon Installation
If you’re on an Apple Silicon Mac (M1/M2/M3) and encounter issues, use these flags:
from chipi_sdk import CreateWalletParams, WalletType# Create a new walletwallet_response = sdk.create_wallet( params=CreateWalletParams( encrypt_key="user-secure-pin", external_user_id="your-user-id-123", wallet_type=WalletType.CHIPI, # Optional, defaults to CHIPI ))print(f"Wallet created: {wallet_response.wallet_public_key}")print(f"Transaction hash: {wallet_response.tx_hash}")# Store these values for later usewallet_data = wallet_response.wallet# wallet_data.public_key# wallet_data.encrypted_private_key
6
Make Your First Transfer
Transfer USDC between wallets:
Copy
Ask AI
from chipi_sdk import TransferParams, ChainToken# Transfer USDCtx_hash = sdk.transfer( params=TransferParams( encrypt_key="user-secure-pin", wallet=wallet_data, # WalletData from creation token=ChainToken.USDC, recipient="0x1234567890abcdef...", # Recipient address amount="1.5", # Amount in USDC ))print(f"Transfer completed! TX: {tx_hash}")print(f"View on Starkscan: https://starkscan.co/tx/{tx_hash}")
7
Environment Variables (Recommended)
For production applications, store your API keys as environment variables: