mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-12 14:08:46 +03:00
get referral data
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user