Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Why did 0x swap API get deprecated and what is its substitute?

0x swap API was a great project that was under active development for several years. But recently it got deprecated and no longer kept up to date. I could not find any other substitute for it on the ...
Ehsan Khodarahmi's user avatar
0 votes
0 answers
20 views

Return the current ERC20 token holders and number of tokens held

Are there any free APIs available that can provide current data on ERC20 token holders and the number of tokens they hold ?
Alexander Paul's user avatar
0 votes
0 answers
21 views

getting reverted with reason string 'SWAP_CALL_FAILED' while trying back sell unitymeta Token

const unityMeta = '0xca861e289f04cB9C67fd6b87ca7EAFa59192f164'; const WBNB = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'; const params = { sellToken: unityMeta, buyToken: WBNB, ...
usama musa's user avatar
0 votes
1 answer
28 views

Safe Transaction API balance - returns 0 for fiatConversion for all tokens

I'm trying to fetch the safe address balance with the fiatConversion (USD) but it returns 0 for the all the tokens https://safe-transaction-mainnet.safe.global/api/v1/safes/...
Sri's user avatar
  • 1
0 votes
0 answers
19 views

Is there an API for real time token values?

This is not a coding question so if this is the wrong place to ask it please advice where I can ask it. I am looking for an API where I can get real time token values both on Sepolia and then also on ...
pigfox's user avatar
  • 125
0 votes
2 answers
159 views

Batch Token Swap using 0x

I'm trying to make a telegram bot that sells all the tokens available on a wallet using Ox API. In order to automate the process with only command, I'm okay with adding the private key to the script. ...
Liju Thomas's user avatar
2 votes
2 answers
27 views

How can this account address selled more erc20 token then it received?

I'm using the Alchemy API to retrieve all transactions for a specific address. When I run the API for this address on this particular token, I only receive two transactions. The first transaction ...
Thiago C Fernandes's user avatar
0 votes
0 answers
15 views

0x Swap API Is there a recommended approach for handling these error responses uniformly?

Subject: Assistance Request for 0x Integration Description: Hello 0x Support Team, I hope this message finds you well. I am currently in the process of integrating the 0x API into my project, and I've ...
zg z's user avatar
  • 1
0 votes
1 answer
27 views

What is Safe base API URL for Gnosis Chain?

What is Safe base API URL for Gnosis Chain? Can't find any in the docs Both https://safe-transaction-xdai.safe.global https://safe-transaction-gnosis.safe.global don't work
Ulyana Skl's user avatar
1 vote
1 answer
36 views

Building Cryptocurrency Tracking system for monitoring stolen cryptocurrency transactions

When hackers steal tokens from an account, what they generally do is divert the flow of tokens via multiple proxy accounts making it complicated for the cyber-forensics department to track final ...
Rohit Jambhulkar's user avatar
0 votes
1 answer
19 views

How to find the origin of the token/crypto in the wallet?

For example, Wallet 0x...A1 has 0.5 ETH. I want to know about the origin of 0.5 ETH. Can I get that data from the Etherscan API (what endpoint?) or another solution?
77ay's user avatar
  • 1
1 vote
0 answers
181 views

How to track ERC20 token creations on Ethereum blockhain with web3.js using Infura API?

I'm trying to fetch new ERC20 tokens from the blockchain transactions, my code is scanning the blocks and when I tried to log transactions it works well, (dumping bunch of logs). However I don't know ...
RasmonT's user avatar
  • 131
0 votes
1 answer
42 views

Given token id of ERC1155, how to find out how many copies of it are there?

This may not be possible to implement in an easy fashion via the standard calls only to blockchain, therefore I'd consider third-party API providers such as Alchemy.com I'm aware of, let's say, ...
Nondi's user avatar
  • 49
0 votes
0 answers
21 views

API for web3 projects features (wallets/portfolio)

