Questions tagged [api-design]

API design is the process of determining and exposing a set of consistent method signatures, return values, and documentation intended for use by other developers to allow programmatic access to data.

Filter by
Sorted by
Tagged with
0 votes
1 answer
141 views

Why are Ethereum API RPC and not REST? [duplicate]

I come from traditional web application development background where the standard is RESTful APIs (and recently with some GrapghQL API showing up). When I started interacting with ethereum endpoints, ...
Finlay Weber's user avatar
1 vote
0 answers
28 views

How Ethereum devs maintains it's api versions?

I'd like to know is there any versioning or maintaining rules about APIs in Ethereum. In the dev world, "backward compatibility" is really important especially in APIs. There are many APIs ...
Hyunwoo Lee's user avatar
0 votes
1 answer
603 views

Is there data a data difference between the Uniswap v3 Subgraph and smart contract queries?

I have been using Uniswap's v3 subgraph to query pool and other data. On the docs page, connecting using ethers.js (smart contract transactions), https://docs.uniswap.org/sdk/guides/using-ethers: ...
ElHaix's user avatar
  • 187
1 vote
2 answers
106 views

Infinite loop using react Drizzle component

This might be the best place to ask this. I'm having an infinite loop issue when fetching my NFT's json URI. My main issue was being able to display my NFT's name on the screen but now i'm getting an ...
jalapina's user avatar
  • 205
0 votes
1 answer
57 views

Any email signIn based blockchain wallet APIs for integrating into web dapps & native dapps (Android, iOS)?

I'm looking for an email SignUp / SignIn based blockchain wallet which provides API for integration into web dapps and native mobile dapps (Android & iOS). During payment routine in dapps, this ...
Kombo's user avatar
  • 353
0 votes
1 answer
836 views

Error: Uncaught [TypeError: Cannot read property 'ContractName' of undefined]

I am trying to get source of open source verified contracts and write into a file at my local folder. I could write only one file (of first address) but for the rest i am facing captioned error. ...
Amir Ali's user avatar
  • 447
0 votes
1 answer
2k views

Invalid Address format - Etherscan.io APIs problem

I have download list of verified open source contract addresses's list and loaded into addresses[]. Now I want to download sourcecode/ABIs etc... of that contracts. Although, i have called setTimeOut ...
Amir Ali's user avatar
  • 447
0 votes
1 answer
290 views

Query each struct of a Mapping vs looping getter function for front-end?

I have a mapping of structs and a counter variable to keep track of how many structs are stored in the mapping. For front-end development would you recommend to query each struct using the auto-...
Kevin Wad's user avatar
  • 327
1 vote
1 answer
113 views

Do smart-contracts work as APIs?

Is it possible to put a smart contract "behind" a restful API, i.e. expose my contract functions and properties through restuful API where I can make RPC to it? Or does it work as an API already, but ...
João Quintanilha's user avatar
2 votes
1 answer
998 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 ...
Jacek Dudzic's user avatar
2 votes
0 answers
85 views

Why RPC-like instead of RESTful?

I wonder why for Ethereum Web3 API (and for Bitcoind as well) the choice for the remote API has been on RPC style instead of RESTful. In principle REST is driven by data models while RPC is driven by ...
Davide C's user avatar
  • 896
1 vote
1 answer
1k views

Show an event with nodejs

in my Smart Contract I have a function such that it fires an event at the end of its code. function sendTran(arguments) public { *code* emit Event(argument 1,argument 3,argument 3,...
Bruce Wayne's user avatar
0 votes
1 answer
368 views

How can I check the provider status ? if testRPC connected or not?

I have a problem with using : web3.net.listening The case when I am connected to the testRPC is working and it returns me TRUE. But the case I am not connected it returns me INTERNAL SERVER ERROR. I ...
Tarik EN-NAKDI's user avatar
0 votes
1 answer
2k views

Is there any API available to get transaction history from rinkeby test network?

I want to show this transaction history on my website? Is there any API available for this? Contract URL: https://rinkeby.etherscan.io/address/0x104a1fc33d88a3ee8beaf3a61309758174e82b93
Kamran Jabbar's user avatar
0 votes
1 answer
381 views

How can I execute deployed contract functions using API?

Can you please provide me some demo example how can I access contract functions from a PHP Web Application/Mobile application? For example, if I want to transfer contract funds/ether to owner account ...
Kamran Jabbar's user avatar
0 votes
2 answers
876 views

PHP and wordpress

i am WordPress and php developer. i am working on the plugin development for ethereum. i does't find the sdk or api for the php or JavaScript. can you please guide me for the API documentation for the ...
user16572's user avatar
2 votes
3 answers
5k views

API in Node.js for Solidity smart contract

How to make API for Ethereum smart contract in Node.js? Can anyone send good examples? Is it even a standard way to make API in Node.js so it can interact with any interface because most examples I ...
Shubhabrata Mukherjee's user avatar
1 vote
0 answers
76 views

Wrapper for Jaxx

I would like to build android or iOS application that can send and receive data with contract. I can simply use JAXX, which can let me send 'data' to the contract. But the only problem is that I have ...
Phillip's user avatar
  • 61
14 votes
1 answer
14k views

What's the point of IBAN addresses? [duplicate]

I've been reading through web3.js's API documentation and come across transactions using IBAN numbers. They appear to be alphanumerical values generated from the public address. What is their role ...
Sebi's user avatar
  • 5,284
4 votes
0 answers
421 views

How to create my own wallet and own blockchain explorer?

I'm running my own private/permissioned ethereum blockchain via geth on Ubuntu. How can i interact with my blockchain to visualize accounts, blocks, transactions etc...? I've tried a lot of tutorials ...
Borinho's user avatar
  • 544
15 votes
4 answers
15k views

How to add a file to IPFS using the API?

I have tried some APIs of IPFS like cat, ls. But I am not able to add the file using API. As there is no proper documentation of IPFS API calls. How can I add a file on IPFS using API?
BlockA's user avatar
  • 857
2 votes
2 answers
1k views

Can I write API endpoints with Truffle?

Does anybody knows how to write an API inside a Truffle application?
arodriguezdonaire's user avatar