Structs
Transfer
Swift Structure
Structure
Represents a token transfer event in the wallet’s transaction history.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Swift Structure
struct Transfer
let result = try await wallet.listTransfers(tokens: [.eth, .usdc])
for transfer in result.transfers {
print("\(transfer.type): \(transfer.amount) \(transfer.tokenSymbol ?? "tokens")")
}
init(type: TransferType, fromAddress: String, toAddress: String, transactionHash: String, tokenSymbol: String?, amount: Decimal, rawAmount: String, timestamp: Date, mintHash: String?)
| Property | Type | Description |
|---|---|---|
amount | Decimal | The human-readable amount of tokens transferred. |
fromAddress | String | The blockchain address that sent the transfer. |
id | String | Inherited from Identifiable.id. |
mintHash | String? | The mint hash for NFT transfers. |
rawAmount | String | The raw amount string as returned by the API. |
timestamp | Date | The date and time when the transfer occurred. |
toAddress | String | The blockchain address that received the transfer. |
tokenSymbol | String? | The symbol of the token involved in the transfer. |
transactionHash | String | The unique hash identifying this transaction on the blockchain. |
type | TransferType | The direction of the transfer relative to the wallet. |
Was this page helpful?
