@venly/venly-core-sdk
Version:
Javascrip/Typescript SDK for Venly's Web3 Services
51 lines • 3.75 kB
TypeScript
import { VyPromise, VyUserAuth } from '../core';
import * as wallet from '../models/wallet/index';
import { VyApiBase } from './VyApiBase';
import { VyWalletAPI_Gen } from './VyWalletAPI.generated';
export declare class VyWalletAPI extends VyWalletAPI_Gen {
constructor(apiBase: VyApiBase);
/**
* 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 {VyBuildContractExecutionTransactionRequest} reqParams - Request data for the operation
* @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user
* @returns {VyTransactionResultDto}
*/
executeContract(reqParams: wallet.VyBuildContractExecutionTransactionRequest, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>;
/**
* 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 {VyBuildTransferTransactionRequest} reqParams - Request data for the operation
* @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user
* @returns {VyTransactionResultDto}
*/
transferNativeToken(reqParams: wallet.VyBuildTransferTransactionRequest, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>;
/**
* 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 {VyBuildTokenTransferTransactionRequest} reqParams - Request data for the operation
* @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user
* @returns {VyTransactionResultDto}
*/
transferErc20Token(reqParams: wallet.VyBuildTokenTransferTransactionRequest, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>;
/**
* 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 {VyBuildNftTransferTransactionRequest} reqParams - Request data for the operation
* @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user
* @returns {VyTransactionResultDto}
*/
transferNonFungibleToken(reqParams: wallet.VyBuildNftTransferTransactionRequest, signingMethod: VyUserAuth): VyPromise<wallet.VyTransactionResultDto>;
/**
* Archive a wallet
* @param {string} id - The id of the wallet
* @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user
* @returns {VyWalletDto} Updated Wallet
*/
archiveWallet(id: string): VyPromise<wallet.VyWalletDto>;
/**
* Unarchive a wallet
* @param {string} id - The id of the wallet
* @param {VyUserAuth} signingMethod - This operation requires a valid Signing-Method from the corresponding user
* @returns {VyWalletDto} Updated Wallet
*/
unarchiveWallet(id: string): VyPromise<wallet.VyWalletDto>;
transferNonFungibleToken_MetaTransaction(reqParams: wallet.VyMetaTransferNonFungibleTokenDto): VyPromise<wallet.VyTransactionResultDto>;
}
//# sourceMappingURL=VyWalletAPI.d.ts.map