@dapix/react-native-fio
Version:
The FIO react-native-fio SDK communicates with the FIO Blockchain.
24 lines (23 loc) • 740 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const SignedTransaction_1 = require("./SignedTransaction");
class RegisterFioAddress extends SignedTransaction_1.SignedTransaction {
constructor(fioAddress) {
super();
this.ENDPOINT = "chain/register_fio_address";
this.ACTION = "regaddress";
this.ACOUNT = "fio.system";
this.fioAddress = fioAddress;
}
getData() {
let actor = this.getActor();
let data = {
fio_address: this.fioAddress,
owner_fio_public_key: this.publicKey,
max_fee: 3000000000,
actor: actor
};
return data;
}
}
exports.RegisterFioAddress = RegisterFioAddress;