Wallet
Transaction history
Record what the user sent so it shows up on every device they sign in on. The record is yours to fill: Decane does not watch the chain.
swift
let record = try await wallet.recordTransaction(RecordTransactionInput(
chain: "evm:8453",
txHash: "0x…",
to: "0x…",
value: "1000000000000000",
kind: "transfer",
status: "pending",
metadataJSON: #"{"note":"rent"}"#
))
let history = try await wallet.transactionHistory(limit: 50) // [TransactionRecord]TransactionRecord has id, chain, kind, txHash, to, value, status, metadata, createdAt and updatedAt.