StarkPay
Broadcast Transactions
Submit a signed transaction to the blockchain through StarkFi’s payment infrastructure. Never broadcast directly from the user’s wallet.
POST
Transaction executor type. Use
api_transaction when the request comes via API.Unique payment identifier generated in the Create Transaction step.
Signed transaction hex string generated by the user’s wallet after signing the
crypto_tx received from the create transaction endpoint.Response
HTTP status code. Returns
200 on success.Whether the request succeeded.
Broadcast result status. Available options:
payment_confirmed, payment_receivedpayment_confirmed— broadcast accepted and transaction receipt confirmed on-chain. Order status updated tosuccess.payment_received— transaction confirmed on source chain. Worker (FinalizerTransferWorker) takes over to monitor the bridge via LiFi. Order status updated toreceived.
Human-readable response message.
Broadcast result data.
Errors
Before broadcast
These occur during payload or order validation, before any transaction is sent to the network.| HTTP | status | When it occurs |
|---|---|---|
400 | invalid_parameters | Invalid payload — schema validation failed |
400 | invalid_chain | Order’s chain is not enabled or not supported |
404 | payment_not_found | payment_id does not exist |
409 | invalid_payment_status | Order is not in registered or retry status |
409 | missing_unsigned_transaction | Unsigned tx was not generated before execute |
400 | invalid_signed_transaction | Invalid signature or mismatch with the unsigned tx |
400 | stale_transaction_nonce | Transaction nonce is out of sync |
During broadcast
These occur after validation, during or after the broadcast to the network.| HTTP | status | When it occurs |
|---|---|---|
500 | payment_failed | Receipt received but transaction was reverted on-chain |
500 | finalizer_payment_order_on_chain_failed | Unexpected exception inside the finalizer |
500 | blockchain_transaction_failed | Exception caught by the controller before reaching the finalizer |
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)