get referral data

This commit is contained in:
Kirill Litvinov
2023-12-13 14:39:40 +03:00
parent 661cce707d
commit fa33024ea5
4 changed files with 17 additions and 1 deletions

View File

@@ -258,6 +258,15 @@ class BlockchainService {
)
};
getReferralData = (walletAddress: string) => fetchWithValidation(
`${this.apiUrl}/api/referral-data/${walletAddress}`,
z.object({
referer: z.string(),
isReferral: z.boolean(),
}),
{ headers: this.basicAuthHeaders }
);
getGasPriceWei = () => fetchWithValidation(
`${this.apiUrl}/api/gasPrice`,
z.string(),