跳转到主要内容
POST
quai_getRawTransactionByBlockHashAndIndex
curl --request POST \
  --url https://rpc.quai.network/cyprus1/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "quai_getRawTransactionByBlockHashAndIndex",
  "params": [
    "0x80e1b681569301bec7aad08dd5a585aff74f37db52ee2766756aef03a8e5e5c9",
    "0x1"
  ],
  "id": 1
}
'
{
  "jsonrpc": "2.0",
  "result": "0x00f86c82232824843b9aca00847735940482a41094111a8a2ffb1729497e0cfbfc5fa2e2b405e13ba74f80c080a01c2ae1b000172a500f1a7e6e9265264d9ba9e9edd835411bf4233f3f2b05c7d9a01f9e48da332873ea7514b5ffa17febd543a7a9d0ef20651a4b14a394c0333837",
  "id": 1
}

请求体

application/json
jsonrpc
enum<string>
必填
可用选项:
2.0
示例:

"2.0"

method
enum<string>
必填

The name of the method to be invoked.

可用选项:
quai_getRawTransactionByBlockHashAndIndex
示例:

"quai_getRawTransactionByBlockHashAndIndex"

params
string[]
必填

The block hash and transaction index.

Required array length: 2 elements
示例:
[
"0x80e1b681569301bec7aad08dd5a585aff74f37db52ee2766756aef03a8e5e5c9",
"0x1"
]
id
integer
必填

A unique identifier for the request.

示例:

1

响应

200 - application/json

Successful response

jsonrpc
string
示例:

"2.0"

result
string

The raw transaction bytecode.

示例:

"0x00f86c82232824843b9aca00847735940482a41094111a8a2ffb1729497e0cfbfc5fa2e2b405e13ba74f80c080a01c2ae1b000172a500f1a7e6e9265264d9ba9e9edd835411bf4233f3f2b05c7d9a01f9e48da332873ea7514b5ffa17febd543a7a9d0ef20651a4b14a394c0333837"

id
integer
示例:

1