VET Transfers
Connection
import WebSocket from 'ws';
const ws = new WebSocket('wss://mainnet.vechain.org/subscriptions/transfer');
ws.onmessage = (message) => {
console.log('New transfer', message.data);
}Filter Specific Transfers
const wsUrl = subscriptions.getVETtransfersSubscriptionUrl(
'https://mainnet.vechain.org',
{
blockID: undefined, // block id to start from, defaults to the best block.
signerAddress: undefined, // The address of the signer/origin of the transaction to filter transfers by.
sender: undefined, // The sender address to filter transfers by.
recipient: undefined, // The recipient address to filter transfers by.
}
);Transfer Details
Example Project
Last updated
Was this helpful?