/evaluateSmartContractTransactionWithoutDataForContract
1 min
POST
http://1.1.1.1/evaluateSmartContractTransactionWithoutDataForContract
from_addressstringthe address where the transaction is sent from.
contract_addressstringthe address of the contract to send to
gas_pricestring<p>the gas price we want to transfer with, in Wei - if None the gas price will be the default value from the eth call.</p>
amountstring<p>the amount to send with this transaction, in Wei - if None the amount will be the default value from the eth call. transaction</p>
gas_limitstring<p>the gas limit we want to transfer, in gas units - if None the gas limit will be the default value from the eth call.</p>
evm_coin_symbolstring<p>the coin symbol of the EVM network on which the smart contract is deployed, for example: ETH, CELO, etc...</p>
bodyobjectRequest data for an Ethereum contract transaction.
200success
curl --request POST \
--url 'http://1.1.1.1/evaluateSmartContractTransactionWithoutDataForContract?from_address=0xd38fcFD88C41F32E4711f3722375dD611b42A024&contract_address=0x963d0aef2a6ba868b38cb032f2a81db145c467fb&gas_price=1000000000&amount=1&gas_limit=600000&evm_coin_symbol=ETH' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"FunctionData": {
"Amount": "1",
"ContractAddress": "0x963d0aef2a6ba868b38cb032f2a81db145c467fb",
"EvmCoinSymbol": "ETH",
"FromAddress": "0xd38fcFD88C41F32E4711f3722375dD611b42A024",
"GasLimit": "600000",
"GasPrice": "1000000000"
},
"Meta": {
"FunctionName": "evaluateSmartContractTransactionWithoutDataForContract",
"RandomData": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229",
"Destination": "b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea",
"Time": "2021-02-07T18:37:46.948Z",
"Source": "048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99",
"AccessToken": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087"
}
}'- evaluates a smart contract transaction with data for contract as raw data in hex, by calling an eth call and returns the
- EthCallResponse in the response - error message in case of eth call failure, and the return value of the
- eth call in case of eth call success.
- return - ETHCallReturnValue if succeed else error.
- return error examples-
- gas is too low- "err- intrinsic gas too low- have 21500, want 21572 (supplied gas 21500)"
- not an address of an eth contract- "0xe62862CBcE5C0c6F53B180Ee5dbf95a8AeA2dd60 is not an address of Ethereum contract!"
- revert- "execution reverted"
- success example-
- example- "EthCallReturnValue"- "0000000000000000000000000000000000000000000000000000000000000001"example-evaluateSmartContractTransactionWithoutDataForContract("0xd38fcFD88C41F32E4711f3722375dD611b42A024","0x963d0aef2a6ba868b38cb032f2a81db145c467fb",evm_coin_symbol="ETH")
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.