@dapix/react-native-fio
Version:
The FIO react-native-fio SDK communicates with the FIO Blockchain.
25 lines (21 loc) • 626 B
text/typescript
import { SignedTransaction } from './SignedTransaction';
export class RegisterFioAddress extends SignedTransaction{
ENDPOINT:string = "chain/register_fio_address";
ACTION:string = "regaddress"
ACOUNT:string = "fio.system"
fioAddress:string
constructor(fioAddress:string){
super();
this.fioAddress = fioAddress;
}
getData():any{
let actor = this.getActor();
let data = {
fio_address:this.fioAddress,
owner_fio_public_key:this.publicKey,
max_fee: 3000000000,
actor: actor
}
return data;
}
}