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
14
votes
1answer
13k 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 ...
11
votes
4answers
7k 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?
4
votes
0answers
390 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 ...
2
votes
3answers
4k 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 ...
2
votes
2answers
833 views

Can I write API endpoints with Truffle?

Does anybody knows how to write an API inside a Truffle application?
2
votes
0answers
71 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 ...
1
vote
1answer
450 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,...
1
vote
1answer
38 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 ...
1
vote
1answer
142 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 ...
1
vote
0answers
66 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 ...
0
votes
2answers
440 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 ...
0
votes
1answer
21 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-...
0
votes
1answer
298 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 ...
0
votes
1answer
202 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 ...
0
votes
1answer
795 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
0
votes
1answer
17 views

Sign a message using coinbase API (OAuth2)? [closed]

Im looking for a routine to build using web3.js where i can make a user login in my app using his/her coinbase account, and then using the wallet / account, can sign a custom message. Any way this is ...
0
votes
1answer
10 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 ...
0
votes
1answer
135 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. ...
0
votes
1answer
98 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 ...