Deutsch한국어日本語中文EspañolFrançaisՀայերենNederlandsРусскийItalianoPortuguêsTürkçePortfolio TrackerSwapCryptocurrenciesPricingIntegrationsNewsEarnBlogNFTWidgetsDeFi Portfolio TrackerOpen API24h ReportPress KitAPI Docs

ADAMANT Node v0.9.0: presents WebSocket filters and API tweaks

1M ago
bullish:

2

bearish:

0

Share

The ADAMANT blockchain is specific; we developed it specifically for messaging. This release of the blockchain node is the foundation for the next steps in our roadmap toward instant message delivery, free/temporary messages, and group chats and channels.

The release does not affect the network consensus, and even validators are not required to update their nodes. The update makes sense if you use your node to connect messenger applications or bots.

Below is a summary of the main changes in this update.

REST API

Delegate Searching, Now by Address

The /api/delegates/get endpoint now accepts the address parameter in addition to username and publicKey :

/api/delegates/get?address=U1234567890

Fewer API Calls, More Status Info

We merged /api/loader/status and /api/loader/status/sync into /api/node/status, reducing the number of requests needed to retrieve blockchain status

{
// ...
"loader": {
"loaded": true,
"now": 45345521,
"syncing": false,
"consensus": 100,
"blocks": 0,
"blocksCount": 0
}
}

WebSockets

Subscribe to Multiple Addresses

Previously, WebSockets only allowed subscription to one address at a time. Now, multiple addresses can be subscribed to simultaneously

socket.emit('address', ['U1234567890123456', 'U98765432123456']);

Transaction and Message Types

We’ve also added support to subscribe to specific transaction and message types:

// Subscribe to multiple transaction types, e.g., "transfer" (0) and "chat message" (8)
socket.emit('types', [0, 8]);

// Subscribe to chat message subtypes, e.g., "direct message" (3)
socket.emit('assetChatTypes', [3]);

Fixes

  • SemVer 2.0 Support: Peers with fancy version names (+alpha, -dev.0) are now correctly recognized and connected
  • Peer Handling: Fixed an issue where peers were removed after a one-time request failure
  • Configuration Validation: Fixed validation issues with config files

Optimizations

  • Faster Delegate Searches: The /delegates/get endpoint is now optimized for single transaction lookups

Other Updates

Links


ADAMANT Node v0.9.0: presents WebSocket filters and API tweaks was originally published in ADAMANT on Medium, where people are continuing the conversation by highlighting and responding to this story.

1M ago
bullish:

2

bearish:

0

Share
Manage all your crypto, NFT and DeFi from one place

Securely connect the portfolio you’re using to start.