Step 2 Add bank account (passkey or wallet)
curl --request POST \
--url https://api.byzantine.fi/v1/submit/add-bank-account \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<string>",
"signedBody": {
"type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
"timestampMs": "<string>",
"organizationId": "<string>",
"parameters": {
"signWith": "<string>",
"payload": "<string>",
"encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
"hashFunction": "HASH_FUNCTION_NO_OP"
}
},
"webAuthnStamp": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
'import requests
url = "https://api.byzantine.fi/v1/submit/add-bank-account"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<string>",
"signedBody": {
"type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
"timestampMs": "<string>",
"organizationId": "<string>",
"parameters": {
"signWith": "<string>",
"payload": "<string>",
"encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
"hashFunction": "HASH_FUNCTION_NO_OP"
}
},
"webAuthnStamp": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountId: '550e8400-e29b-41d4-a716-446655440000',
label: '<string>',
signedBody: {
type: 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2',
timestampMs: '<string>',
organizationId: '<string>',
parameters: {
signWith: '<string>',
payload: '<string>',
encoding: 'PAYLOAD_ENCODING_HEXADECIMAL',
hashFunction: 'HASH_FUNCTION_NO_OP'
}
},
webAuthnStamp: '<string>',
achBankAccountDetails: {bankName: '<string>', accountNumber: '<string>', routingNumber: '<string>'},
ibanBankAccountDetails: {
accountNumber: '<string>',
bic: '<string>',
country: '<string>',
bankName: '<string>'
}
})
};
fetch('https://api.byzantine.fi/v1/submit/add-bank-account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "Business account",
"liquidationAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"destinationCurrency": "usd",
"destinationRail": "ach",
"bankName": "BNP Paribas",
"last4": "1234"
}Bank accounts
Step 2 Add bank account (passkey or wallet)
Add a bank account to withdraw to. At least one bank account must be added before any off-ramp withdrawal can be initated.
The bank account details must be the ones sent to get-add-bank-account-payload, on the same chain, along with
the authorization it enabled: the stamped bodyToSign for a Turnkey account (signedBody + webAuthnStamp), or the
wallet signature of the typedData for a self-custodial account (walletSignature + issuedAt).
POST
/
v1
/
submit
/
add-bank-account
Step 2 Add bank account (passkey or wallet)
curl --request POST \
--url https://api.byzantine.fi/v1/submit/add-bank-account \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<string>",
"signedBody": {
"type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
"timestampMs": "<string>",
"organizationId": "<string>",
"parameters": {
"signWith": "<string>",
"payload": "<string>",
"encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
"hashFunction": "HASH_FUNCTION_NO_OP"
}
},
"webAuthnStamp": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
'import requests
url = "https://api.byzantine.fi/v1/submit/add-bank-account"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<string>",
"signedBody": {
"type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
"timestampMs": "<string>",
"organizationId": "<string>",
"parameters": {
"signWith": "<string>",
"payload": "<string>",
"encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
"hashFunction": "HASH_FUNCTION_NO_OP"
}
},
"webAuthnStamp": "<string>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountId: '550e8400-e29b-41d4-a716-446655440000',
label: '<string>',
signedBody: {
type: 'ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2',
timestampMs: '<string>',
organizationId: '<string>',
parameters: {
signWith: '<string>',
payload: '<string>',
encoding: 'PAYLOAD_ENCODING_HEXADECIMAL',
hashFunction: 'HASH_FUNCTION_NO_OP'
}
},
webAuthnStamp: '<string>',
achBankAccountDetails: {bankName: '<string>', accountNumber: '<string>', routingNumber: '<string>'},
ibanBankAccountDetails: {
accountNumber: '<string>',
bic: '<string>',
country: '<string>',
bankName: '<string>'
}
})
};
fetch('https://api.byzantine.fi/v1/submit/add-bank-account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bankAccountId": "550e8400-e29b-41d4-a716-446655440000",
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "Business account",
"liquidationAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"destinationCurrency": "usd",
"destinationRail": "ach",
"bankName": "BNP Paribas",
"last4": "1234"
}Headers
Query Parameters
Body
application/json
Bank account details to associate with the Byzantine account, and the signature authorizing it
- Option 1
- Option 2
How the account owner authorized the bank account addition
Cryptographically passkey signed (stamped). For more info, see authentication methods.
Response
Bank account added successfully

