@europatech/sdk
v1.0.1
Published
Official SDK for the Europa Tech real estate tokenization API
Maintainers
Readme
@europatech/sdk
Official SDK for the Europa Tech real estate tokenization API.
Installation
npm install @europatech/sdkQuick Start
import { EuropaTech } from '@europatech/sdk'
const client = new EuropaTech({
apiKey: 'your-api-key',
})
// List available properties
const objects = await client.listObjects()
console.log(objects)
// Get your portfolio
const portfolio = await client.getPortfolio()
console.log(`Total value: EUR ${portfolio.totalValue}`)
// Get room prices for a property
const rooms = await client.listRooms('obj-001')
rooms.forEach(r => console.log(`${r.name}: EUR ${r.sharePrice}/share`))API Reference
Objects
client.listObjects() // List all properties
client.getObject('obj-001') // Get property details
client.listRooms('obj-001') // Get rooms with share pricesPortfolio
client.getPortfolio() // Your holdings
client.listTransactions({ page: 1 }) // Transaction historyP2P Marketplace
client.listP2P() // Active listings
client.createP2PListing({ // Sell shares
objectId: 'obj-001',
roomId: 'room-101',
shares: 5,
pricePerShare: 70
})
client.cancelP2PListing('listing-id') // Cancel listingInvestment
client.invest({ // Buy shares
objectId: 'obj-001',
roomId: 'room-101',
shares: 10,
paymentMethod: 'CARD'
})Market & Fund
client.getMarketRates() // EUR/USD, BTC, ETH rates
client.getFund() // AUM, distributionsCompliance
client.getComplianceStatus() // KYC/AML statusWebhooks
import { verifyWebhook, parseWebhookEvent } from '@europatech/sdk/webhooks'
// Verify webhook signature
const isValid = verifyWebhook(req.body, req.headers['x-europatech-signature'], secret)
// Parse webhook event
const event = parseWebhookEvent(req.body)
console.log(event.type) // 'investment.completed'Event Types
investment.completed/investment.failedp2p.listing.created/p2p.listing.sold/p2p.listing.cancelleddistribution.publishedkyc.approved/kyc.rejectedtransfer.completed
Configuration
const client = new EuropaTech({
apiKey: 'your-api-key',
baseUrl: 'https://api.europa-tech.org', // default
})License
MIT — Europa Tech Enterprise S.R.L.
