Questions tagged [web3.php]

A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Is it possible to scan for security vulnerability of Smart Contract in PHP

I am trying to use https://github.com/digitaldonkey/ethereum-php to build an api tool for scanning smart contracts for vulnerbilities. Ref link: https://ethereum-php.org/dev/ My doubt it is possible ...
0
votes
1answer
29 views

Calling a function unsing Web3 - External or Public

I have this function in the smart contract: function _mint(address account, uint256 amount) external onlyOwner { require(account != address(0), "ERC20: mint to the zero address"); ...
0
votes
0answers
67 views

Sending XRP tokens from a smart contract to a wallet

I'm trying to use a PHP library (Web3.php) to achieve a transaction of XRP tokens from a simple smart contract to a wallet. use Web3\Web3; use Web3\Providers\HttpProvider; use Web3\RequestManagers\...
0
votes
1answer
31 views

Transaction never appear on Rinkeby

I've signed a transaction with my private key and then used the sendRawTransaction function to send the transaction on the network, I got the Transaction Hash, but when I use that transaction has in ...
0
votes
1answer
412 views

How to send USDT using Web3.php

i am trying to send USDT using the ERC20 address . But not able to do. Can anyone please guide me how to do ..Here is the steps Step 1: use Web3\Contract; $contractAddress = 'ERC-20 contract deployed ...
1
vote
3answers
1k views

How can I transfer tokens of my ERC20 automatically from the server?

I deployed an ERC20 contract. I want to send tokens to other addresses without my manual sign. How can I transfer tokens from my wallet automatically from the server? (via php for example) Thanks.
0
votes
1answer
70 views

Can we use both centralized and decentralized approach for developing DAPP?

I saw a dapp using Decentralized approach for the buying and selling ERC20 Tokens ..But there's no proof of using the functions defined in smart contract in the web3js library.How is that possible ?.....
1
vote
1answer
348 views

Why does some of the DAPP uses PHP and how would they do so?

I always wonder how come many DAPPS uses PHP extension at the end of the filename and how did they do so ?? There is slighlty possibility that they are using the Web3PHP library to interact with the ...
0
votes
1answer
950 views

How to estimate gasLimit of ERC20 contracts in web3.php project?

I am using web3.php project in my Ethereum based project. A part of this project is sending ERC20 tokens, and in this regard, I need to estimate gas limit of transaction. For this purpose, I found the ...
0
votes
0answers
1k views

Web3 library to use with Laravel [duplicate]

Is there some library like web3.js or ethers.js but in PHP to use with Laravel? (Which code is hopefully maintained) Or is PHP just the strongest choice possible I want to work with web3?
0
votes
1answer
855 views

web3.php - How to call a contract function that mutates states?

I'm creating web3 instance $web3 = new Web3( new HttpProvider( new HttpRequestManager( config('infura....
0
votes
1answer
318 views

Erc-20 Token Send Transaction

I want some Information about Erc-20 Transactions. I want to transfer Erc-20Token from first wallet to a second wallet, I have Privet Key, But I want to transfer with Api, So How can I transfer the ...
0
votes
1answer
1k views

Generate wallet public and private key using web3 PHP

I am using this to get public key: https://github.com/sc0Vu/web3.php#assign-value-to-outside-scopefrom-callback-scope-to-outside-scope I am in need of to get the public and private key using PHP ...
2
votes
2answers
2k views

How to connect with public Ethereum Blockchain on a backend/web server?

In the backend of a Web application I have to communicate with the public Ethereum Blockchain. On local development machine, I run ganache as testrpc and connect with such a line of code: web3 = new ...
1
vote
1answer
173 views

My web3.php installation question

How can I install web3.php? Can I use shared hosting to run it or I must use vps, if I use vps I must use root to install web3.php? Thanks.