post https://api.infstones.com/zetachain/mainnet//eth
Parameters
Object
- The transaction object
Key | Required | Type | Detail |
---|---|---|---|
from | ✅ | String | Address the transaction is sent from. |
to | ✅ | String | Address the transaction is directed to. |
gas | ❌ | String | A hex code of an integer that represents the gas provided for the transaction execution. |
gasPrice | ❌ | Integer | A hex code of an integer that represents the price used for each paid gas. |
value | ❌ | Integer | A hex code of an integer that represents the value sent with this transaction. |
data | ❌ | String | Hash of the method signature and encoded parameters. Learn more here. |
nonce | ❌ | Integer | A hex code of an integer that represents the nonce. Allows to overwrite your own pending transactions that use the same nonce. |
"params": [
"unknown"
]
Result
The transaction hash, or the zero hash if the transaction is not yet available.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_sendTransaction","params": ["unknown"],"id":1}'
Return
unknown