Comments (6)
Hi, please show your code
from php-erc20.
`<?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.
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.
Look at this https://stackoverflow.com/a/34883260/1804223 I think this solves your issue.
from php-erc20.
Did your problem solve?
from php-erc20.
closed due to inactivity
from php-erc20.
Related Issues (15)
- Impossible to send approve without ETH for gas HOT 3
- Got the transaction HASH, but the transaction was not successful
- Got the transaction HASH, but the transaction was not successful HOT 7
- mb_substr(): Argument #2 ($start) must be of type int, float given HOT 6
- insufficient funds for gas * price + value HOT 5
- TX fee (XX ether) exceeds the configured cap (1.00 ether) HOT 7
- Always insufficient funds for gas * price + value HOT 6
- insufficient funds for gas * price + value HOT 3
- Error "execution reverted" HOT 6
- How to make a transfer without a specific token HOT 6
- How to handle gasPrice and Limits HOT 1
- Approve Token HOT 2
- I can't understand the parameters. HOT 3
- I Need ERC721 In Php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-erc20.