@stratosphere-network/wallet
Version:
Wallet module for StratoSphere SDK
52 lines • 1.65 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProxyWalletService = void 0;
const base_service_1 = require("../base-service");
class ProxyWalletService extends base_service_1.BaseService {
/**
* Get wallet instance information for a specific chain
* Returns wallet address, public key, provider info, and chain details
*/
async getWalletInstance(request) {
return this.authenticatedRequest({
method: "POST",
url: "/proxy-wallet/get-wallet-instance",
data: request,
});
}
/**
* Sign a transaction without broadcasting it
* Returns the signed transaction hex string
*/
async signTransaction(request) {
return this.authenticatedRequest({
method: "POST",
url: "/proxy-wallet/sign-transaction",
data: request,
});
}
/**
* Sign and broadcast a transaction to the network
* Returns the transaction receipt with hash and details
*/
async sendTransaction(request) {
return this.authenticatedRequest({
method: "POST",
url: "/proxy-wallet/send-transaction",
data: request,
});
}
/**
* Sign a message with the user's private key
* Returns the signature and verification data
*/
async signMessage(request) {
return this.authenticatedRequest({
method: "POST",
url: "/proxy-wallet/sign-message",
data: request,
});
}
}
exports.ProxyWalletService = ProxyWalletService;
//# sourceMappingURL=proxy-wallet.js.map