ethereum-php | PHP interface to Ethereum JSON | Cryptocurrency library
kandi X-RAY | ethereum-php Summary
kandi X-RAY | ethereum-php Summary
PHP interface to Ethereum JSON-RPC API. Fully typed Web3 for PHP 7.X
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Decode values from a range
- Convert an array to a complex type .
- Decode raw data .
- Calculate the abi from a number .
- Convert an amount from one currency to another
- Create a smart contract from a build directory .
- Validate a hex string .
- Checks UTF - 8 strings .
- Remove leading zeros from a string .
- Get the function signature
ethereum-php Key Features
ethereum-php Examples and Code Snippets
Community Discussions
Trending Discussions on ethereum-php
QUESTION
I'm trying to use this: https://github.com/digitaldonkey/ethereum-php
so I run: composer require digitaldonkey/ethereum-php
but I get:
[InvalidArgumentException]
Could not find package digitaldonkey/ethereum-php at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
So I imagine I need to specify some other branch but what?
...ANSWER
Answered 2017-Nov-01 at 08:29Open your composer.json
if that package has no stable version then you have to change your minimum-stability
to dev
.
QUESTION
What's the best way to get an ETH address from a website form submission (php) passed to a smart contract in order that the smart contract can send some new minted Tokens to the ETH address collected in the php form?
The user submitting the ETH address on the website does not have any ETH so we will have to pay for the Gas for any transactions.
The user's ETH address submitted on the php form is different to the msg.sender address (us).
Have been considering using PHP with: https://github.com/digitaldonkey/ethereum-php
But is there an easier approach? Thank you
...ANSWER
Answered 2017-Jul-18 at 19:34If you want to call a method on the smart contract, you have to sign and send a transaction. In your case you want to sign the transaction from inside PHP.
To sign a transaction you need
- crpyto signing library
- private key for an account that can call the contract and has ether
- ability to encode contract method parameters
I don't know how to do this from PHP but in JS you would use https://github.com/ethereumjs/ethereumjs-tx
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ethereum-php
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page