Giter Site home page Giter Site logo

CURL ERROR about php-erc20 HOT 6 CLOSED

lessmore92 avatar lessmore92 commented on August 26, 2024
CURL ERROR

from php-erc20.

Comments (6)

lessmore92 avatar lessmore92 commented on August 26, 2024

Hi, please show your code

from php-erc20.

lhtRaghkumarTentu avatar lhtRaghkumarTentu commented on August 26, 2024

`<?php

require_once "vendor/autoload.php";

class USDT extends \Lessmore92\Ethereum\Foundation\StandardERC20Token
{
protected $contractAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7";
}

$tether = new USDT("https://mainnet.infura.io/v3/API_KEY");

var_dump($tether->name());
var_dump($tether->decimals());

?>`

from php-erc20.

lhtRaghkumarTentu avatar lhtRaghkumarTentu commented on August 26, 2024

when I Run This Code I Found Below Error.

PS C:\Users\hp\OneDrive\Desktop\teswt1> php index.php
PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\Users\hp\OneDrivStack trace:
#0 C:\Users\hp\OneDrive\Desktop\teswt1\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection()
#3 C:\Users\hp\OneDrive\Desktop\teswt1\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#4 C:\Users\hp\OneDrive\Desktop\teswt1\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler{closure}()
#5 C:\Users\hp\OneD in C:\Users\hp\OneDrive\Desktop\teswt1\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201

from php-erc20.

lessmore92 avatar lessmore92 commented on August 26, 2024

Look at this https://stackoverflow.com/a/34883260/1804223 I think this solves your issue.

from php-erc20.

lessmore92 avatar lessmore92 commented on August 26, 2024

Did your problem solve?

from php-erc20.

lessmore92 avatar lessmore92 commented on August 26, 2024

closed due to inactivity

from php-erc20.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.