Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [external-api]

The tag has no usage guidance.

0
votes
0answers
19 views

Calling an API from truffle [closed]

Is it possible to call an api from a truffle test file? I have developed a nodejs app with koa that directly interacts with my SC. I now want to test this API. I have built a test for a usecase of ...
0
votes
0answers
13 views

Is there any API for contract deploy in ropstan testnet? [duplicate]

To deploy contract through API on ropsten is there any API?
1
vote
1answer
24 views

Etherscan API no decimals separator

I am using Etherscan API to retrieve certain erc20 token balance on given ETH address and get a number like 62910000000 without decimals separator. In fact the proper balance is 6291000.0000. How to ...
0
votes
0answers
14 views

Error in establishing the connection between Geth and Api (Invalid JSON RPC response)

For my test project, I have my geth running in main server(rpc port-8117). The api(node.js), which is used to interact with the geth is present in the other system. In the api, I have given the http ...
0
votes
1answer
32 views

How to get the timestamp from the latest event on the etherscan.io apis

How to get the timestamp from the latest event on a contract using the etherscan.io api ? I'm using the getLogs call this way: https://api.etherscan.io/api?module=logs&action=getLogs&...
1
vote
0answers
10 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
35 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 ...
0
votes
1answer
261 views

etherscan request API limit [closed]

i want to know the limit request on etherscan API with API key, and limit if we go on paid service. thanks in advance.
0
votes
1answer
338 views

How to use infura API with web3 js? [duplicate]

How to use infura API with web3 js? Where should I put secret key?
0
votes
2answers
76 views

How to access ethereum smart contract functions from server side api calls using ExpressJS?

I have the abi and bytecode of contract functions. Is there a way to access them using api calls only(using web3 module or any other) since i want to integrate them in an android native app and thus ...
1
vote
1answer
29 views

What is the difference between an Ethereum client and Ethereum API?

Pardon me if this is silly, but as per my limited observation, the number of APIs is higher than the number of clients that exist. How are APIs different from clients?
0
votes
1answer
36 views

Updated: How to interact “directly” with smart contract via a micro-controller?

Assume we have a micro-controller and it collects a meta-data (ex. a payload as a string). How this micro-controller can interact "directly" with smart contract to write this data to the blockchain? ...
0
votes
1answer
17 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 ...
1
vote
1answer
54 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 ...
1
vote
0answers
26 views

any ethereum web wallet without running local node [closed]

any php script for eth web wallet without ruining a local node on my server? So I can integrate the web wallet into my site without running local node on my server. By the way, how big the size of ...
2
votes
1answer
80 views

Transaction api question for using remote Node such as infura

I want to have a function to send eth to another address by php program, and I do not want to run a local node on my server. Can I use infura as the web3 provider and use the API to send eth to ...
0
votes
1answer
46 views

Is it possible to create batches of transactions without using smart contracts?

Scenario: Suppose that I have to make three transactions simultaneously to Alice, Bob and Claudia. Now the condition is if any one transaction fails the other two must also not go through. Query: Is ...
1
vote
0answers
71 views

Web3JS + React: Fetching API data to use in a call [closed]

I have the following solidity function: contract testCall { string private globalKey; function setKey(string key) public { globalKey = key; } } As this function is called from ...
0
votes
1answer
57 views

Which one is a better option - web3js or golang apis? [closed]

I want to build an application where I can call methods from smart contracts. I can do so by using either web3js or golang apis. Query: Which one is a better option when interacting with smart ...
1
vote
0answers
118 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 ...
0
votes
1answer
180 views

Loading External data (in Excel/CSV) to blockchain engine [closed]

I am new to solidity blockchain. I have transaction dataset in csv files. I want to load it automatically to blockchain using ethereum solidity. How can I do it? Is there any UI available? Any guide ...
-1
votes
0answers
21 views

display reported hashrate private pool

You have an idea to recover the reported hashrate on my private pool ? i use claymore and open ethereum pool . it is possible to create an api on my server that retrieves claymore stats? best ...
0
votes
0answers
38 views

Is there any ready guides/github open codes for websocket built in?

I am trying to build something similar to wss://socket.etherdelta.com, are there any ready to go codes (open github repositories)? wss://api.forkdelta.com also as an example.
1
vote
1answer
233 views

Is there a complete list of available values for the `--rpcapi` command line option of geth?

I known this page https://github.com/ethereum/wiki/wiki/JSON-RPC, but seems it doesn't contains all available apis, for example, it doesn't contain personal API.
2
votes
2answers
1k views

Is there any websocket ethereum provider?

Is there any websocket ethereum provider? Except etherscan one. Maybe there are paid wss subscriptions?
0
votes
1answer
33 views

Is there an API for the amount of Ethereum mined in a given time frame? [duplicate]

I'm looking for an api that will give me both historical information and realtime information about how many blocks were mined in a given time frame. I'm also looking for data regarding the total ...
2
votes
1answer
1k views

web3js sender account not recognized

Under Ganache, I created some APIs with nodejs to managing a Smart Contract. One API is for the creation of new accounts with newAccount = web3.eth.accounts.create(web3.utils.randomHex(32)); Then, ...
0
votes
1answer
321 views

How to make API calls from a .NET Application to an Ethereum Private Network

I'm starting on blockchain development and I have a question: I was wondering if it is possible to make RPC calls to a private ethereum network (handling user private keys is not a problem in our ...
0
votes
1answer
54 views

How to install/use Oraclize on Windows 10?

I wanna get data from external data(web or just text files) to my smart contract. I found how to install and use the external data! But all the data was for Linux. like, sudo apt-get install npm ...
0
votes
0answers
123 views

Blockcypher Ethereum testnet issues

I'm using blockcypher APIs to create contracts and call their methods. At the moment I'm only using the testnet since I'm in the early stages of dev. I keep geeting error from the api like: "Error ...
1
vote
1answer
123 views

How to integrate Ethereum with MATLAB?

As the computation on Ethereum is expansive, I want do some matrix calculation off-chain. However, it is confused that how to transmit data between Ethereum and other software (like MATLAB)?. Is there ...
0
votes
1answer
119 views

Eth_call through oraclize

so I have a contract deployed on Ropsten and now I'm trying to access the public variable using a JSON RPC call through Infura and Oraclize. Here's my contract: contract test_contract { uint ...
2
votes
2answers
856 views

Can I get an ERC20 balance n blocks back in time?

By calling a running Ethereum node through the getBalance API, you can get the Ethereum balance N blocks back as explained here. This is useful if you would only like to trust a balance which has been ...
0
votes
1answer
60 views

Can I download all transactions into EOS ICO as a excel file?

I would like to download all transactions into EOS ICO as an excel file. I know etherscan provides this service but it only allows me to download 2000 transactions. But the transactions into EOS crowd ...
1
vote
0answers
29 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 ...
3
votes
2answers
1k views

Get Balance History of address

In building an IONIC app, I am attempting to retrieve the historical balance of a single Ethereum address. I am currently not sure how far back I will need to go. I know that Etherscan.IO offers a web ...
1
vote
1answer
83 views

External Javascript isn't updating account balance

I have a simple smart contract that is supposed to record input strings on the blockchain using events: pragma solidity 0.4.19; contract Recorder{ event Record( address _from, string ...
0
votes
1answer
539 views

Read info from block chain from within a contract

Is it possible to read the block chain from within a contract? Specifically, I want to know if I can see how much ether user A has spent during the last 50 or so blocks. I didn't find anything in the ...
0
votes
1answer
235 views

Sending transactions without downloading the blockchain

I'm rather new to this world and it's a bit overwhelming. I would like to manage an eth address from a lightweight device (think of a raspberry). I want to handle incoming transactions i.e resend ...
0
votes
3answers
1k views

Get all TOKEN transactions by address

Given the address of a token, how I can get all the transactions related to that address using JSON RPC or an external api such a api.etherscan.io? The transactions that gives a Ethereum address are ...
0
votes
2answers
668 views

Converting between Fiat (USD) to ether in solidity

I have a situation where I send 1$ worth of ether to my smart contract.. Now, how do I validate the same on solidity? How do I make sure that the user is sending 1$ worth of ether at any given time. ...
3
votes
1answer
177 views

API to enumerate the blocks from a specific day

I'm trying to find an API that lists all the blocks from a specific day, as we can do with bitcoin: https://blockchain.info/pt/blocks/1515628800000?format=json I've searched etherscan.io and ...
1
vote
0answers
836 views

How to get all the transactions made by a token address [duplicate]

Given the address of a token, how I can get all the transactions related to that address using JSON RPC or an external api such a api.etherscan.io? The transactions that gives a Ethereum address are ...
0
votes
0answers
66 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 ...
1
vote
2answers
251 views

Erc20 token minting based on api variable

Can I have a erc20 coin contract that watches an API and mints coins and distributes them evenly to the network based on a changing variable in said API?
0
votes
1answer
91 views

Are there any public services which allow broadcasting tx (like etherscan.io/pushTx)?

I'm looking for a way how to broadcast signed raw tx without Ethereum node. It's possible to do via https://etherscan.io/pushTx, but I'd like to find other options because of reliability.
1
vote
2answers
844 views

Block.io ETH alternative

What's a good Ethereum alternative to block.io? By good I mean, trusted and production ready.
1
vote
2answers
613 views

Should an API call be in the Solidity backend or the Javascript frontend?

I am fairly new to blockchain development. I want to call a function in my contract when a condition in the API is true. Should I make this API call in my contract, or in my frontend?
1
vote
1answer
185 views

How do you handle a non-deterministic change during smart contract execution?

I read the following E-SO post and also several threads on Ethereum/Solidity forums regarding smart contracts and external servers (anything involving a socket): Why can't contracts make API ...
0
votes
1answer
33 views

Smart contract access from external source

I would like to build a simple smart contract, which can be accessed from "the outside World", meaning I can call methods of the contract from another small application or web site, instead of having ...