Skip to content

Unable to connect when $eth->eth_protocolVersion #47

@thachbond

Description

@thachbond

`try {
// Connect to Ganache
$eth = new Ethereum('http://127.0.0.1:8545');
$eth->eth_getBalance()

        $result = $eth->eth_getBalance(["0xc94770007dda54cF92009BFF0dE90c06F603a09f","latest"]);
        var_dump($result);
    }
    catch (\Exception $exception) {
        die ("Unable to connect.");
    }`

return: syntax error, unexpected '$result' (T_VARIABLE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions