starknet_getMessagesStatus
Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order
Parameters
Parameter | Type | Description |
---|---|---|
transaction_hash | string | L1 transaction hash (hex string) |
Request
{
"jsonrpc": "2.0",
"method": "starknet_getMessagesStatus",
"params": [
"0x05abbad1e5"
],
"id": 1
}
Returns
Successful response payload.
Array of message status objects with transaction hash, finality status, and execution status
Errors
Code | Message |
---|---|
29 | Transaction hash not found |
Examples
- cURL
- JavaScript
curl -X POST https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "starknet_getMessagesStatus",
"params": [
"0x05abbad1e5"
],
"id": 1
}'
import { RpcProvider } from 'starknet';
const provider = new RpcProvider({
nodeUrl: 'https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY',
});
const payload = {
method: 'starknet_getMessagesStatus',
params: [
"0x05abbad1e5"
]
};
const result = await provider.fetchEndpoint(payload.method, payload.params);
console.log(result);