Home / Companies / Vonage / Blog / Post Details
Content Deep Dive

Connect to the Ethereum Blockchain with Node.js and Vonage

Blog post from Vonage

Post Details
Company
Date Published
Author
Caleb Ikhuohon
Word Count
1,164
Language
English
Hacker News Points
-
Summary

The Ethereum blockchain is used to create a distributed ledger where users can agree upon code execution and data updates. Smart contracts emit events from the blockchain which a user interface can listen for to enable specific actions and write event logs (data) to the blockchain. The Vonage Conversation API provides a host of APIs to enables real-time communication over several channels (voice, text, video). Interactions via these channels can be initiated by creating a Conversation, and users are created to interact in this conversation via membership. A Node.js application is set up with environment variables for easy interaction with the Vonage Conversation API and the Ethereum blockchain through Web3. The application sends a message to the network, creates a Conversation event once the transaction hash becomes available, and listens for Blockchain events such as NewText emitted from the Ethereum Blockchain.