UNPKG

@venly/venly-core-sdk

Version:

Javascrip/Typescript SDK for Venly's Web3 Services

400 lines 28.6 kB
import { VyPromise, VyUserAuth } from '../core'; import { Any } from '../helpers/json'; import * as wallet from '../models/wallet/index'; import * as enums from '../models/enums/index'; import { VyApiBase } from './VyApiBase'; export declare abstract class VyWalletAPI_Gen { protected _apiBase: VyApiBase; protected _apiEndpoint: enums.VyApiEndpoint; constructor(_apiBase: VyApiBase); /** * This endpoint is used to check the current health of the **Wallet-API**. It returns the API health status as either **UP** or **DOWN**. * @returns {VyHealthCheckWalletResponse} Wallet-API health result */ checkHealth(): VyPromise<wallet.VyHealthCheckWalletResponse>; /** * This endpoint is used to get all your users. * @param {VyQuery_GetUsers} query - Query to filter the operation results * @returns {VyUserDto[]} All users retrieved successfully. */ getUsers(query?: wallet.VyQuery_GetUsers): VyPromise<wallet.VyUserDto[]>; /** * This endpoint is used to create a user. * @param {VyCreateUserDto} reqParams - Request data for the operation * @returns {VyUserDto} User is created */ createUser(reqParams: wallet.VyCreateUserDto): VyPromise<wallet.VyUserDto>; /** * This endpoint retrives the details of a user by their `userId`. * @param {string} userId - This is the user `ID` whose details you want to fetch. * @returns {VyUserDto} A specific user's details retrieved successfully. */ getUser(userId: string): VyPromise<wallet.VyUserDto>; /** * This endpoint is used to update the reference of a user by `userId`. * @param {string} userId - This is the user `ID` whose **reference** you want to update. * @param {VyUpdateUserReferenceDto} reqParams - Request data for the operation * @returns {VyUserDto} User's reference updated successfully. */ updateUserReference(userId: string, reqParams: wallet.VyUpdateUserReferenceDto): VyPromise<wallet.VyUserDto>; /** * This endpoint deletes a user. All the linked wallets to the user will be inaccessible once the user has been deleted. * @param {string} userId - This is the `ID` of the user you want to delete. * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user */ deleteUser(userId: string, signingMethod: VyUserAuth): VyPromise<Any>; /** * This endpoint creates a signing method for your user. The signing method should be provided in the header call unless it's the first signing method for the user. The first signing method should always be `PIN`, and it should be 6 digits. * @param {string} userId - This is the `ID` of user whose **signing method** you want to create. * @param {VyCreateSigningMethodRequestBase} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VySigningMethodBase} Signing method is created for user. */ createUserSigningMethod(userId: string, reqParams: wallet.VyCreateSigningMethodRequestBase, signingMethod: VyUserAuth): VyPromise<wallet.VySigningMethodBase>; /** * This endpoint is used to update a user's signing method. This can be done, in case the user forgets their PIN. In order to update a signing method, another valid signign method has to be passed in the header. * @param {string} userId - This is the `ID` of the user whos signing method you want to update. * @param {string} signingMethodId - This is the `ID` of signing method you want to update. * @param {VyUpdateSigningMethodRequest} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VySigningMethodBase} Signing method of user updated successfully. */ updateUserSigningMethod(userId: string, signingMethodId: string, reqParams: wallet.VyUpdateSigningMethodRequest, signingMethod: VyUserAuth): VyPromise<wallet.VySigningMethodBase>; /** * This endpoint is used to delete a user's signing method. * @param {string} userId - This is the `ID` of the user whos signing method you want to delete. * @param {string} signingMethodId - This is the `ID` of signing method you want to delete. * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user */ deleteUserSigningMethod(userId: string, signingMethodId: string, signingMethod: VyUserAuth): VyPromise<Any>; /** * This endpoint gets a wallet by id. * @param {string} id - This is the ID of the wallet who's details you want to get. * @param {VyQuery_GetWallet} query - Query to filter the operation results * @returns {VyWalletDto} Retrieved the wallet's information successfully. */ getWallet(id: string, query?: wallet.VyQuery_GetWallet): VyPromise<wallet.VyWalletDto>; /** * This endpoint is used to update the wallet description and to archive or unarchive the wallet. * @param {string} id - This is the `ID` of the wallet * @param {VyUpdateWalletDto} reqParams - Request data for the operation * @returns {VyWalletDto} Wallet description and/or arhive/unarchive successful. */ updateWallet(id: string, reqParams: wallet.VyUpdateWalletDto): VyPromise<wallet.VyWalletDto>; /** * This endpoint gets all wallets. * @param {VyQuery_GetWallets} query - Query to filter the operation results * @returns {VyWalletDto[]} Retrieved all wallets information successfully. */ getWallets(query?: wallet.VyQuery_GetWallets): VyPromise<wallet.VyWalletDto[]>; /** * This endpoint is used to create a wallet. * @param {VyCreateApiWalletRequest} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyWalletDto} Wallet created successfully. */ createWallet(reqParams: wallet.VyCreateApiWalletRequest, signingMethod: VyUserAuth): VyPromise<wallet.VyWalletDto>; /** * Please note that exporting a password-secured keystore enhances protection against man-in-the-middle attacks. We do not allow exporting of private keys by default due to associated risks. Exporting a wallet means the private key, granting access to the wallet, is beyond our control. If this key is compromised, it can be misused, leading to unauthorized access and potential loss. Enabling this feature in production carries significant risks, and caution is advised. * @param {string} walletId - This is the `ID` of the wallet whose keystore/ private key you want to export. * @param {VyExportWalletDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyExportWalletResultDto} Wallet exported successfully. */ exportWallet(walletId: string, reqParams: wallet.VyExportWalletDto, signingMethod: VyUserAuth): VyPromise<wallet.VyExportWalletResultDto>; /** * This endpoint is used to import a wallet. Read more about [how to import a wallet](https://docs.venly.io/docs/import-a-wallet). * @param {VyWalletImportRequestOneOf} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyWalletDto} Wallet imported successfully. */ importWallet(reqParams: wallet.VyWalletImportRequestOneOf, signingMethod: VyUserAuth): VyPromise<wallet.VyWalletDto>; /** * This endpoint is used to validate whether the format of a wallet address is correct for a specific chain. * @param {VyChain} chain - The blockchain of the wallet * @param {string} walletAddress - The public wallet address of the wallet * @returns {VyValidWalletAddressDto} Wallet address format validated successfully. */ validateWallet(chain: enums.VyChain, walletAddress: string): VyPromise<wallet.VyValidWalletAddressDto>; /** * This endpoint retrieves all the events related to a wallet by `walletId`. The events can be wallet created, funds transfer, signed signature, etc. * @param {string} walletId - The `ID` of the wallet * @returns {VyWalletEventDto[]} Retrieved all wallet events successfully. */ getWalletEvents(walletId: string): VyPromise<wallet.VyWalletEventDto[]>; /** * This endpoint gets native balance of a wallet by wallet `ID`. * @param {string} walletId - `ID` of the wallet * @returns {VyWalletNativeBalanceDto} Native balance of wallet retrieved successfully. */ getNativeBalanceByWalletId(walletId: string): VyPromise<wallet.VyWalletNativeBalanceDto>; /** * This endpoint fetches all the ERC20 token balance by wallet `ID` * @param {string} walletId - `ID` of the wallet * @param {VyQuery_GetErc20TokensByWalletId} query - Query to filter the operation results * @returns {VyErc20TokenDto[]} ERC20 token balances of wallet retrieved successfully. */ getErc20TokensByWalletId(walletId: string, query?: wallet.VyQuery_GetErc20TokensByWalletId): VyPromise<wallet.VyErc20TokenDto[]>; /** * This endpoint retrieves ERC 20 Token balances by wallet `ID` and token contract address. * @param {string} walletId - `ID` of the wallet * @param {string} token - Address of the token (contract) to fetch the balance for * @param {VyQuery_GetErc20TokenByWalletId} query - Query to filter the operation results * @returns {VyErc20TokenDto} ERC20 token balance of wallet retrieved successfully. */ getErc20TokenByWalletId(walletId: string, token: string, query?: wallet.VyQuery_GetErc20TokenByWalletId): VyPromise<wallet.VyErc20TokenDto>; /** * This endpoint retrieves the token assocciations for a Hedera wallet using the wallet address. * @param {String} chain - The blockchain of the wallet. This will be `HEDERA`. * @param {string} walletAddress - The wallet address * @returns {VyHederaTokenAssociationDto} Token assocciations of Hedera wallet retrieved successfully. */ getTokenAssociationsForHedera(chain: String, walletAddress: string): VyPromise<wallet.VyHederaTokenAssociationDto>; /** * This endpoint gets the native balance by blockchain and wallet address. * @param {VyChain} chain - Indication on which chain the balance should be fetched * @param {string} walletAddress - The address of the wallet * @returns {VyWalletNativeBalanceDto} Native balance of wallet retrieved successfully. */ getNativeBalanceByWalletAddress(chain: enums.VyChain, walletAddress: string): VyPromise<wallet.VyWalletNativeBalanceDto>; /** * This endpoint is used to fetch ERC20 Token balance by blockchain and wallet address. * @param {VyChain} chain - Parameter to indicate on which chain the token balance should be fetched * @param {string} walletAddress - The address of the wallet to fetch token balance for * @param {VyQuery_GetErc20TokensByWalletAddress} query - Query to filter the operation results * @returns {VyErc20TokenDto[]} ERC20 token balance of wallet retrieved successfully. */ getErc20TokensByWalletAddress(chain: enums.VyChain, walletAddress: string, query?: wallet.VyQuery_GetErc20TokensByWalletAddress): VyPromise<wallet.VyErc20TokenDto[]>; /** * This endpoint gets the ERC20 token balance by Wallet `ID`, wallet address, and token address. * @param {VyChain} chain - Parameter to indicate on which chain the token balances should be fetched * @param {string} walletAddress - The address of the wallet to fetch token balances for * @param {string} token - Address of the token (contract) to fetch the balance for * @param {VyQuery_GetErc20TokenByWalletAddress} query - Query to filter the operation results * @returns {VyErc20TokenDto} The Erc20 Token Data */ getErc20TokenByWalletAddress(chain: enums.VyChain, walletAddress: string, token: string, query?: wallet.VyQuery_GetErc20TokenByWalletAddress): VyPromise<wallet.VyErc20TokenDto>; /** * This endpoint retrieves all your transactions, further you can filter them by the transaction status and by your users. * @param {VyQuery_GetTransactions} query - Query to filter the operation results * @returns {VyGetAll1Response} All transactions retrieved successfully. */ getTransactions(query?: wallet.VyQuery_GetTransactions): VyPromise<wallet.VyGetAll1Response>; /** * This endpoint is used to create and execute any type of transaction. You need to provide the pincode in request body or the signing method in the header. You can execute any transaction such as NFT transfer, native transfer, ERC 20, etc. * @param {VyBuildAndExecuteTransactionDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyTransactionResultDto} Transaction executed successfully. */ executeTransaction(reqParams: wallet.VyBuildAndExecuteTransactionDto, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>; /** * This endpoint is used to prepare a transaction for a specific chain. It populates the transaction with gas fields and nonce. The gas fileds include the gas price / gas fee, so you can know the potential cost of a transaction before actually submitting it. The response body can be directly submitted to the [execute transaction endpoint](https://docs.venly.io/reference/executetransaction_1). * @param {VyTransactionRequestBase} reqParams - Request data for the operation * @returns {VyTransactionPreparationBase} Transaction prepared for a specific chain successfully. */ prepareTransaction(reqParams: wallet.VyTransactionRequestBase): VyPromise<wallet.VyTransactionPreparationBase>; /** * This endpoint retrieves the status of a specific transaction by chain and transaction hash. Returns `UNKNOWN` when the specific chain is not supported yet. * @param {VyChain} chain - The blockchain of the transaction * @param {string} transactionHash - The transaction hash (`id`) * @param {VyQuery_GetTransactionStatus} query - Query to filter the operation results * @returns {VyTransactionStatusDto} Transaction status retrieved successfully. */ getTransactionStatus(chain: enums.VyChain, transactionHash: string, query?: wallet.VyQuery_GetTransactionStatus): VyPromise<wallet.VyTransactionStatusDto>; /** * This endpoint fetches the current fees (for EVM based chains: `gasprice`) for a specific chain * @param {VyChain} chain - The blockchain for which you want to get gas price details * @returns {Any} Gas price for a chain retrieved successfully. */ getGasPrice(chain: enums.VyChain): VyPromise<Any>; /** * This endpoint retrives all the signature requests, and the results can be filtered by `userId` and signature status. * @param {VyQuery_GetSignatureInfo} query - Query to filter the operation results * @returns {VySignatureInfoDto} Signature requests retrieved succesfully. */ getSignatureInfo(query?: wallet.VyQuery_GetSignatureInfo): VyPromise<wallet.VySignatureInfoDto>; /** * The signatures endpoint supports the EIP-712 standard, Ethereum typed structured data hashing and signing. This EIP aims to improve the usability of off-chain message signing for use on-chain. * @param {VyBuildSignatureDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VySignatureBase} Signature created and signed successfully. */ signSignature(reqParams: wallet.VyBuildSignatureDto, signingMethod: VyUserAuth): VyPromise<wallet.VySignatureBase>; /** * This endpoint is used to prepare a signature with the status as **SAVED**. In case of a transaction signature, the endpoint will populate it with the required gas fields. * @param {VySignatureRequestBase} reqParams - Request data for the operation * @returns {VyTransactionPreparationBase} */ prepareSignature(reqParams: wallet.VySignatureRequestBase): VyPromise<wallet.VyTransactionPreparationBase>; /** * This endpoint is used to confirm a signature. This will change the status of the signature from **SAVED** to **READY**, which means it is ready to be signed. In case of a transaction signature, this endpoint will populate all the required gas fields. * @param {string} id - The `ID` of the signature you want to confirm * @param {VyConfirmSignatureRequestBase} reqParams - Request data for the operation * @returns {VySignatureInfoDto} */ confirmSignature(id: string, reqParams: wallet.VyConfirmSignatureRequestBase): VyPromise<wallet.VySignatureInfoDto>; /** * This endpoint is used to sign a signature by `ID`. * @param {string} id - The `ID` of the signature you want to sign * @param {VySignSignatureRequestDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VySignatureBase} Signature signed successfully. */ signSignatureById(id: string, reqParams: wallet.VySignSignatureRequestDto, signingMethod: VyUserAuth): VyPromise<wallet.VySignatureBase>; /** * This endpoint converts a generic signature request into a chain-specific signature request. * @param {VyBuildSignatureRequestBase} reqParams - Request data for the operation * @returns {VySignatureRequestBase} */ buildSignatureRequest(reqParams: wallet.VyBuildSignatureRequestBase): VyPromise<wallet.VySignatureRequestBase>; /** * This endpoint verifies if a signature was signed by a specific wallet. * @param {VyVerifySignatureDto} reqParams - Request data for the operation * @returns {boolean} Verification of the signed signature successful. */ verifySignature(reqParams: wallet.VyVerifySignatureDto): VyPromise<Boolean>; /** * This endpoint retrives a signature by `ID`. * @param {string} id - This is the `id` of the signature request. * @returns {VySignatureInfoDto} Specific signature request retrieved successfully. */ getSignatureInfoById(id: string): VyPromise<wallet.VySignatureInfoDto>; /** * This endpoint deletes a signature by `ID`. * @param {string} id - This is the `id` of the signature request. */ deleteSignature(id: string): VyPromise<Any>; /** * This endpoint immediately tries to resubmit a stuck transaction. Sometimes a transaction fails to execute/propagate. This can be due to several factors, for example, the gas price is too low. * @param {VyResubmitTransactionDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyTransactionResultDto} Transaction resubmitted successfully. */ resubmitTransaction(reqParams: wallet.VyResubmitTransactionDto, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>; /** * This endpoint immediately tries to cancel a stuck transaction. * @param {VyCancelTransactionDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyTransactionResultDto} Transaction canceled successfully. */ cancelTransaction(reqParams: wallet.VyCancelTransactionDto, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>; /** * This endpoint allows you to read contract functions. This function is only available for EVM-based chains. * @param {VyReadContractDto} reqParams - Request data for the operation * @returns {VyReadContractResultDto[]} Contract read successful. */ readContract(reqParams: wallet.VyReadContractDto): VyPromise<wallet.VyReadContractResultDto[]>; /** * This endpoint is used only when migrating from the old/deprecated wallet management to the new user management. Click [here](https://docs.venly.io/docs/user-management) to read more about user management. It is used to link an existing wallet to a user. * @param {string} id - This is the wallet `ID` * @param {VyLinkWalletToUserDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyWalletDto} Wallet linked to user successfully. */ linkWalletToUser(id: string, reqParams: wallet.VyLinkWalletToUserDto, signingMethod: VyUserAuth): VyPromise<wallet.VyWalletDto>; /** * This endpoint has been deprecated. Please click here to read about [Signing Methods](https://docs.venly.io/docs/signing-methods-api-flow). * @param {string} id - This is the `ID` of the wallet who's **PIN code** you want to update. * @param {VyUpdateWalletPinCodeDto} reqParams - Request data for the operation * @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user * @returns {VyWalletDto} */ updateWalletPinCode(id: string, reqParams: wallet.VyUpdateWalletPinCodeDto, signingMethod: VyUserAuth): VyPromise<wallet.VyWalletDto>; /** * This endpoint retrieves NFTs by wallet `ID` * @param {string} walletId - `ID` of the wallet * @param {VyQuery_GetNonFungibleTokensByWalletId} query - Query to filter the operation results * @returns {VyNonFungibleTokenDto[]} NFTs of wallet retrieved successfully. */ getNonFungibleTokensByWalletId(walletId: string, query?: wallet.VyQuery_GetNonFungibleTokensByWalletId): VyPromise<wallet.VyNonFungibleTokenDto[]>; /** * This endpoint retrieves NFTs by blockchain. * @param {VyQuery_GetNonFungibleTokenBalances} query - Query to filter the operation results * @returns {VyNonFungableTokenBalanceDto[]} NFTs of wallet retrieved successfully. */ getNonFungibleTokenBalances(query?: wallet.VyQuery_GetNonFungibleTokenBalances): VyPromise<wallet.VyNonFungableTokenBalanceDto[]>; /** * This endpoint retrieves NFTs by blockchain and wallet address. * @param {VyChain} chain - Blockchain to filter by * @param {string} walletAddress - Wallet address to get NFTs * @param {VyQuery_GetNonFungibleTokensByWalletAddress} query - Query to filter the operation results * @returns {VyNonFungibleTokenDto[]} NFTs of wallet retrieved successfully. */ getNonFungibleTokensByWalletAddress(chain: enums.VyChain, walletAddress: string, query?: wallet.VyQuery_GetNonFungibleTokensByWalletAddress): VyPromise<wallet.VyNonFungibleTokenDto[]>; /** * This endpoint retrieves NFT contract information by blockchain and contract address. * @param {VyChain} chain - The blockchain to filter by * @param {string} contractAddress - The contract address of the NFT * @param {VyQuery_GetNonFungibleContract} query - Query to filter the operation results * @returns {VyNonFungibleContractDto} NFT contract information retrieved successfully. */ getNonFungibleContract(chain: enums.VyChain, contractAddress: string, query?: wallet.VyQuery_GetNonFungibleContract): VyPromise<wallet.VyNonFungibleContractDto>; /** * This endpoint retrieves a specific NFT information by chain, contract address, and the token `ID`. * @param {VyChain} chain - The blockchain to filter by * @param {string} contractAddress - The contract address of the NFT * @param {string} tokenId - The token `ID` of the NFT * @returns {VyNonFungibleAsset} Specific NFT information retrieved successfully. */ getNonFungibleToken(chain: enums.VyChain, contractAddress: string, tokenId: string): VyPromise<wallet.VyNonFungibleAsset>; /** * This endpoint fetches the wallet that contain a specific NFT. The wallets are filtered by blockchain, contract address of the NFT, and the token `ID` * @param {string} chain - The blockchain to filter by * @param {string} contractAddress - The contract address of the specific NFT * @param {string} tokenId - The token `ID` of the NFT * @param {VyQuery_GetWalletsContainingTokenIdFrom} query - Query to filter the operation results * @returns {VyPageResponseWalletTokenBalanceDto} Wallet address retrieved successfully containing a specific NFT. */ getWalletsContainingTokenIdFrom(chain: string, contractAddress: string, tokenId: string, query?: wallet.VyQuery_GetWalletsContainingTokenIdFrom): VyPromise<wallet.VyPageResponseWalletTokenBalanceDto>; /** * This endpoint retrieves the token allowances specifically for Hedera chain * @param {string} walletAddress - The public address of the wallet that own tokens * @param {VyQuery_GetTokenAllowancesForHedera} query - Query to filter the operation results * @returns {VyHederaNonFungibleAllowanceDto[]} Token allowance of Hedera wallet retrieved successfully. */ getTokenAllowancesForHedera(walletAddress: string, query?: wallet.VyQuery_GetTokenAllowancesForHedera): VyPromise<wallet.VyHederaNonFungibleAllowanceDto[]>; /** * This endpoint returns the wallet address(es) which contain NFTs from a specific NFT contract address. * @param {string} chain - The blockchain of the NFT * @param {string} address - The contract address of the NFT * @param {VyQuery_GetWalletsContainingTokensFrom} query - Query to filter the operation results * @returns {VyPageResponseWalletTokenBalanceDto} Wallet address(es) retrieved successfully containing NFTs from a specific NFT contract. */ getWalletsContainingTokensFrom(chain: string, address: string, query?: wallet.VyQuery_GetWalletsContainingTokensFrom): VyPromise<wallet.VyPageResponseWalletTokenBalanceDto>; /** * This endpoint gets all the possible token pairs that can be swapped based on the blockchain of the wallet. * @param {string} id - This is the wallet `ID`. The **SWAP** pairs will be displayed based on the blockchain of this wallet. * @returns {VyTradingPairDto[]} Token pairs retrieved successfully. */ getTokenPairs(id: string): VyPromise<wallet.VyTradingPairDto[]>; /** * This endpoint returns information about the expected result of the swap. It provides the expected output amount, as well gives information about the slippage, and fee involved for that specific swap. * @param {VyQuery_GetExchangeRate} query - Query to filter the operation results * @returns {VyExchangeRateResultDto} Exchange rate and swap information retrieved successfully. */ getExchangeRate(query?: wallet.VyQuery_GetExchangeRate): VyPromise<wallet.VyExchangeRateResultDto>; /** * This endpoint returns the transaction detail that is needed to perform the actual swap, based on information obtained in the **Get Exchange Rate** endpoint. This endpoint will build a transaction for you, which afterward you or your user needs to execute. Each item in the response array needs to be taken, enriched with the relevant signing method and submitted against the endpoint: `/api/transactions/execute` * @param {string} id - This is the `ID` of the source wallet. (Wallet that holds tokens to swap) * @param {VySwapRequestDto} reqParams - Request data for the operation * @returns {VyTransactionRequestBase[]} Swap transactions created successfully. */ buildSwap(id: string, reqParams: wallet.VySwapRequestDto): VyPromise<wallet.VyTransactionRequestBase[]>; /** * This endpoint returns the block information of a chain. * @param {VyChain} chain - Select the blockchain to get block information * @returns {VyBlockchainInfoDto} Block information retrieved successfully. */ getBlockchainInfo(chain: enums.VyChain): VyPromise<wallet.VyBlockchainInfoDto>; /** * This endpoint returns all the supported chains by the Wallet-API. * @returns {VyChain[]} All supported chains retrieved successfully. */ getSupportedChains(): VyPromise<enums.VyChain[]>; /** * This endpoint retrieves the Venly public key. * @returns {VySecuritySpecificationResult} */ getPublicKey(): VyPromise<wallet.VySecuritySpecificationResult>; } //# sourceMappingURL=VyWalletAPI.generated.d.ts.map