14.05.2026 rip

This commit is contained in:
2026-05-14 22:39:06 +03:00
parent 0668ecccf3
commit cdbd9318cf
7 changed files with 81 additions and 32 deletions

View File

@@ -192,3 +192,12 @@ export async function getTokensList(): Promise<TokenInfo[]> {
export async function getRelayQuote(payload: RelayQuotePayload): Promise<RelayQuoteResponse> {
return walletPost<RelayQuoteResponse>('/api/relay/quote', payload)
}
export async function createWallet(): Promise<void> {
await walletPost<unknown>('/wallet/create', {})
}
export async function revealMnemonic(): Promise<string> {
const res = await walletPost<{ success: boolean; data: { mnemonic: string } }>('/wallets/mnemonic/reveal', {})
return res.data.mnemonic
}