Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    anyluck
    @anyluck
    No one, I super screen.
    Peter Lai
    @sc0Vu
    @lukeamelej you can try $eth->blockNumber($callback)
    @eddie2005 did you unlock your account first? Or you can paste send error message to me.
    By the way, for security reason remember to limit access to your public node.
    Peter Lai
    @sc0Vu
    @zhangxl296 it implement by contributors not an official version.
    melo dramatic
    @melod
    @sc0Vu no doc?
    melo dramatic
    @melod
    is it possible to ctreate a wallet for eth and contracts?
    Peter Lai
    @sc0Vu
    @melod
    @melod
    We don’t have document right now, we already plan to make a docs of web3.php in nex version!
    Peter Lai
    @sc0Vu
    You cannot create address with web3.php. But it’s possible to create wallet for address and contract in another library (ethereum-wallet we hadn’t push any code but try to do that this month)
    kennypz562
    @kennypz562
    In my case, i have an API written in PHP which periodically checks the database. If certain condition was met, i need to send an alert message from the server to an account/node in the Ethereum blockchain network through smart contract. Any idea how can this be done?
    onew
    @onewaef_twitter

    @sc0Vu how can i call a payable function or a function that costs something? i can interact with smart contract and get the response fine, but i dont know how to sign / pay a function call before calling, or where to enter the private key, example
    i have "updateStorage" in the smart contract that costs something because it changes the storage

    $contract->at($smartContractAddress)->call('updateStorage', "0", [
                        'from' => $fromAccount
                                'gas' => "0x200b20"
                    ], function ($err, $result) use (&$test) {
    
                        if ($err !== null) {
                             throw $err;
                        }
    
                        if (isset($result)) {
                            $test =$result[0]->toString(); 
                        }
                    });

    when, where and how do i pay for the function call? i have the private key for the account that pays, whats the process to sign / pay the call?

    onew
    @onewaef_twitter
    my $eth = $web3->eth; is empty btw
    or $eth->accounts
    onew
    @onewaef_twitter
    i dont have geth or something like that, i'm using infura
    سوريو
    @suryolho_twitter
    almost the same question. is it possible to use infura, and how?
    JaimydeVries
    @JaimydeV_twitter
    Hello everyone
    image.png
    ìm not familiar with this installation process, can anyon enligth me?
    HiddenCorp
    @hiddenc0rp_twitter
    1
    a)
    a\

    .]])
    ccolorado
    @ccolorado
    HI i am trying to figure out a way to sign messages with arbitrary data, ( not just stirings) with web3 php . https://web3js.readthedocs.io/en/v1.2.0/web3-eth-accounts.html#sign
    ccolorado
    @ccolorado
    Is this even possible on php ?
    JLanky
    @JLanky
    2020 - 2 years have passed and there is no documentation
    Lathindu Pramuditha
    @lathindu1
    I'm trying to connect Metamask with Laravel application, is this php plugin still possible ?
    ccolorado
    @ccolorado
    MM only connects at the frontend AFAIK. If you want to connect to the blockchain from php you would want to use something like web3php