@dapix/react-native-fio
Version:
The FIO react-native-fio SDK communicates with the FIO Blockchain.
26 lines (25 loc) • 813 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const SignedTransaction_1 = require("./SignedTransaction");
class TransferTokens extends SignedTransaction_1.SignedTransaction {
constructor(payeePublicKey, amount, maxFee) {
super();
this.ENDPOINT = "chain/transfer_tokens_pub_key";
this.ACTION = "trnsfiopubky";
this.ACOUNT = "fio.token";
this.payeePublicKey = payeePublicKey;
this.amount = amount;
this.maxFee = maxFee;
}
getData() {
let actor = this.getActor();
let data = {
payee_public_key: this.payeePublicKey,
amount: this.amount,
max_fee: this.maxFee,
actor: actor
};
return data;
}
}
exports.TransferTokens = TransferTokens;