Simple-Web3-Php
Simple-Web3-Php copied to clipboard
A web3 php interface for interacting with the Ethereum blockchain and ecosystem.
cann't call overloaded functions before for example we have contract code with such functions: ``` function foo() { } function foo(uint x) { } function foo(uint x, uint y) {...
Maybe it'll be good to spli this project into separated project just for ABI encoding/decoding which other php projects for interacting with ethereum based nodes can use. I think nothing...
I want to make a script to batch sweep user wallet addresses(batch transfer to target address), First, batch check the balance of the user's wallet address and whether the user's...
Can you example for ABI::Encodedata which. ==>. input tuple[] $abi = new ABI(); $abi->Init('[{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"},{"internalType":"address","name":"factory","type":"address"}],"internalType":"struct IRouter.Route[]","name":"routes","type":"tuple[]"}],"name":"getTest","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"}]'); $callData = [new stdClass()]; $callData[0]->from = '0x0000000000000000000000000000000000000006'; $callData[0]->to = '0x0000000000000000000000000000000000000006'; $callData[0]->stable = false; $callData[0]->factory =...