
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@abstraxn/node-client
Advanced tools
Node Client that comminucates with indexer service to fetch necessary details for the Smart Account
@abstraxn/node-client
Node Client is the api client package that communicate with [Abstraxn SDK] backend node to fetch needed smart contract wallet data i.e supported chains list, transaction history, balances e.t.c
yarn add @abstraxn/node-client
OR
npm install @abstraxn/node-client
// import package
import NodeClient from '@abstraxn/node-client'
// initialisation
const nodeClient = new NodeClient({ txServiceUrl: '' })
const supportedChainsList = await nodeClient.getAllSupportedChains()
console.log('supportedChainsList ', supportedChainsList)
const chainId = 80001
const address = '0xabc......'
const trxHistory = await nodeClient.getTransactionByAddress(chainId, address)
console.log('trxHistory ', trxHistory)
const txHash = '0x........'
const trxDetail = await nodeClient.getTransactionByHash(txHash)
console.log('trxDetail ', trxDetail)
import { BalancesDto } from '@abstraxn/node-client'
import { ChainId } from '@abstraxn/core-types'
const address = '0xabc......'
const balanceParams: BalancesDto =
{
// if no chainId is supplied, SDK will automatically pick active one that
// is being supplied for initialization
chainId: ChainId.MAINNET, // chainId of your choice
address: address,
// If empty string you receive balances of all tokens watched by Indexer
// you can only whitelist token addresses that are listed in token respository
// specified above ^
tokenAddresses: [],
};
const balFromSdk = await nodeClient.getAllTokenBalances(balanceParams);
console.info("balFromSdk ", balFromSdk);
const usdBalFromSdk = await nodeClient.getTotalBalanceInUsd(balanceParams);
console.info("usdBalFromSdk ", usdBalFromSdk)
FAQs
Node Client that comminucates with indexer service to fetch necessary details for the Smart Account
The npm package @abstraxn/node-client receives a total of 6 weekly downloads. As such, @abstraxn/node-client popularity was classified as not popular.
We found that @abstraxn/node-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.