eos.transfer
执行EOS转账
- 调用方式
hbWallet.callAPI('eos.transfer', param, callback);
- param
{
contract: 'eosio.token', //合约账户
from: 'xxx', //转出账户
to: 'xxx', //转入账户
amount: '0.0001 EOS', //金额
memo: '' //备注信息
}
- callback
function(data) {
//data.code为0表示广播成功、为500表示有异常
//data.transaction
}
- 测试
hbWallet.callAPI('eos.transfer', {
from: 'test1',
to: 'test2',
amount: '0.1000 EOS',
memo: 'hello'
}, function (data) {
alert(JSON.stringify(data));
});