Step 1 Get add bank account payload (passkey or wallet)
curl --request POST \
--url https://api.byzantine.fi/v1/query/get-add-bank-account-payload \
--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>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
'import requests
url = "https://api.byzantine.fi/v1/query/get-add-bank-account-payload"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<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>',
achBankAccountDetails: {bankName: '<string>', accountNumber: '<string>', routingNumber: '<string>'},
ibanBankAccountDetails: {
accountNumber: '<string>',
bic: '<string>',
country: '<string>',
bankName: '<string>'
}
})
};
fetch('https://api.byzantine.fi/v1/query/get-add-bank-account-payload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bodyToSign": {
"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"
}
},
"typedData": {},
"issuedAt": 1700000000
}Bank accounts
Step 1 Get add bank account payload (passkey or wallet)
Get the payload to sign in order to add a bank account to a Byzantine account. Nothing is created yet: the same
bank account details must be sent again to add-bank-account with the signature.
A Turnkey account receives bodyToSign, to stamp with a passkey. A self-custodial account receives typedData
and issuedAt: the EIP-712 typed data to sign with the account wallet (eth_signTypedData_v4), on the requested chain
(Ethereum when chain_id is omitted).
POST
/
v1
/
query
/
get-add-bank-account-payload
Step 1 Get add bank account payload (passkey or wallet)
curl --request POST \
--url https://api.byzantine.fi/v1/query/get-add-bank-account-payload \
--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>",
"achBankAccountDetails": {
"bankName": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>"
},
"ibanBankAccountDetails": {
"accountNumber": "<string>",
"bic": "<string>",
"country": "<string>",
"bankName": "<string>"
}
}
'import requests
url = "https://api.byzantine.fi/v1/query/get-add-bank-account-payload"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"label": "<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>',
achBankAccountDetails: {bankName: '<string>', accountNumber: '<string>', routingNumber: '<string>'},
ibanBankAccountDetails: {
accountNumber: '<string>',
bic: '<string>',
country: '<string>',
bankName: '<string>'
}
})
};
fetch('https://api.byzantine.fi/v1/query/get-add-bank-account-payload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"bodyToSign": {
"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"
}
},
"typedData": {},
"issuedAt": 1700000000
}Headers
Query Parameters
Body
application/json
Bank account details to associate with the Byzantine account

