Questions tagged [external-api]

The tag has no usage guidance.

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

Ethereum contracts - get USD value balance [duplicate]

I need a way to output the USD value of a contract balance. Etherscan is not accurate sometimes, and I'm not sure the API for ERC20 to dollar price exists. I'm thinking about using agregators, or ...
user avatar
0 votes
0 answers
11 views

What's the best way to create/deploy an oracle contract on a ganache-cli testnet?

I'm working on an academic project using a ganache-cli testnet, I've got some Python code which transmits a few variables through API, and I'd like to create/deploy a smart contract to my testnet that ...
user avatar
  • 1
0 votes
0 answers
6 views

How exactly an ethereum wallet interact with ethereum network?

Say I make a program that interact with a website. That program will usually interact with the website using API. But that's a website. What about if I want to connect to ethereum network? How exactly ...
user avatar
0 votes
0 answers
18 views

API for find smart-contract deployed which chain?

Is there any API which gives me details that project smart-contract deployed on which chain via its smart-contract address? e.g. How to know whether it deployed in polygon, avalanche, ethereum? If is ...
user avatar
0 votes
1 answer
16 views

what does 2miner.com's "hr2" and "rhr" numbers mean?

2miner.com's JSON stats returns stuff like { "workers": { "Rig1Name": { "lastBeat": 1652915927, "hr": 29087609, &...
user avatar
0 votes
1 answer
20 views

What are some APIs that write transactions to the blockchain?

Are there any APIs that write transactions to the blockchain? I am most interested in RESTful versions.
user avatar
  • 189
0 votes
1 answer
20 views

How to automate tokenomics research and data collection?

I want to create a tokenomics database. I want to build a bot to automate data collection that answers for each token on the blockchain some of the questions asked and answered in this article. I am a ...
user avatar
  • 189
0 votes
0 answers
89 views

How do I get Ethereum contract address from Etherscan API?

I have followed the documentation supplied here under "Get a list of 'Normal' Transactions By Address" : https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-normal-transactions-by-...
user avatar
0 votes
1 answer
41 views

Questions about the fulfill function in the Chainlink API Call tutorial

I was going through the Chainlink tutorial on APIs and had some questions about the fulfill function in the contract below. From how I understand it, the third argument of request object inside the ...
user avatar
0 votes
1 answer
54 views

Python: I am getting a syntax error that prevents me from deploying me contract. What is the syntax of format that I need to use for this?

I just created a new API key for Etherscan. I added my key to my .env file, and I added publish_source=True to print(f"Contract deployed to {fund_me.address}"), publish_source=True to be ...
user avatar
0 votes
0 answers
67 views

Error: unknown account and not defined personal module maticvigil, infura RPC access

My question is about https://maticvigil.com/ or https://infura.io/ services. I am using the RPC URL service on main and testnet network. And I use nodejs and didn't used browser. This is my code: ...
user avatar
0 votes
0 answers
128 views

API for getting the total balance (net worth) of an address?

Etherscan can get the total net worth for all tokens of an address, ETH and ERC-20, e.g.: https://etherscan.io/tokenholdings?a=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 Other services like Zapper.fi ...
user avatar
  • 101
0 votes
0 answers
26 views

How do I pass javascript info to a smart contract function?

How do I make a smart contract function that knows to listen for data from javascript? Example: I have javascript info pulled from the BSCScan API that I want to pass to a smart contract function ...
user avatar
  • 11
0 votes
0 answers
34 views

Is there a cross-chain api for bridging tokens from Ethereum to Polygon/BSC/AVAX Etc.?

Alternatively, is there any way to custom code something like this in Javascript using Web3 and Multichain.org?
user avatar
0 votes
0 answers
18 views

ProvableAPI query not working on Harmony chain

