Skip to main content

Overview

The Dynamic Swift SDK provides wallet management functionality for Ethereum-based wallets. This guide covers the core wallet operations demonstrated in the sample application: creating wallets, checking balances, signing messages, and sending transactions.

Prerequisites

Wallet Creation

Create New Wallet Account

To create a new wallet for an authenticated user, use the createWalletAccount function:

Wallet Initialization from Existing Address

Initialize Ethereum Wallet from Address

Once a wallet exists (either created or already present), you can initialize an EthereumWallet instance:

Get Wallet from Verified Credentials

Wallet Information

Get Wallet Address

Get Wallet Properties

Balance Management

Get Wallet Balance

Switch to Sepolia Network

Message Signing

Sign a Message

Verify Signature

Transaction Management

Send ETH Transaction

Key Shares Management

Check Key Shares Availability

Network Management

Sepolia Testnet

Error Handling

Common Wallet Errors

Best Practices

1. Network Switching

Always switch to Sepolia before performing operations:

2. Gas Price Fetching

Get current gas prices for transactions: