Skip to main content
Class
final class DefaultSmartWalletService

Initializers

init(crossmintService:authManager:jsonCoder:)

init(crossmintService: any CrossmintService, authManager: any AuthManager, jsonCoder: any JSONCoder = DefaultJSONCoder())

Instance Properties

isProductionEnvironment

Inherited from WalletService.isProductionEnvironment.
var isProductionEnvironment: Bool { get }

Instance Methods

addSigner(_:chainType:chainName:)

Inherited from WalletService.addSigner(_:chainType:chainName:).
func addSigner(_ entry: DelegatedSignerEntry, chainType: ChainType, chainName: String) async throws(WalletError) -> AddDelegatedSignerResponse

approveSignature(_:)

Inherited from SignatureService.approveSignature(_:).
func approveSignature(_ request: SignRequest) async throws(SignatureError)

createSignature(_:)

Inherited from SignatureService.createSignature(_:).
func createSignature(_ request: CreateSignatureRequest) async throws(SignatureError) -> any SignatureApiModel

createTransaction(_:)

Inherited from TransactionService.createTransaction(_:).
func createTransaction(_ request: CreateTransactionRequest) async throws(TransactionError) -> any TransactionApiModel

createWallet(_:)

Inherited from WalletService.createWallet(_:).
func createWallet(_ request: CreateWalletParams) async throws(WalletError) -> WalletApiModel

fetchSignature(_:chainType:)

Inherited from SignatureService.fetchSignature(_:chainType:).
func fetchSignature(_ signatureId: String, chainType: ChainType) async throws(SignatureError) -> any SignatureApiModel

fetchTransaction(_:)

Inherited from TransactionService.fetchTransaction(_:).
func fetchTransaction(_ request: FetchTransactionRequest) async throws(TransactionError) -> any TransactionApiModel

fund(_:)

Inherited from WalletService.fund(_:).
func fund(_ request: FundWalletRequest) async throws(WalletError)

getBalance(_:)

Inherited from BalanceService.getBalance(_:).
func getBalance(_ params: GetBalanceQueryParams) async throws(WalletError) -> Balances

getNFTs(_:)

Inherited from NFTService.getNFTs(_:).
func getNFTs(_ params: GetNTFQueryParams) async throws(WalletError) -> [NFT]

getWallet(_:)

Inherited from WalletService.getWallet(_:).
func getWallet(_ request: GetMeWalletRequest) async throws(WalletError) -> WalletApiModel

listTransfers(_:)

Inherited from TransferService.listTransfers(_:).
func listTransfers(_ params: ListTransfersQueryParams) async throws(WalletError) -> TransferListResult

registerTypedSigner(_:chainType:chainName:)

Inherited from WalletService.registerTypedSigner(_:chainType:chainName:).
func registerTypedSigner(_ signer: any AdminSignerData, chainType: ChainType, chainName: String) async throws(WalletError) -> AddDelegatedSignerResponse

removeSigner(_:chainType:chainName:)

Inherited from WalletService.removeSigner(_:chainType:chainName:).
func removeSigner(_ signerLocator: String, chainType: ChainType, chainName: String) async throws(TransactionError) -> any TransactionApiModel

signTransaction(_:)

Inherited from TransactionService.signTransaction(_:).
func signTransaction(_ request: SignRequest) async throws(TransactionError) -> any TransactionApiModel

transferToken(_:)

Inherited from TransferService.transferToken(_:).
func transferToken(_ request: TransferTokenRequest) async throws(TransactionError) -> any TransactionApiModel