Wallet

Getting list of wallets

JS module
CLI
RPC
WS
Result
await core.getWallets()
biot-core getWallets
client.request('getWallets', [], (err, data) => {
if(err)
throw err;
console.log(data);
});
let message_id = id++;
socket.send(JSON.stringify({
id: message_id,
name: 'getWallets',
args: []
}));
socket.onmessage = function (event) {
let data = JSON.parse(event.data);
if (data.id === message_id && data.name === 'getWallets') {
console.log('result:', data.result);
}
};
['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=']

Creating new wallet

JS module
CLI
RPC
WS
Result
await core.createNewWallet()
biot-core createNewWallet
client.request('createNewWallet', [], (err, data) => {
if(err)
throw err;
console.log(data);
});
let message_id = id++;
socket.send(JSON.stringify({
id: message_id,
name: 'createNewWallet',
args: []
}));
socket.onmessage = function (event) {
let data = JSON.parse(event.data);
if (data.id === message_id && data.name === 'createNewWallet') {
console.log('result:', data.result);
}
};
x/i+NasyFy1UFJtZ5MCU4tnKO3NdK0KSF5rDNUrg8QY=

Getting list of addresses in wallet

Params:

walletId - {string} - Wallet id

JS module
CLI
RPC
WS
Result
await core.getAddressesInWallet('yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=')
biot-core getAddressesInWallet yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=
client.request('getAddressesInWallet', ['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc='], (err, data) => {
if(err)
throw err;
console.log(data);
});
let message_id = id++;
socket.send(JSON.stringify({
id: message_id,
name: 'getAddressesInWallet',
args: ['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=']
}));
socket.onmessage = function (event) {
let data = JSON.parse(event.data);
if (data.id === message_id && data.name === 'getAddressesInWallet') {
console.log('result:', data.result);
}
};
['4QNGY75DLQ56LQT72DDOGSXQHQE2PRBN']

Getting balance of wallet

Params:

walletId - {string} - Wallet id

JS module
CLI
RPC
WS
Result
await core.getWalletBalance('yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=')
biot-core getWalletBalance yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=
client.request('getWalletBalance', ['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc='], (err, data) => {
if(err)
throw err;
console.log(data);
});
let message_id = id++;
socket.send(JSON.stringify({
id: message_id,
name: 'getWalletBalance',
args: ['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=']
}));
socket.onmessage = function (event) {
let data = JSON.parse(event.data);
if (data.id === message_id && data.name === 'getWalletBalance') {
console.log('result:', data.result);
}
};
{
base: { stable: 0, pending: 0 },
'LUQu5ik4WLfCrr8OwXezqBa+i3IlZLqxj2itQZQm8WY=': { is_private: 1, stable: 0, pending: 0 }
}

Getting list of transactions by wallet

Params:

address - {string} - Byteball address

JS module
CLI
RPC
WS
Result
await core.getListTransactionsForWallet('yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=')
biot-core getListTransactionsForWallet yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=
client.request('getListTransactionsForWallet', ['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc='], (err, data) => {
if(err)
throw err;
console.log(data);
});
let message_id = id++;
socket.send(JSON.stringify({
id: message_id,
name: 'getListTransactionsForWallet',
args: ['yXSWvqast2rrmwcR/f5QfUAXZLwaaiRvwE+N9whoZLc=']
}));
socket.onmessage = function (event) {
let data = JSON.parse(event.data);
if (data.id === message_id && data.name === 'getListTransactionsForWallet') {
console.log('result:', data.result);
}
};
[ { action: 'received',
amount: 69000,
my_address: 'BIKYZXVKFOEGG5LQEPE5SWBHNM43FEBB',
arrPayerAddresses: [ 'C4QX5W3FMDNNLT47FHUCTBP75PIHDFZE' ],
confirmations: 1,
unit: 'DCaJ0KjGBqAoPnFau5poKukk9OJtPTwfWDcuDve5tEA=',
fee: 589,
time: '1532789752',
level: null,
mci: 651926,
asset: undefined },
{ action: 'sent',
amount: 4200,
addressTo: 'H6OM5MV7RU2L3KSBY726V7WC2GL4MXXG',
original_address: null,
textAddress: '',
claimed: false,
mnemonic: null,
confirmations: 1,
unit: '/nvKyYwaDysXPhbeWK+Lhb96pg7A3d6lfGGm+J8jjq8=',
fee: 896,
time: '1530967712',
level: null,
mci: 635812,
isTextcoin: false,
asset: undefined },
{ action: 'sent',
amount: 97400,
addressTo: 'LXMCTWKAMC6AB4XHUAPBCEF5AOHC2KRQ',
original_address: null,
textAddress: '',
claimed: false,
mnemonic: null,
confirmations: 1,
unit: '/nvKyYwaDysXPhbeWK+Lhb96pg7A3d6lfGGm+J8jjq8=',
fee: 896,
time: '1530967712',
level: null,
mci: 635812,
isTextcoin: false,
asset: undefined },
{ action: 'sent',
amount: 93504,
addressTo: 'MMEXROUDVOGEKYT2E2PIYFGQCPDWCZJY',
original_address: null,
textAddress: '',
claimed: false,
mnemonic: null,
confirmations: 1,
unit: '/nvKyYwaDysXPhbeWK+Lhb96pg7A3d6lfGGm+J8jjq8=',
fee: 896,
time: '1530967712',
level: null,
mci: 635812,
isTextcoin: false,
asset: undefined },
{ action: 'received',
amount: 96000,
my_address: 'BIKYZXVKFOEGG5LQEPE5SWBHNM43FEBB',
arrPayerAddresses: [ '2GF2PW7NGIXCAG6F5D4KNTRVFS5UF4GA' ],
confirmations: 1,
unit: 'uBRAJ8+IlLpaoHx003oIWDyk1TmJ96MK0+fmlCx5gCM=',
fee: 589,
time: '1530967632',
level: null,
mci: 635796,
asset: undefined } ]