Socket
Socket
Sign inDemoInstall

@web3modal/core

Package Overview
Dependencies
Maintainers
11
Versions
374
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/core - npm Package Compare versions

Comparing version 4.1.8 to 4.1.9

8

dist/esm/src/controllers/BlockchainApiController.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc