Submit transaction
curl --request POST \
--url https://api.bridg.now/v1/bridge/transfers/{id}/submit \
--header 'Content-Type: application/json' \
--data '
{
"signedTransaction": "<string>",
"txHash": "<string>",
"userIp": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({signedTransaction: '<string>', txHash: '<string>', userIp: '<string>'})
};
fetch('https://api.bridg.now/v1/bridge/transfers/{id}/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bridg.now/v1/bridge/transfers/{id}/submit"
payload = {
"signedTransaction": "<string>",
"txHash": "<string>",
"userIp": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"transferId": "<string>",
"status": "<string>",
"txHash": "<string>",
"step": "approve",
"accepted": true,
"verification": "verified"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}Transfers
Submit transaction
Hand back the signed transaction for Bridg to broadcast, or the hash of one your wallet already sent. Exactly one of signedTransaction and txHash. The transaction is decoded and compared to the steps that were built; anything else is refused and nothing is broadcast. Idempotent: a repeat answers with the hash on record and accepted: false.
POST
/
bridge
/
transfers
/
{id}
/
submit
Submit transaction
curl --request POST \
--url https://api.bridg.now/v1/bridge/transfers/{id}/submit \
--header 'Content-Type: application/json' \
--data '
{
"signedTransaction": "<string>",
"txHash": "<string>",
"userIp": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({signedTransaction: '<string>', txHash: '<string>', userIp: '<string>'})
};
fetch('https://api.bridg.now/v1/bridge/transfers/{id}/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bridg.now/v1/bridge/transfers/{id}/submit"
payload = {
"signedTransaction": "<string>",
"txHash": "<string>",
"userIp": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"transferId": "<string>",
"status": "<string>",
"txHash": "<string>",
"step": "approve",
"accepted": true,
"verification": "verified"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {},
"retryAfterMs": 123
}
}Path Parameters
Pattern:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Body
application/json
Response
The transfer’s new state and the hash on record
Available options:
approve, fee, main, redeem Available options:
verified, pending, unverified_no_rpc, unverified_rpc_error, refuted, null