> For the complete documentation index, see [llms.txt](https://docs.skylinebridge.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skylinebridge.tech/oracle-api/bridgingrequeststate.md).

# BridgingRequestState

## Get state of bridging request

> Returns the current status of a bridging request, along with the destination chain ID and transaction hash, based on the given source chain ID and transaction hash.

```json
{"openapi":"3.1.1","info":{"title":"Oracle API","version":"1.0"},"servers":[{"url":"/api"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"BridgingRequestStateResponse":{"properties":{"destinationChainId":{"description":"Destination chain ID","type":"string"},"destinationTxHash":{"description":"Destination transaction hash","type":"string"},"sourceChainId":{"description":"Source chain ID","type":"string"},"sourceTxHash":{"description":"Source transaction hash","type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/BridgingRequestStatus"}],"description":"Status of bridging request"}},"type":"object"},"BridgingRequestStatus":{"enum":["DiscoveredOnSource","InvalidRequest","SubmittedToBridge","IncludedInBatch","SubmittedToDestination","FailedToExecuteOnDestination","ExecutedOnDestination"],"type":"string"},"ErrorResponse":{"properties":{"err":{"type":"string"}},"type":"object"}}},"paths":{"/BridgingRequestState/Get":{"get":{"description":"Returns the current status of a bridging request, along with the destination chain ID and transaction hash, based on the given source chain ID and transaction hash.","parameters":[{"schema":{"type":"string"},"description":"Source chain ID","in":"query","name":"chainId","required":true},{"schema":{"type":"string"},"description":"Source transaction hash","in":"query","name":"txHash","required":true}],"responses":{"200":{"description":"OK - Returns the bridging request with its current state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgingRequestStateResponse"}}}},"400":{"description":"Bad Request – One or more query parameters are missing, or the bridging request state could not be retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized – API key missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found - No bridging request found for the given parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get state of bridging request","tags":["BridgingRequestState"]}}}}
```

## Get states of multiple bridging requests

> Returns statuses and related data for one or more bridging requests, based on the given source chain ID and transaction hash(es).

```json
{"openapi":"3.1.1","info":{"title":"Oracle API","version":"1.0"},"servers":[{"url":"/api"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"BridgingRequestStateResponse":{"properties":{"destinationChainId":{"description":"Destination chain ID","type":"string"},"destinationTxHash":{"description":"Destination transaction hash","type":"string"},"sourceChainId":{"description":"Source chain ID","type":"string"},"sourceTxHash":{"description":"Source transaction hash","type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/BridgingRequestStatus"}],"description":"Status of bridging request"}},"type":"object"},"BridgingRequestStatus":{"enum":["DiscoveredOnSource","InvalidRequest","SubmittedToBridge","IncludedInBatch","SubmittedToDestination","FailedToExecuteOnDestination","ExecutedOnDestination"],"type":"string"},"ErrorResponse":{"properties":{"err":{"type":"string"}},"type":"object"}}},"paths":{"/BridgingRequestState/GetMultiple":{"get":{"description":"Returns statuses and related data for one or more bridging requests, based on the given source chain ID and transaction hash(es).","parameters":[{"schema":{"type":"string"},"description":"Source chain ID","in":"query","name":"chainId","required":true},{"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"description":"Source transaction hashes","in":"query","name":"txHash","required":true}],"responses":{"200":{"description":"OK – Returns a map with source transaction hashes as keys and the associated bridging request data as values.","content":{"application/json":{"schema":{"additionalProperties":{"$ref":"#/components/schemas/BridgingRequestStateResponse"},"type":"object"}}}},"400":{"description":"Bad Request – chainId is missing from the query or the bridging request states could not be retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized – API key missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"summary":"Get states of multiple bridging requests","tags":["BridgingRequestState"]}}}}
```
