Questions tagged [php]
Questions regarding the use of the PHP scripting language with Ethereum.
70 questions
0 votes
1 answer
45 views
How to format an rarible signature
In PHP I am trying to format the signature wich I receive from the https://api.rarible.org/v0.1/collections/ETHEREUM:'.collectionAddress.'/generateTokenId?minter=ETHEREUM:'.ownAddress API. This is the ...
2 votes
1 answer
182 views
Why there is no private key in sending transaction code in Web3.php?
I want to use Web3.php so that I send contract transaction to Ethereum blockchain. I use the following code: $web3 = new Web3('... node address ...'); $contract = new Contract($web3->provider, $...
0 votes
1 answer
162 views
Is it possible to create an OpenSea collection using their API?
I want to create a collection in OpenSea but using a php backend instead of using their platform. Is it possible to do this? I have been looking at their API documentation and I haven't been able to ...
1 vote
0 answers
187 views
how to to create and broadcast a custom token transaction in bsc with php?
i have custom token on bsc. i use some kornrunner class for signing my transaction and broadcast it but i have some problem here. when i send hex to bsc chain, return txid for me but blockHash & ...
1 vote
1 answer
179 views
"Reverse ENS lookup" using php-keccak
I am using kornrunner/php-keccak and I am attempting to do a "reverse lookup" on an ENS name, essentially the same as this question which was never answered. Any thoughts? Here's my attempt ...
1 vote
1 answer
819 views
Recover public key from signature and address only works with MetaMask provider
I have to implement a login system with a web3modal using WalletConnect & MetaMask. After many attempts, it seems that all the existing source codes about this on the internet only work with ...
0 votes
1 answer
772 views
e is not a constructor - WalletConnectProvider model not working
Metamask is working perfectly. BinanceChainWallet is working perfectly. WalletConnectProvider (model: QR - desktop/mobile wallet support), not working when I click on Wallet-Connect model on the front-...
1 vote
0 answers
725 views
How to call a Smart Contract function using php
I am trying to call a simple function (no parameters) from a Smart Contract currently on the Rinkeby network using php. I have an ubuntu 22.04 server with Apache, I installed composer and the ethereum-...
0 votes
1 answer
324 views
Recover address from signature works only with MetaMask
I try to implement Web3 login to my page. It works with MetaMask, but with other wallets (like LRC, Coinbase or Argent) it doesn't - recovered address differs from the original one. Ethereum\EcRecover ...
1 vote
0 answers
612 views
How to get the latest block of a contract with web3.php?
I need to get the latest block because 'latest' as toBlock doesn't work. I tried the code below with $toBlock = 'latest' $this->eth->getLogs([ 'fromBlock' => (is_int($fromBlock)) ? '0x' . ...
0 votes
2 answers
1k views
"invalid sender" when sending a signed transaction on bsc on PHP
I'm trying to replicate a script that I have already running in nodejs in php. On PHP I'm using "web3p/web3.php": "dev-master", "web3p/ethereum-tx": "^0.4.3" ...
0 votes
0 answers
119 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 ...
3 votes
1 answer
280 views
What are the best tools or ways to interact with a smart contract from a word-press website?
I am currently working on a WordPress website and I want to interact with a deployed smart contract and need help selecting the right tools or ways to interact.
1 vote
1 answer
997 views
How to decode log data from bscscan API using PHP?
I'm pulling fight logs from a BSC contract via bscscan API. The data record, which should be a set 6 different values, looks like this: ...
5 votes
1 answer
2k views
How can I do abi.encodePacked in Python or PHP?
Just concatenating strings doesn't work. Keccak::hash(10 . $address, 256) is what I'm doing atm.