Questions tagged [external-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 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 ...
0
votes
1answer
21 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 ...
0
votes
1answer
15 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 ...
0
votes
1answer
65 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. ...
1
vote
0answers
40 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 ...
0
votes
0answers
8 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....
1
vote
4answers
56 views
+50

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 ...
1
vote
1answer
80 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/...
0
votes
1answer
85 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?
0
votes
0answers
109 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 ...
0
votes
0answers
15 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 ...
0
votes
0answers
47 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 ...
1
vote
1answer
369 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 ...
1
vote
1answer
46 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, ...
1
vote
1answer
90 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 ...
1
vote
0answers
107 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 ...
0
votes
0answers
13 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.
0
votes
0answers
32 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 ...
3
votes
1answer
272 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 ...
0
votes
1answer
117 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 ...
0
votes
0answers
90 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.
1
vote
1answer
426 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 ...
0
votes
0answers
27 views

Stream BSCscan API?

I'm using API of BSCscan to get some info about a coin. There is a way to get a "stream" of data from BSCscan ? to get some info faster. Because my main problem right now is i do one call, ...
0
votes
0answers
333 views

Calculating Simple APR of a Uniswap Pool with GraphQL

Sorry, I am just having a bit of a logic error in understanding how to calculate the APR of a Uniswap Liquidity Pool. I can reliably send requests to https://thegraph.com/explorer/subgraph/uniswap/...
1
vote
1answer
44 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. ...
0
votes
1answer
547 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. ...
0
votes
0answers
230 views

Making GET request with ChainLink (using dynamic URL Params)

Im quite new to using ChainLinks Client to make requests to external API's. I am generating random numbers using their VRFBaseConsumer in my Wallet Contract. Upon receiving a newly generated number, ...
0
votes
1answer
317 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 ...
1
vote
0answers
129 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(...
1
vote
2answers
962 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....
2
votes
0answers
670 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/...
1
vote
1answer
62 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 ...
2
votes
1answer
132 views

how to fetch net worth of a given address?

Take this whale wallet for example: https://etherscan.io/tokenholdings?a=0xa929022c9107643515f5c777ce9a910f0d1e490c If you look at the top right, it says Value in USD. Is there any any API that can ...
0
votes
2answers
100 views

Smart Contracts and API Calls: How to check API repeatedly without paying a fee?

I'm new to this entire space, so please bear with me. I'm trying to create a betting app. I want people to sign the contract and say they'll put up some money that they'll either win or lose depending ...
1
vote
0answers
700 views

How to pull data from DeFi Liquidity Pools

I am relatively new to decentralised development, and apologies in advance if a bit of a dumb question. I am doing a project where I am looking to download the following data. I am trying to figure ...
0
votes
0answers
19 views

How I can check request status with provable.xyz?

Simple question but I failed to find the answer. Before Oraclize became provable, there was an api endpoint for checking the status of a specific request id. This for example helped to determine if an ...
0
votes
0answers
224 views

how to get the full list of block reward for the last 24 hours? Either via an API/JSON or Google BigQuery

I have spend a couple of days now trying to find a good source for the block rewards that will allow me to calculate block rewards and averages for the last 24h and since UTC0. (I am aware of being ...
1
vote
0answers
29 views

scope of references to external smart contract, global variables, eleminiate redundant code

Imagine that there's a smart contract deployed which contains a number of sub-contracts like so: pragma solidity ^0.5.0; contract A { address contract = 0x6663130dDfF21E3BC963Ee902005223b9A202106; ...
0
votes
0answers
32 views

Using etherscan to track the status of incomming transactions, free version?

I plan to start to accept Ethereum and some tokens based on it, on a website. The volume would be, I think, at most 10-50 payments a day, at most. And I want to allow a user to know the status of a ...
0
votes
2answers
805 views

Etherscan API Get Balance - Decimals Not Showing In Response

Expected Use the Etherscan API to make a GET request for an ETH address' balance in order to receive a response providing the Ether token quantity representing all decimal places. Observed The ...
0
votes
1answer
59 views

Dumping erc20 token transactions via rpc?

I'd like to do dump all transactions of an erc20-token via the json-rpc interface. I've got a full node running but I'm lost, since the ethereum blockchain is harder to navigate than bitcoin for some ...
1
vote
1answer
329 views

Read Solidity smart contract private field

Let's suppose this smartcontract: contract Test1 { string private i_am_private; string public i_am_public; ... } Solidity's compiler is automatically generating a getter function for public ...
0
votes
0answers
16 views

Why is serprent considered untrusted?

Serpent was way to fetch Diesel prices from the oraclize api at fixed intervals. On GitHub, it s written audits proved the code to be flawed, but where are such audits? I m meaning why is it flawed?
2
votes
0answers
408 views

Get all transfers of a token contract from etherscan API with python

I am trying to pull out from etherscan api all token transfer from a particular token contract. Currently, I can pull data by manually going to etherscan token contract page - for ex cvc coin: https://...
0
votes
0answers
519 views

Solidity external call with bytes4 / keccak256

I want to call a Contract1's function from Contract2. I know the way i've tried is deprecated, but i want to understand. This is why i've set a very old solidity version with the pragma directive. I ...
12
votes
3answers
9k views

Why are there two methods encoding arguments? "abi.encode" and "abi.encodePacked"

When we call a function on an external contract, the EVM computes a bytes buffer which contains the function signature and arguments. There are two ways to serialize arguments: abi.encode abi....
0
votes
1answer
407 views

Estimate Solidity function gas cost

When i deploy a smartcontract with remix, i can call functions in order to test it. I do not really know if this is remix or metamask which is doing this job: Before validating the transaction, i have ...
0
votes
2answers
184 views

remote contract function call with solidity

I've deployed this very simple Contract: contract Contract1 { function myfunction(uint param1) public returns (uint) { return param1+1; } } Now, I've deployed a second contract: ...
1
vote
1answer
95 views

What is "selector" in ChainLink API call?

I am using the example from chainlink to call an API; however, I am not sure it does. function checkProof(string memory JobLocation, int job_id) public { Chainlink.Request memory req = ...
0
votes
1answer
17 views

Is it possible to run a program/function written in different language from solidity? [closed]

I have a script written in a different language to get executed and verified by miners of the network. Is there a way to call this script from solidity smart contract?