web3p / web3.php

A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
MIT License
1.16k stars 544 forks source link

Return number string or bignumber instance #32

Open sc0Vu opened 6 years ago

sc0Vu commented 6 years ago

I saw web3js always format output as number string.

Right now we just return bignumber instance.

Should we return number string or bignumber instance?

HanzCEO commented 3 years ago

I prefer to get string response instead of BigNumber as the default. Put an argument to let developer pick the response type they like