subbridge_getReceiptFromParentChain
The subbridge_getReceiptFromParentChain returns the receipt of the anchoring transaction.
JSONRPC: subbridge_getReceiptFromParentChain
Request
- application/json
Body
Default value: subbridge_getReceiptFromParentChain
Method name
Default value: 1
Request ID, Random or Auto incrementation
Default value: 2.0
JSON-RPC Version (2.0)
Responses
- 200
Object - A transaction receipt object, or null when no receipt was found.
- application/json
- Schema
- Example (from schema)
Schema
Default value: 2.0
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
| code | message | description | |-----|-----|-------| | -32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. | |-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
result
object
Object - A transaction receipt object, or null when no receipt was found.
The contract address created, if the transaction was a contract creation, otherwise null. (will be deprecated)
The amount of gas used by this specific transaction alone.
Array of log objects, which this transaction generated.
Bloom filter for light clients to quickly retrieve related logs.
Either 1 (success) or 0 (failure).
Hash of the transaction.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"contractAddress": "0x0000000000000000000000000000000000000000",
"gasUsed": "0x9470",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"transactionHash": "0x3641f52359f44ef2a9941ea840aed4befbace5cac28d5cc8cacd94eae211fd1e"
}
}