Swift Protocol
protocol SmartWalletService : AuthenticatedService
var isProductionEnvironment: Bool { get }
func approveSignature(_ request: SignRequest) async throws(SignatureError)
func createSignature(_ request: CreateSignatureRequest) async throws(SignatureError) -> any SignatureApiModel
func createTransaction(_ request: CreateTransactionRequest) async throws(TransactionError) -> any TransactionApiModel
func createWallet(_ request: CreateWalletParams) async throws(WalletError) -> WalletApiModel
func fetchSignature(_ signatureId: String, chainType: ChainType) async throws(SignatureError) -> any SignatureApiModel
func fetchTransaction(_ fetchTransactionRequest: FetchTransactionRequest) async throws(TransactionError) -> any TransactionApiModel
func fund(_ request: FundWalletRequest) async throws(WalletError)
func getBalance(_ params: GetBalanceQueryParams) async throws(WalletError) -> Balances
func getNFTs(_ params: GetNTFQueryParams) async throws(WalletError) -> [NFT]
func getWallet(_ request: GetMeWalletRequest) async throws(WalletError) -> WalletApiModel
func signTransaction(_ request: SignRequest) async throws(TransactionError) -> any TransactionApiModel
func transferToken(chainType: String, tokenLocator: String, recipient: String, amount: String, idempotencyKey: String?) async throws(TransactionError) -> any TransactionApiModel
Was this page helpful?