Explore practical Neo N3 queries, wallet workflows, contract inspection, and confirmed transactions.
Broadcast a controlled testnet transfer, wait for confirmation, and optionally retrieve its application log.
const transfer = await neo.callTool('transfer_assets', {
idempotencyKey: 'transfer-2026-07-11-001',
network: 'testnet',
toAddress: 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs',
asset: 'GAS',
amount: '0.1'
});
const confirmation = await neo.callTool('wait_for_transaction', {
network: 'testnet',
txid: transfer.txid,
timeoutMs: 30000,
pollIntervalMs: 1000,
includeApplicationLog: true
});
console.log('Confirmed:', confirmation.confirmed);
Get basic blockchain information including block height, network status, and node information.
// Get blockchain information
const blockchainInfo = await neo.callTool('get_blockchain_info', {
network: 'testnet'
});
console.log('Block count:', blockchainInfo.blockCount);
console.log('Latest height:', blockchainInfo.height);
console.log('Network:', blockchainInfo.network);
// Get the latest block by its numeric height
const block = await neo.callTool('get_block', {
network: 'testnet',
hashOrHeight: blockchainInfo.height
});
console.log('Latest block hash:', block.hash);
console.log('Transactions:', block.tx.length);
Create wallets, check balances, and manage multiple addresses with comprehensive wallet operations.
// Read metadata for a provisioned wallet
const wallet = await neo.callTool('get_wallet', {
address: accountAddress
});
console.log('Wallet address:', wallet.address);
// Check wallet balance
const balance = await neo.callTool('get_balance', {
address: wallet.address,
network: 'testnet'
});
balance.balance.forEach(asset => {
console.log(`${asset.asset_name}: ${asset.amount}`);
});
Invoke smart contract methods and interact with deployed contracts on the Neo N3 network.
// Invoke a smart contract method
const result = await neo.callTool('invoke_contract', {
network: 'testnet',
contract: '0xd2a4cff31913016155e38e474a2c06d08be276cf',
operation: 'symbol',
args: []
});
console.log('Contract result:', result.stack[0].value);
// Inspect the live manifest before invoking another method
const status = await neo.callTool('get_contract_status', {
network: 'testnet',
contract: '0xd2a4cff31913016155e38e474a2c06d08be276cf'
});
console.log('Manifest:', status.manifestName);
console.log('Methods:', Object.keys(status.operations));
Resolve a contract reference, inspect its live manifest, and use only operations verified on the selected network.
const reference = '0xd2a4cff31913016155e38e474a2c06d08be276cf';
const status = await neo.callTool('get_contract_status', {
network: 'mainnet',
contract: reference
});
if (!status.deployed) {
throw new Error('Contract is not deployed on mainnet');
}
const info = await neo.callTool('get_contract_info', {
network: 'mainnet',
contract: reference
});
console.log('Resolved hash:', info.scriptHash);
console.log('Available methods:', Object.keys(status.operations));
Send NEP-17 tokens with proper fee estimation and transaction confirmation.
// Transfer NEO tokens
const fee = await neo.callTool('estimate_transfer_fees', {
network: 'testnet',
fromAddress: 'NdUL5oDPD159KeFpD5A9zw5xNF1xLX6nLT',
toAddress: 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs',
asset: 'NEO',
amount: '1'
});
console.log('Exact fees (datos):', fee.networkFeeDatos, fee.systemFeeDatos);
console.log('Formatted fees (GAS):', fee.networkFeeGas, fee.systemFeeGas);
const transfer = await neo.callTool('transfer_assets', {
idempotencyKey: 'transfer-2026-07-11-002',
network: 'testnet',
toAddress: 'NNLi44dJNXtDNSBkofB48aTVYtb1zZrNEs',
asset: 'NEO',
amount: '1'
});
const txStatus = await neo.callTool('wait_for_transaction', {
network: 'testnet',
txid: transfer.txid,
timeoutMs: 30000
});
console.log('Transaction confirmed:', txStatus.confirmed);
Inspect VM execution state and notifications for a confirmed transaction.
const txid = process.env.NEO_TXID;
const transaction = await neo.callTool('get_transaction', {
network: 'mainnet',
txid
});
const applicationLog = await neo.callTool('get_application_log', {
network: 'mainnet',
txid
});
console.log('Transaction:', transaction.hash);
for (const execution of applicationLog.executions) {
console.log('VM state:', execution.vmstate);
console.log('Notifications:', execution.notifications);
}
Build decentralized finance applications with automated trading, yield farming, and liquidity management
Create blockchain games with NFT assets, player economies, and decentralized marketplaces
Develop enterprise blockchain solutions for supply chain, identity, and business process automation
Build comprehensive blockchain analytics and monitoring tools for tracking assets and transactions
Develop security-focused applications with encrypted local wallets, fee preflight, and explicitly confirmed writes
Create interoperability solutions connecting Neo N3 with other blockchain networks