@web3modal/core
Advanced tools
Comparing version 4.1.8 to 4.1.9
@@ -81,7 +81,6 @@ import { CoreHelperUtil } from '../utils/CoreHelperUtil.js'; | ||
export const BlockchainApiController = { | ||
fetchIdentity({ caipChainId, address }) { | ||
fetchIdentity({ address }) { | ||
return api.get({ | ||
path: `/v1/identity/${address}`, | ||
params: { | ||
chainId: caipChainId, | ||
projectId: OptionsController.state.projectId | ||
@@ -100,4 +99,9 @@ } | ||
async getBalance(address) { | ||
const { sdkType, sdkVersion } = OptionsController.state; | ||
return api.get({ | ||
path: `/v1/account/${address}/balance`, | ||
headers: { | ||
'x-sdk-type': sdkType, | ||
'x-sdk-version': sdkVersion | ||
}, | ||
params: { | ||
@@ -104,0 +108,0 @@ currency: 'usd', |
import type { BlockchainApiTransactionsRequest, BlockchainApiTransactionsResponse, BlockchainApiIdentityRequest, BlockchainApiIdentityResponse, GenerateOnRampUrlArgs, GetQuoteArgs, OnrampQuote, BlockchainApiBalanceResponse } from '../utils/TypeUtil.js'; | ||
export declare const BlockchainApiController: { | ||
fetchIdentity({ caipChainId, address }: BlockchainApiIdentityRequest): Promise<BlockchainApiIdentityResponse>; | ||
fetchIdentity({ address }: BlockchainApiIdentityRequest): Promise<BlockchainApiIdentityResponse>; | ||
fetchTransactions({ account, projectId, cursor, onramp, signal }: BlockchainApiTransactionsRequest): Promise<BlockchainApiTransactionsResponse>; | ||
@@ -5,0 +5,0 @@ getBalance(address: string): Promise<BlockchainApiBalanceResponse>; |
@@ -101,3 +101,2 @@ import type { W3mFrameProvider } from '@web3modal/wallet'; | ||
export interface BlockchainApiIdentityRequest { | ||
caipChainId: CaipNetworkId; | ||
address: string; | ||
@@ -104,0 +103,0 @@ } |
{ | ||
"name": "@web3modal/core", | ||
"version": "4.1.8", | ||
"version": "4.1.9", | ||
"type": "module", | ||
@@ -20,4 +20,4 @@ "main": "./dist/esm/index.js", | ||
"dependencies": { | ||
"@web3modal/common": "4.1.8", | ||
"@web3modal/wallet": "4.1.8", | ||
"@web3modal/common": "4.1.9", | ||
"@web3modal/wallet": "4.1.9", | ||
"valtio": "1.11.2" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275378
4270
+ Added@web3modal/common@4.1.9(transitive)
+ Added@web3modal/polyfills@4.1.9(transitive)
+ Added@web3modal/wallet@4.1.9(transitive)
- Removed@web3modal/common@4.1.8(transitive)
- Removed@web3modal/polyfills@4.1.8(transitive)
- Removed@web3modal/wallet@4.1.8(transitive)
Updated@web3modal/common@4.1.9
Updated@web3modal/wallet@4.1.9