Ethereum

Ethereum was launched in 2015 and is the creation of Russian-Canadian programmer Vitalik Buterin. Ethereum is a programmable, public blockchain with scripting functionalities. As a programmable blockchain, Ethereum gives developers the possibility to build applications on it, known as dapps.

The main difference between Ethereum and Bitcoin is that Bitcoin can be described purely as a digital currency. Ethereum blockchain allows developers to program their own functionalities through Smart Contracts.

Smart contracts are deployed on the Ethereum Blockchain and are self-executing. They can enforce a contract, transactions of cryptocurrency or assets, without the need to be verified by a central authority.

Another peculiarity of the Ethereum blockchain is the possibility to build dapps. Some of these dapps have their own cryptocurrency, namely “tokens”. Although tokens are coins created to interact with a dapp, they do not necessarily play the role of a currency. They can also be dividends, voting rights, game credits or even a CryptoKitty. Tokens follow an ERC (Ethereum Request for Comment) Standard, the most known of which is probably the ERC20 Standard.

Crypto APIs supports Ethereum mainnet APIs, Ethereum Rinkeby APIs, Ethereum Ropsten APIs.

Some Useful Endpoints

Blockchain Information

General information about a blockchain is available by GET-ing the base resource.

The returned object contains a litany of information about the blockchain, including its height, the hash of the latest block and more.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Block Hash Endpoint

Get general information about Block Hash Endpoint

Block Hash Endpoint gives you detail information for particular block in the blockchain.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Block Height Endpoint

Get general information about Block Height Endpoint

Block Height Endpoint gives you detail information for particular block in the blockchain.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Latest Block Endpoint

Get general information about Latest Block Endpoint

Latest Block Endpoint gives you detail information for the latest block in the blockchain.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Address Endpoint

Get general information about Address Endpoint

The default Address Endpoint strikes a balance between speed of response and data on Addresses. It returns information about the balance (in ETH) and transactions of a specified address.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Transactions By Address Endpoint

Get general information about Transactions By Address Endpoint

The Transactions By Address Endpoint returns all transactions specified by the query params: index and limit; The maxim value of limit is 50. The value in the returned transactions in WEI.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Generate Address Endpoint

Get general information about Generate Address Endpoint

The Generate Address endpoint allows you to generate private-public key-pairs along with an associated public address. No information is required with this POST request.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Generate Account Endpoint

Get general information about Generate Account Endpoint

The Generate Account Endpoint allows you to generate private-public key-pairs along with an associated public address encoded in a keyfile. A password and user id are required with this POST request. Keyfiles are stored in a keystore subdirectory on our servers. The critical component of the keyfile, the account’s private key, is always encrypted, and it is encrypted with the password entered when the account was created.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Nonce Endpoint

Get general information about Nonce Endpoint

The Nonce Endpoint returns the current nonce of the specified address.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Transaction Hash Endpoint

Get general information about Transaction Hash Endpoint

The Transaction Hash Endpoint returns detailed information about a given transaction based on its hash.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Transactions Index Endpoint by Index, Limit and Block Number

Get general information about Transactions Index Endpoint by Index, Limit and Block Number

The Transaction Index Endpoint by Index, Limit and Block Number returns detailed information about transactions for the block height defined, starting from the index defined up to the limit defined . In the example above index is 0 and limit is 4, therefore the response will be an array of 4 transactions starting from index 0. The highest number for the limit is 50.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Transactions Index Endpoint by Block Number

Get general information about Transactions Index Endpoint by Block Number

The Transaction Index Endpoint by Block Number returns detailed information about a given transaction based on its index and block height.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Transactions Index Endpoint by Block Hash

Get general information about

The Transaction Index Endpoint by Block Hash returns detailed information about a given transaction based on its index and block hash.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Creating Transactions

Get general information about Creating Transactions

Using Crypto APIs, you can push transactions to blockchains one of two ways: Use a third-party library to create your transactions and push raw transactions Use our two-endpoint process outlined below, wherein we generate a TXSkeleton based on your input address, output address, and value to transfer.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Locally Sign Your Transaction Endpoint

Get general information about Locally Sign Your Transaction Endpoint

Crypto APIs provides the opportunity to locally sign your transaction. If you want to use third-pary tools for signing your raw transactions you can send to the Locally Sign Your Transaction Endpoint only the following data: from address; to address; value.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Push Raw Transaction Endpoint

Get general information about Push Raw Transaction Endpoint

Once you’ve finished signing the raw transaction locally, send that raw transaction to our Push Raw Transaction Endpoint.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Estimate Transaction Gas Endpoint

Get general information about Estimate Transaction Gas Endpoint

Crypto APIs provides an endpoint for estimating the gas needed for a successful transaction. This is very useful when sending ether to contracts or making a transaction with additional data in it.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Pending Transactions Endpoint

Get general information about Pending Transactions Endpoint

Pending Transactions Endpoint makes a call to the EVM and returns all pending transactions. The response might be limited if you lack credits.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Queued Transactions Endpoint

Get general information about Queued Transactions Endpoint

Queued Transactions Endpoint makes a call to the EVM and returns all queued transactions. The response might be limited if you lack credits.

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Transactions Fee Endpoint

Get general information about Transactions Fee Endpoint

Transactions Fee Endpoint gives information about the gas price for the successfull transactions included in the last 1500 blocks

Documentation
Code Samples:
                                            
                                        
Response Body:
                                            
                                        

Send us a Message