Questions tagged [external-api]

The tag has no usage guidance.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
303 views

Call a view function of an Ethereum Smart Contract using a program written in C

my attempt is to call a view function to reatrieve some data from a contract on the Blockchain using a C program. I do have the interface of the contract. I think i need to performe two things in ...
2
votes
2answers
1k views

Block.io ETH alternative

What's a good Ethereum alternative to block.io? By good I mean, trusted and production ready.
1
vote
0answers
32 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
17 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 ...
1
vote
0answers
114 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 ...
1
vote
0answers
22 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; ...
1
vote
0answers
159 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://...
1
vote
0answers
1k views

Calculating annual percentage yield (apy) value for Uniswap pairs

I wants to calculate annual percentage yield for a token pair listed on uniswap like this. Is there any API which I can use to retrieve the value? How can it be directly calculated?
1
vote
1answer
859 views

Perform an automated transaction using 1inch API

To perform an automated 1 inch transaction I use these two functions. It works well at first. Unfortunately, in the last few days I have always had the same errors: Fail with error 'Return amount is ...
1
vote
0answers
36 views

Gettting ERC-20 token transfer count over an API

I am building a service to monitor token activity. Does any service have an API to get the transfer count of a ERC-20 token? I am not interested in individual Transfer events, only their count.
1
vote
0answers
20 views

curl ethereum -d question

How can I change the following to php format? what means the -d @...jaon, it means the parameter for this curl is json and post to the url? cat call.json { "private": "3ca40...", "gas_limit": ...
1
vote
0answers
60 views

How to handle Oraclize if it's failed?

I'm using the Oraclize to get the random number for bets. When the function bet() is called and if the oraclize is failed it should call the pingOracle() again. Below is example function bet() public ...
1
vote
0answers
203 views

Blockcypher - Can't call contract method

I'm trying to send erc20 token using the Blockcypher Ethereum API. specifically the "Call Contract Method" but I keep getting {"error": "Error calling contract: Missing contract or ABI for ...
1
vote
0answers
33 views

Are API tokens incompatible with Ethereum apps?

I want to build an Ethereum app that gets weather data from a trusted (government run) API via oracilize. This service requires an API token to be sent with each request to prevent abuse. Each API ...
1
vote
2answers
736 views

How to peg value to token outside ethereum

I have an online game system. I issue some tokens through ethereum. How can I peg value of the tokens issued on ethereum to my game system, which is outside the ethereum eco system. (ie) The users ...
1
vote
0answers
170 views

Problem with the code for fetching data from ether scan

I am trying to fetch ICO data via python from etherscan.io through the API but hitting a problem. I am using the code by Corey Petty for python bindings also using his code for ICO analysis Full ...
1
vote
1answer
455 views

How can I display amount ETH funded and ICO-token received on a webpage

How can I display amount ETH funded and ICO Tokens received on a webpage in a crowdsale ICO campaign? The webpage is the personalised customer page after login. I will display the ethereum adress. ...
0
votes
2answers
30 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 ...
0
votes
0answers
12 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
82 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 ...
0
votes
0answers
19 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
0answers
14 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?
0
votes
0answers
77 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 ...
0
votes
0answers
29 views

Is first call to oraclize query free in mainnet, as in testnet?

We were trying to include oraclize query to get price feed in one our contracts, as of now we have observed that the first oraclize is free in kovan. Does same applies for mainnet or else we has to ...
0
votes
1answer
754 views

Etherscan api: how to get transaction fee?

For example: open this https://etherscan.io/tx/0xcb1e3530950cf2c43a307bcb5645ae71a12c76a60831617badd04aea3efe68aa It's a random one I see these infos on webpage: Gas Limit: 136,500 Gas Used by ...
0
votes
2answers
49 views

any good way to keep listenning the events of erc20 transfer and noticed by a url call

I think I can keep calling by etherscan to find new transactions and I the best way is that I can receive a url callback once an event created on erc20 token event log. Any API I can use for this? Or ...
0
votes
0answers
74 views

API for tokensvalue

I was wondering if there is any API service for getting info about tokens on an ethereum wallet, I found https://ethplorer.io/, but unfortunately with that service there is no possibility to get ...
0
votes
1answer
323 views

Are there any public APIs for ENS lookup?

I want to add ENS support to an app I am building, and I am looking for a lightweight API which supports ENS to Ethereum address conversion. All the documentation shows how you can do this on the ...