Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
The fastest and easiest way to interact with DeFi.
With this SDK you can:
Since DeFi is volatile and fast moving space, you need an SDK that is highly performant. Here are the capabilities of Blockchain APIs:
Examples of project that you can make with Blockchain APIs:
To get any help, feel free to join our discord Documentation link: https://api.blockchainapis.io/docs
pip install blockchain-apis
import asyncio
from blockchainapis import BlockchainAPIs
async def print_eth_price():
blockchain_apis = BlockchainAPIs()
# Get the price of selling 1 ETH to USDT in Ethereum
eth_price = await blockchain_apis.amount_out(
blockchain="ethereum",
amountIn=1000000000000000000,
tokenIn="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
tokenOut="0xdAC17F958D2ee523a2206206994597C13D831ec7"
)
print(eth_price)
await blockchain_apis.close()
asyncio.run(print_eth_price())
[
{
"blockchain": "ethereum",
"exchange": "elk_finance_ethereum",
"tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amountIn": 1000000000000000000,
"amountOut": 149342441
},
{
"blockchain": "ethereum",
"exchange": "pancakeswap_ethereum",
"tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amountIn": 1000000000000000000,
"amountOut": 1873655816
},
{
"blockchain": "ethereum",
"exchange": "plasmafinance_ethereum",
"tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amountIn": 1000000000000000000,
"amountOut": 8710340
},
{
"blockchain": "ethereum",
"exchange": "shibaswap_ethereum",
"tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amountIn": 1000000000000000000,
"amountOut": 1897543149
},
{
"blockchain": "ethereum",
"exchange": "sushiswap_ethereum",
"tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amountIn": 1000000000000000000,
"amountOut": 1905389353
},
{
"blockchain": "ethereum",
"exchange": "uniswapv2_ethereum",
"tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenOut": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amountIn": 1000000000000000000,
"amountOut": 1904261651
}
]
FAQs
Fastest and easiest way to access decentralized finance data
We found that blockchain-apis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.