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
1answer
26 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
72 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 ...
2
votes
0answers
63 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
340 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,...
0
votes
1answer
177 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
576 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
286 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
2answers
393 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 ...
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 ...
1
vote
0answers
65 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 ...
13
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 ...
4
votes
0answers
387 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 ...
11
votes
4answers
6k 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?
2
votes
2answers
785 views

Can I write API endpoints with Truffle?

Does anybody knows how to write an API inside a Truffle application?