fetch('https://api.example.com/companies', {
method: 'POST', body: JSON.stringify({
"id": "ac615…", "name": "Company inc.", "user": {
"firstName": "John", "lastName": "Smith", "email": "john.smith@company.io",
"login": "john.smith@company.io", "password": "Hko6dWtJGCKp" },
"settings": { "flowType": "check_cryptocurrency" }, "deviceToken": "eP8ey…",
"vaultFactoryAddress": "0x1b3…", "nonce": "0xc5a…",
"companyDataSignature": "0x931…", "signature": "0xa04…"
})
});
fetch('https://api.example.com/vaults', {
method: 'POST',
body: JSON.stringify({
"name": 'Our Company Vault',
"type": 'company-api',
"payload": { apiKey: 'key', secret: 'our secret' }
})
});
const payload = {
assetId: "db2…", payload: { destination: "14WRd...", amount: "123000000" },
notes: "Some text comment", nonce: "0x1d4...", confirmationSignature: "0xc70..."
}
fetch("https://example.com/api/v1/transaction", {
method: "POST",
body: JSON.stringify(payload)
});
const policyId = 'enter-policy-id-here';
fetch('/policies/${policyId}/amend/confirm', {
method: 'POST',
body: JSON.stringify({
nonce: '0x52f...',
confirmationSignature: '0xffd...',
approvalSignature: '0xffd...'
}),
})