Submit Hash
curl --request POST \
--url https://api.example.com/v1/transactions/submit-hashimport requests
url = "https://api.example.com/v1/transactions/submit-hash"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/transactions/submit-hash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/transactions/submit-hash",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/transactions/submit-hash"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/transactions/submit-hash")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/transactions/submit-hash")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTransactions
Submit Hash
POST /v1/transactions/submit-hash — Notify RebelFi of a broadcast transaction
POST
/
v1
/
transactions
/
submit-hash
Submit Hash
curl --request POST \
--url https://api.example.com/v1/transactions/submit-hashimport requests
url = "https://api.example.com/v1/transactions/submit-hash"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/transactions/submit-hash', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/transactions/submit-hash",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/transactions/submit-hash"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/transactions/submit-hash")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/transactions/submit-hash")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyEndpoint:
POST https://api.rebelfi.io/v1/transactions/submit-hashto), call data and value (nonce and
gas may differ); on Solana the wallet’s signature and the instructions (compute budget and fee payer may differ). A
transaction that does something else is refused with TRANSACTION_MISMATCH and nothing is recorded.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
operationId | number | Yes | Operation ID from supply/unwind |
txHash | string | Yes | On-chain transaction hash (EVM: 0x and 64 hex characters) or signature (Solana: base58, 64 bytes) |
transactionId | number | No | The transaction (from the operation’s transactions) this hash is for. Recommended for EVM multi-transaction operations (approve + supply). If omitted, RebelFi matches the hash against the operation’s transactions still waiting, in order. |
Example Request
curl -X POST "https://api.rebelfi.io/v1/transactions/submit-hash" \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"operationId": 123,
"txHash": "5UfD...xyz"
}'
const result = await client.transactions.submitHash({
operationId: 123,
txHash: '5UfD...xyz'
});
Example Response
202 Accepted
{
"id": 456,
"operationId": 123,
"status": "PENDING",
"txHash": "5UfD...xyz",
"verified": true
}
| Field | Description |
|---|---|
id | The transaction (within the operation) the hash was recorded for |
status | PENDING while RebelFi waits for confirmation; CONFIRMED when the transaction was already confirmed and recorded (for example, a late landing on an EXPIRED or CANCELLED operation) |
verified | true: found on chain and it is the planned transaction; it is recorded. false: not visible on chain yet, so RebelFi keeps your report and records it once the transaction appears and matches. Nothing else to do: poll Get Operation |
UNSIGNED in Get Operation.
The signing deadline does not apply
Submit hash is never refused because the operation passed itsexpiresAt: a transaction you broadcast is already on
chain or on its way. It is accepted on an AWAITING_SIGNATURE, SUBMITTED, EXPIRED or CANCELLED operation. On an
EXPIRED or CANCELLED operation, the planned transaction landing late completes the operation (CONFIRMED) and
RebelFi alerts your organization.
Reporting the same hash again for the same transaction is safe: the reply is the same.
Errors
| Code | HTTP | Description |
|---|---|---|
OPERATION_NOT_FOUND | 404 | Operation ID doesn’t exist |
TRANSACTION_MISMATCH | 400 | The transaction is on chain but it is not the one planned for this operation (another target, data, value, chain or signer). Nothing is recorded. details: { operationId } |
VALIDATION_FAILED | 400 | txHash is not a hash of the operation’s chain; transactionId is not part of the operation or is not waiting for a transaction; the hash is already recorded for another transaction of this wallet; the operation is in a status that takes no hash (PENDING, CONFIRMED, FAILED); or, on an EXPIRED or CANCELLED operation, the transaction failed on chain or another operation on the same wallet with the same plan takes it (the message names that operation: report the hash there) |