Join the Beta: Be one of the first to integrate advanced accounting into your Bitcoin app.
Offer automated accounting without leaving your app.
Simplify tax season with capital gains reports.
Empower merchants with profit and loss statements.
Capture user activity in real-time to surface insights and generate financial reports. Learn more.
import fetch from 'node-fetch';
const API_KEY = 'your-api-key';
const TRANSACTION = {
userId: '550e8400-e29b-41d4-a716-446655440000',
transactions: [
{
transactionId: 'tx123',
timestamp: new Date().toISOString(),
direction: 'send',
amount: '1.5',
currency: 'BTC',
fee: '0.001',
destinationWalletId: '550e8400-e29b-41d4-a716-446655440000',
note: 'Payment for services',
walletId: '550e8400-e29b-41d4-a716-446655440000'
}
]
};
await fetch('https://staging.api.clams.tech/v0/transactions', {
method: 'POST',
headers: {
'x-api-key': API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify(TRANSACTION)
});
import fetch from 'node-fetch';
const API_KEY = 'your-api-key';
const TRADE = {
userId: '550e8400-e29b-41d4-a716-446655440000',
trades: [
{
tradeId: 'trade456',
timestamp: new Date().toISOString(),
fromCurrency: 'BTC',
toCurrency: 'USD',
fromAmount: '0.5',
toAmount: '10000',
feeAmount: '10',
feeCurrency: 'USD',
note: 'Sold BTC for USD',
walletId: '550e8400-e29b-41d4-a716-446655440000'
}
]
};
await fetch('https://staging.api.clams.tech/v0/trades', {
method: 'POST',
headers: {
'x-api-key': API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify(TRADE)
});
Founders: Become an early partner for our closed beta.
Developers: Explore our API docs for full integration details.