you_sendRawTransaction

描述:为签名交易创建一个新的消息调用交易或合约

parameter

数据类型 备注
String 签名的交易数据
params: ["0xf86c824e21820100840100000094328b862bb7db4814c7170d6c6192f62107075b0a87038d7ea4c68000801ba012f9041f1c321454226d0e922dd8c11f7ee154f41186cd2f81cb7a3c45d38e9ca04ae8838f0ca92b113365cc529b01e5ba0598c966e9993d02afa6de4a23fef025"]

return

数据类型 备注
String, 32 字节 交易哈希,如果交易未生效,则返回全 0 哈希

当创建合约时,在交易生效后,使用 you_getTransactionReceipt 获取合约地址。

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0","id": 1,
    "method": "you_sendRawTransaction",
    "params": ["0xf86c824e21820100840100000094328b862bb7db4814c7170d6c6192f62107075b0a87038d7ea4c68000801ba012f9041f1c321454226d0e922dd8c11f7ee154f41186cd2f81cb7a3c45d38e9ca04ae8838f0ca92b113365cc529b01e5ba0598c966e9993d02afa6de4a23fef025"]
}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x52a9cf0e511d36ef78eaa41a6decbcb716bfadd5ec139da8b6b2176e8c914d99"
}