I was trying to access the metadata attributes from an IPFS url in my contract using provableAPI. This is the code I was using: provable_query("URL", "json(https://ipfs.io/ipfs/...
user avatar
  • 31
0 votes
0 answers
50 views

Chainlink Job Request With Bridge: error making http request: Post "http://localhost:8080": dial tcp 127.0.0.1:8080: connect: connection refused

I am trying to run my chainlink external adapter with a job in my node. However, every time I get an error at "fetch bridge" task: error making http request: Post "http://localhost:8080&...
user avatar
  • 1
0 votes
0 answers
45 views

Most efficient way to fetch daily rewards of a validator from Beacon API

I'm trying to fetch the daily rewards of a validator using the beacon API. The only way I'm able to do it now is by fetching the balance at each epoch within these days and summing it up, and then ...
user avatar
0 votes
0 answers
147 views

Issues with 1inch swap API

I am trying to use 1inch swap API, but getting error most of the time. I'm trying to swap USDT to one custom token. The required allowance has already been provided. I sometime get the response (even ...
user avatar
  • 25
0 votes
1 answer
36 views

Add arguments to get request

I'm trying to make a get request using the chainlink node. I'm following this tutorial this tutorial but the problem is that this is sending a request to this specific URL https://min-api....
user avatar
0 votes
0 answers
67 views

Etherscan API get contract data

I would like to read contract data using the Etherscan API, i.e. the data of this current: https://etherscan.io/address/0x64187ae08781B09368e6253F9E94951243A493D5#code Is there an API call to do that?
user avatar
  • 1
0 votes
0 answers
24 views

Best API for token data on Binance Smart Chain?

I'm currently putting together a project and I need to pull token data from an API. Now of course I've done research but it seems that there's a variety of them to choose from. At a minimum, I need ...
user avatar
  • 1
0 votes
0 answers
11 views

Suggest some best ways to get complete understanding of API's and it's intigration with UI, web3 scrips for a blockchain developer?

I am looking for various resources to learn about API's end-to-end, and those resources could be useful for a blockchain developer to become a full-stack developer, and an individual need's to get a ...
user avatar
0 votes
1 answer
400 views

How do I get information on pending transactions of a wallet/contract?

I have tried so many API such as Etherscan, Moralis, and Blockcypher but they all only display completed transactions. Is there a way to scan a wallets' pending transaction and get information out of ...
user avatar
  • 39
0 votes
1 answer
54 views

Do any one had a template API to display/show estimated gas price for a transaction?

Description of the issue: I do not have sufficient funds in my wallet to transfer a token from my wallet to an external wallet. So the transaction will fail and shows us an error message. Instead of ...
user avatar
0 votes
1 answer
223 views

How do you set the fee in Uniswap-Python function uniswap.get_price_input()?

I am successfully using uniswap.get_price_input(eth, dai, 10**18) to get the price of the ETH/DAI pair. In addition, I receive the get the message "No fee set, assuming 0.3%" in my terminal. ...
user avatar
1 vote
1 answer
95 views

Is it possible to connect metamask in a Jupyter notebook?

I would like to use my wallet to sign transactions using an api in a Jupyter notebook. To do this, I currently have to store the private key either in the notebook itself or in another file. It would ...
user avatar
  • 11
0 votes
0 answers
11 views

3Box returns error rather than desired account info

3box returns {"status":"error","message":"Address link not found, address does not have a 3Box or is malformed"} when using this.profile = this.threebox....
user avatar
2 votes
4 answers
517 views

Is there a way to control METAMASK via some type of api feature? I want to use it as my backend to send / receive eth and tokens

Is there a way to replace geth with just using metamask via some type of api via the command line? I want to interface with metamask to send and eth and erc20 tokens. Right now geth works, but it has ...
user avatar
1 vote
1 answer
100 views

TRANSFORM ERC 20 vs Sell to pancake swap

I am able to do the Sell to pancake swap tranx But failed with the API when i do TRANSFORM E R C20 Tranx example of failed: https://bscscan.com/tx/...
user avatar
0 votes
1 answer
186 views

How to get list of tokens available in Polygon network using smart contracts?

I want to get the names of all the tokens which are available in Polygon using a smart contract(solidity), how can I achieve that?
user avatar
  • 61
0 votes
0 answers
320 views

Simple CoinGecko API Call in PHP

How can i add the symbol tag (replace 0) which coin i want fetch? <?php ini_set('max_execution_time', 300); $url ='https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd';// path to your ...
user avatar
0 votes
0 answers
26 views

Getting an error when using methods.myMethod.call() with web3js

I am getting an error trying to call an existing smart contract function using call(). The error is "Returned values aren't valid, did it run Out of Gas? You might also see this error if you are ...
user avatar
0 votes
1 answer
96 views

Error creating contract after getting contract ABI from Etherscan API

I am trying to get the contract ABI using the Etherscan API, and then create a contract instance and call a method using web3.js. I am able to get the ABI from Etherscan but when creating the contract ...
user avatar
1 vote
1 answer
1k views

Is there any way to get list of all NFTs owned by an etherscan as shown on etherscan apart from monitoring Transfer even?

I want an api or something that can list all the nfts owned by an address, as it is shown on etherscan so I assume we can get that but not able to find that. Also I know that we can do that by ...
user avatar
1 vote
1 answer
65 views

Make external adapter call only accessible through smart contract

sorry if this is a newbie question, I'm new to solidity and smart contracts. I want to make an API call on my smart contract but from what I saw, I have to implement a Chainlink external adapter. Now, ...
user avatar
1 vote
1 answer
181 views

Chainlink "Any API" Returning 0

I want to use the chainlink API features but I can not get the data. When I try to execute requestEthereumPrice function I get "uint256: 0" I am using Kovan test net and metamask. pragma ...
user avatar
1 vote
0 answers
188 views

Get Ether price by Unix Timestamp?

Is there any API I can use to get the price of Ether by providing a unix timestamp? The reason I ask is because I am using the Etherscan API to download internal transaction data but for some reason ...
user avatar
  • 153
0 votes
0 answers
14 views

Ethereum Supply Calculation

Is there an api that gives me definitive value of ethereum supply at a particular block height? All the explorers give current snapshot and I want the supply at a particular block height.
user avatar
0 votes
0 answers
47 views

REST API to get burned ETH by block?

I've been looking for a while and I can't find a way to get burned ETH per block programatically. Can someone help? I could also compute it using Web3 (python or js), but I don't see a way to get that ...
user avatar
  • 153
3 votes
1 answer
584 views

How to Collect Uniswaps Token-pair FULL Price history? ( Help )

How do websites like CoinGecko.com and Dextools.io get a token pair's FULL price history? I understand that I can query Uniswap's theGraph, but that limits only 1000 entries. How do these websites ...
user avatar
0 votes
1 answer
190 views

Failing to fill 0x quote

I'm trying to fill a quote that I get from the 0x API: const qs = createQueryString({ sellToken: 'TUSD', buyToken: 'WETH', sellAmount: BigInt(882693 * 10 ** 18) }); ..but the transaction ...
user avatar
  • 307
0 votes
0 answers
110 views

Retrieve APR data from Pancakeswap Finance [BSC]

Is there an API by Pancakeswap Finance (BSC) to receive the APR for each farm and pools? I personally don't wan't to calculate all APR individually by hand.
user avatar
1 vote
1 answer
737 views

Geth light node returns 0 pending / queued transactions despite being fully synced. Cannot reasonably access tx-pool data

The two following commands are inputted into the Javascript live console, but return identical results from HTTP requests (whose methods appear slightly different). The node is fully synced as ...
user avatar
1 vote
1 answer
56 views

Wallet as authenticator with WalletConnect

I want to use the wallet in my web app as authenticator for an API access, e.g. by signing an arbitrary string and then check the signature at the API side. I know there are sign() methods to do so. ...
user avatar
  • 199
0 votes
1 answer
710 views

BEP20 Price and Market Cap API [closed]

I am trying to find an API where I can the Market Cap of Binance Smart Chain tokens. I know that Market Cap = Circulating Supply * Token price. I am able to get the token price from PancakeSwap api. ...
user avatar
  • 9
0 votes
1 answer
630 views

Code Example: Waiting for N blocks then running a method?

I'm new to Javascript and Etherjs. I'm trying to interact with a specific contract in the following way. The contract has two functions, hi and bye. I want to first run contract.hi();, wait N blocks ...
user avatar
1 vote
0 answers
179 views

I am trying to use chain link using remix

I'm getting this error /* Internal exception in StandardCompiler::compile: /root/project/libsolidity/interface/CompilerStack.cpp(93): Throw in function solidity::frontend::CompilerStack::CompilerStack(...
user avatar
2 votes
2 answers
1k views

I am trying to use chainlink using remix and i followed the chainlink docs

I am facing this issue,What to do now? My Code pragma solidity ^0.6.7; import "https://github.com/smartcontractkit/chainlink/blob/master/evm-contracts/src/v0.6/interfaces/AggregatorV3Interface....
user avatar
2 votes
0 answers
793 views

Web3 - Buy token by code

i'm trying to buy $TRY token with my code. It's BSC token. The problem is when i send money to the contract i don't receive any token :/ The contract i'm trying to buy : https://bscscan.com/token/...
user avatar
1 vote
1 answer
85 views

Price feed of multiple coins in a single GET request

I have used Chainlink oracle to get the price feed of a single coin. But I want to fetch the latest price of 100s of coins from the smart contract using oracle. Is it possible to get the price of ...
user avatar