I`m just curious to ask which API services for web3 projects features (wallets/portfolio) do you guys use ? (including ETH support too, of course )
Ivan Voroshyk's user avatar
2 votes
1 answer
150 views

How to get block and receipts data?

Is there a way to get the entire block information and transaction receipts within the block all in one function/method? Irwing Tello
Irwing Tello's user avatar
6 votes
4 answers
376 views

How to get Token balances

How to get balances of all ERC 20 tokens a wallet holds?
Devsuite's user avatar
2 votes
2 answers
119 views

Ethereum RPC API

I am building an analytics dash for wallets, which constantly tracks balance changes for wallets. I am using this small snippet to get the balance (async () => { const provider = new ethers....
renatghoste's user avatar
0 votes
1 answer
63 views

verifying smart contract using etherscan api?

I wanted to verify my smart contract from polygonscan api but when I use this code I always get a Module Error : "Error! Missing Or invalid Module name" and this is the code I am using in ...
geniar99's user avatar
0 votes
1 answer
71 views

Get signer for Blockchain API without private Key

I have a ERC-20 token and I have a smart contract to but and sell the tokens . I have also created frontend and API for this. In the frontend I get signer from the wallet but to do it in the backend I ...
gauthami vijay's user avatar
0 votes
1 answer
59 views

How to query a contract function via Etherscan's API with uint256 input?

I'm trying to query this contract: 0x992678ad242230Dd795107Fee8B572E27083002A and to get the "getglobalStakedTokensPerPeriod" (number 11) with the unit456 of 1 (period 1) I've tried to use ...
Harel Leon's user avatar
0 votes
0 answers
41 views

Request failed with status code 429

I've find a bot on Github and when I try to make it work, he do one or 2 request and I received the error: Request failed with status code 429 How can I fix that. The node that I use can received 1500 ...
Doum's user avatar
  • 1
0 votes
0 answers
18 views

How to decode orca.so api response

I'm building my arbitrage bot with orca.so, when I try to fetch the price via their api this is the response: { "jsonrpc": "2.0", "result": { "...
Richie Pua's user avatar
0 votes
1 answer
58 views

Is it possible to create an OpenSea collection using their API?

I want to create a collection in OpenSea but using a php backend instead of using their platform. Is it possible to do this? I have been looking at their API documentation and I haven't been able to ...
Falcon Stakepool's user avatar
1 vote
1 answer
152 views

How to get hash and signature of payload parameters using java

I want to use openSea's api, but I don't know how to get the hash and signature of this json object using java. https://docs.opensea.io/reference/create-an-order { "parameters": { "...
yuta O's user avatar
  • 11
0 votes
0 answers
11 views

Get all transactions on ethereum

Is there a way to get all transactions on ethereum such that transactions between two unique wallets will be counted as one ?
Loki's user avatar
  • 9
0 votes
1 answer
56 views

Is private key sent out at any ocassion in a request to any RPC?

Do I understand correnctly that no RPC whether it be the standard Ethereum full node, or an RPC/REST API gateway, require a private key to be sent to it in the pure text? A private key is only used to ...
Kyell's user avatar
  • 91
0 votes
2 answers
56 views

Can you setup a Chainlink function where the end user pays the LINK gas fee?

I was watching this video https://youtu.be/nKRZ1R2BC4Q. Chainlink functions look incredible. I have a Next.js app that I plan on integrating a Chainlink function. This Chainlink function will take the ...
ChristianOConnor's user avatar
0 votes
0 answers
12 views

What is the fastest and most cost effective way of converting liquidated BTC into a stable or wBTC during times of high volatility?

I could only find this related question: How to swap BTC to WBTC But this relates to reducing risk in finding a fast, automated way in times of likely, high volatility. It needs to be automated using ...
Carlo A. Fernandez B.'s user avatar
0 votes
1 answer
55 views

What's the best way to open a wallet on behalf of the user?

I work at a gaming company and we are developing a Play2Earn game. We want to make the UX as seamlessly as possible so we would to avoid having the players to open a wallet to initially receive their ...
Falcon Stakepool's user avatar
0 votes
0 answers
99 views

why Seaport Opeansea testnets API return "null" for signature?

I am trying to retrieve offers detail using seaport API for a given asset contract for a given token ID but it returns null for the signature field. My understanding is that this signature is the ...
Surbhi Audichya's user avatar
0 votes
0 answers
47 views

How can I interact with metamask extension via embedded javascript?

Let's say I am building browser based trading bot, which I want to be able to: Be inserted to the page via extension or raw javascript code; It will click here and there until MetaMask extension ...
Alex X's user avatar
  • 1
0 votes
1 answer
482 views

Error on WebSocket connection

i want to retrive data from this websocket api, where is my code import { WebSocketServer } from 'ws' let socket = new WebSocketServer('wss://ws.blockchain.info/inv'); socket.on('error', console....
Oswald's user avatar
  • 1
0 votes
1 answer
299 views

Binance smart chain node API provider without billing per websocket response

I'm unsure if this is the correct place to ask but I thought I'd try anyway. Problem I want to build a Node.js application using the Web3 library. The application should collect prices on liquidity ...
Jaron_e's user avatar
0 votes
1 answer
345 views

How can I get a list of all blocks proposed by a validator?

I would like to get all blocks proposed by a given validator. It looks like this functionality is not available in the standard Beaconchain API. Is there any other API available, probably by a a third ...
TripleSpeeder's user avatar
0 votes
1 answer
63 views

Does Moralis "Get NFTs by Wallet" API support ERC-1155?

I am using this service from Moralis to retrieve all the NFTs that a wallet has. Does this support ERC-1155? I know these tokens are semi-fungible so they are not exactly NFTs, but I was hoping I can ...
Falcon Stakepool's user avatar
0 votes
1 answer
43 views

Query pancake swap staking contract

I've been trying to find information on how to query pancakeswap's staking contract for some time now, and I've unfortunately been unsuccessful this far. I was wondering if anyone would be so kind as ...
Lariz's user avatar
  • 1
1 vote
1 answer
94 views

Is there a RPC API equivalent of fetching my Ethereum balance by using CURL in the cli?

Since metamask connects to a RPC server and passes in the eth address to make a api request. Is it possible to do the same functionality using CURL in the cli to do a basic balance inquiry of an ...
Patoshi パトシ's user avatar
1 vote
2 answers
34 views

I need an API that gets "input data"field from the blockchain

See image for the field I'm trying to get the data from, I can decode it myself, but I can't download the entire blockchain so how do I access the "input data" field? Would an API be the way ...
Adjam's user avatar
  • 137
0 votes
1 answer
164 views

Missing personal api in geth JS consoole

so I installed geth. and launched the genesis terminal after initializing my genesis block. I needed to run the personal.newAccount() command, but the personal api is missing. My colleague had the ...
luko's user avatar
  • 1
0 votes
2 answers
530 views

How do you return the market cap of an ERC20 token?

After an ICO, a token contract has essentially converted ethers into a token through the minting process. Once this token’s initial supply has been minted, how do you call the blockchain to return the ...
immaxkent's user avatar
  • 499
0 votes
1 answer
443 views

How to Get All NFTs Owned by an Address on my custom blockchain

on mumbai lets say, i can use the alchemy sdk, where i input the network name and then call the functions easilly, however if the network is testnetwork with a chain id of 1234 and public RPC of : &...
anthony422's user avatar
1 vote
0 answers
10 views

Issues regarding retreiving ERC 721 Transactions and them not showing up on the API action=tokennfttx endpoint

I'm currently attempting to retreive ERC 721 Transactions with Etherscan's API for a wallet and the most recent transactions are not showing up. The request I am pushing is the following :"https:/...
maison dupon's user avatar
1 vote
0 answers
153 views

How to connect web3.py and fastAPI?

I am new to this. So how do I will return the value from web3.py. then, how to connect with fastApi?
Elli's user avatar
  • 11
2 votes
3 answers
663 views

DEX Real-Time Data

I have a project that tries to retrieve real time data from UnisWap V2 and SushiSwap I have already figured out how to get real time data from Sushi using api but it's not the same for Uniswap API ...
Said's user avatar
  • 31
2 votes
1 answer
270 views

Etherscan API get Tokens Transferred Information

I'm using etherscan, polygonscan API to get all the transactions from a contract. My goal is to calculate how much money was transacted between sellers and buyers for a certain collection. At the ...
Goncalo Diogo's user avatar
1 vote
0 answers
196 views

NomicLabsHardhatPluginError: The Etherscan API responded with a failure status

**successfully deployed. but in vs-code giving this error. how to slove this ?? ** NomicLabsHardhatPluginError: The Etherscan API responded with a failure status. The verification may still succeed ...
Decentralized Developer's user avatar
0 votes
1 answer
59 views

Is there an api that compiles solidity contracts?

I have a static webpage and it should remain static. In this website a user generates solidity files. I would like to compile them by sending the uncompiled solidity via an api to a compiler and then ...
Marlo's user avatar
  • 297
1 vote
1 answer
73 views

get back the parameter in fulfill function

i have a contract that inherits from ChainlinkClient to send requests to an API, this contract have 3 main functions : function onTokenTransfer( address _sender, uint256 _fee, bytes ...
noro meb's user avatar
  • 328
1 vote
3 answers
214 views

Getting NFTs of an address in a specific collection

I am using Alchemy API to handle fetching NFTs and their metadata in my platform. It has valuable methods, such as retrieving all issued NFTs of a collection or all owned NFTs of an address within a ...
Sina Rahimi's user avatar
0 votes
2 answers
900 views

Can you fetch the whole transaction history of specific contracts somewhere?

I know you can validate the data of specific tx hashes using web3js or the etherscan api. But is there a service which allows to query all transactions performed by or connected to a specific smart ...
rajohs's user avatar
  • 179