All Projects → hunterlong → Textmessage.eth

hunterlong / Textmessage.eth

Licence: gpl-3.0
Send SMS Text Messages within the Ethereum Blockchain - TextMessage.ETH

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to Textmessage.eth

Stromdao Businessobject
Abstract BusinessObject for StromDAO Energy Blockchain. Abstraction layer between blockchain technology and business logic providing energy market related entities and use cases.
Stars: ✭ 10 (-9.09%)
Mutual labels:  ethereum, ethereum-contract
Augur
Augur - Prediction Market Protocol and Client
Stars: ✭ 294 (+2572.73%)
Mutual labels:  ethereum, ethereum-contract
Angular Truffle Starter Dapp
Angular CLI + Truffle Starter Dapp; write, compile & deploy smart contracts on Ethereum blockchains
Stars: ✭ 174 (+1481.82%)
Mutual labels:  ethereum, ethereum-contract
Basic Attention Token Crowdsale
Basic Attention Token
Stars: ✭ 160 (+1354.55%)
Mutual labels:  ethereum, ethereum-contract
Colonynetwork
Colony Network smart contracts
Stars: ✭ 351 (+3090.91%)
Mutual labels:  ethereum, ethereum-contract
Tokenbalance
Simple Ethereum API to get your ERC20 Token Balance along with useful information
Stars: ✭ 163 (+1381.82%)
Mutual labels:  ethereum, ethereum-contract
Yearn Protocol
Yearn smart contracts
Stars: ✭ 277 (+2418.18%)
Mutual labels:  ethereum, ethereum-contract
Ethereum Smart Contracts Security Checklist
Ethereum Smart Contracts Security CheckList From Knownsec 404 Team
Stars: ✭ 114 (+936.36%)
Mutual labels:  ethereum, ethereum-contract
Ethlist
The Comprehensive Ethereum Reading List
Stars: ✭ 3,576 (+32409.09%)
Mutual labels:  ethereum, ethereum-contract
Nmr
The Numeraire Ethereum Smart Contract
Stars: ✭ 316 (+2772.73%)
Mutual labels:  ethereum, ethereum-contract
Ico Contracts
Ethereum smart contracts that have been used during successful ICOs
Stars: ✭ 160 (+1354.55%)
Mutual labels:  ethereum, ethereum-contract
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+3390.91%)
Mutual labels:  ethereum, ethereum-contract
Yearn Vaults
Yearn Vault smart contracts
Stars: ✭ 132 (+1100%)
Mutual labels:  ethereum, ethereum-contract
Eth Vue
Featured in Awesome Vue [https://github.com/vuejs/awesome-vue], a curated list maintained by vuejs of awesome things related to the Vue.js framework, and Awesome List [https://awesomelists.net/150-Vue.js/3863-Open+Source/18749-DOkwufulueze-eth-vue], this Truffle Box provides everything you need to quickly build Ethereum dApps that have authentication features with vue, including configuration for easy deployment to the Ropsten Network. It's also Gravatar-enabled. Connecting to a running Ganache blockchain network from Truffle is also possible -- for fast development and testing purposes. Built on Truffle 5 and Vue 3, eth-vue uses vuex for state management, vuex-persist for local storage of app state, and vue-router for routing. Authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.
Stars: ✭ 171 (+1454.55%)
Mutual labels:  ethereum, ethereum-contract
Truffle Next
🛰️ A boilerplate Truffle Box project with Next.js for rapid Ethereum Dapp development
Stars: ✭ 130 (+1081.82%)
Mutual labels:  ethereum, ethereum-contract
Ethereum Graph Debugger
Ethereum solidity graph plain debugger. To have the whole picture when debugging.
Stars: ✭ 177 (+1509.09%)
Mutual labels:  ethereum, ethereum-contract
Smart Contract Sanctuary
🐦🌴🌴🌴🦕 A home for ethereum smart contracts. 🏠
Stars: ✭ 99 (+800%)
Mutual labels:  ethereum, ethereum-contract
Eden Smart Contracts
EDEN - EDN Smart Token & Smart Contracts
Stars: ✭ 109 (+890.91%)
Mutual labels:  ethereum, ethereum-contract
Bamboo
Bamboo see https://github.com/cornellblockchain/bamboo
Stars: ✭ 300 (+2627.27%)
Mutual labels:  ethereum, ethereum-contract
Ethereum voting dapp
Simple Ethereum Voting dapp using Truffle framework
Stars: ✭ 355 (+3127.27%)
Mutual labels:  ethereum, ethereum-contract


TextMessage.eth
Website | Mainnet | Implement | Pricing

TextMessage(0x0E9E062D7e60C8a6A406488631DAE1c5f6dB0e7D)

Send SMS messages via Ethereum Contracts

TextMessage.ETH will allow you or your contract send SMS text messages to the real world. Using this contract does require a small fee for sending the text message. For international use, the rate is measured in ETH in a range between $0.08 - $0.15 USD. The owner of the contract can change the cost based on ETH/USD exchange rate. TextMessage.eth contract just needs a cellphone number, and a body that is less than 196 characters. You can use this contract by directly interfacing with the ABI json, or you can have your own contract interact with TextMessage.eth.

Encryption Methods

To keep phone numbers and message information private, TextMessage.eth requires you to send your inputs as encrypted strings. TextMessage.eth will automatically decrypt the variables while keeping information on the blockchain private. Using a simple POST or GET to https://cjx.io/encrypt?value=18185555555 you can quickly get this encrypted string for your contract. The encryption endpoint accepts CORS so you can have your ajax/js scripts encrypt variables and do the contract call.

URL POST: https://cjx.io/encrypt

POST Parameter: value=18185555555

URL GET: https://cjx.io/encrypt?value=18185555555

Response: 203c7eaddbea5c20e65ee327dabdf418

You must encrypt your inputs BEFORE sending contract call.

Pricing

Please pay the minimum Cost WEI for the contract to successfully process. Pricing for TextMessage.eth may change frequently based on ETH/USD exchange rate. We try to keep it at $0.10 USD in Ether, but as we all know, the exchange rate changes often.
  • Normal: $0.10 USD
  • Minimum: $0.08 USD
  • Maximum: $0.15 USD
Contract Call             Estimated Gas Value Gas Ether Value   ETH Sent (TXT fee)
sendText(phone,message)  32,635             0.001011685             0.00039  
TextMessage txt = TextMessage(0x0E9E062D7e60C8a6A406488631DAE1c5f6dB0e7D);
uint amount = txt.costWei();

// send 'amount' in wei with sendText

Implementing Inside Contracts

TextMessage Contract API

// TextMessage.ETH Contract Methods
contract TextMessage {
  function sendText(string number, string body) payable public;  // requires minimum wei payment
  function costWei() constant returns (uint); // returns minimum wei amount for SMS message
}

TextMessage Helper Function

function sendMsg(string phone, string body) internal {
  TextMessage txt = TextMessage(0x0E9E062D7e60C8a6A406488631DAE1c5f6dB0e7D);
  uint txtCost = txt.costWei();
  if (this.balance < txtCost) throw;
  txt.sendText.value(txtCost).gas(80000)(phone, body);
}

Complete Example Script

pragma solidity ^0.4.11;

// TextMessage.ETH Contract Methods
contract TextMessage {
    function sendText(string phoneNumber, string textBody) payable public;  // requires minimum wei payment
    function costWei() constant returns (uint);  // returns minimum wei amount for SMS message
}

contract greeter {
  
  function greeter() { }
  
  function sendMsg(string phone, string body) internal {
    TextMessage txt = TextMessage(0x0E9E062D7e60C8a6A406488631DAE1c5f6dB0e7D);
    uint txtCost = txt.costWei();
    if (this.balance < txtCost) throw;
    txt.sendText.value(txtCost).gas(80000)(phone, body);
  }

  function sendMessageToPhone() external {
     string memory phone = "203c7eaddbea5c20e65ee327dabdf418"; 
     string memory body = "094a799e62d3acd8f2244daef23f3c2f8fdad20d774613bea1b84fdbe466031b";
     sendMsg(phone, body);
  }
  
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].