@dapix/react-native-fio
Version:
The FIO react-native-fio SDK communicates with the FIO Blockchain.
31 lines (25 loc) • 765 B
text/typescript
import { SignedTransaction } from './SignedTransaction'
export class TransferTokens extends SignedTransaction{
ENDPOINT:string = "chain/transfer_tokens_pub_key"
ACTION:string = "trnsfiopubky"
ACOUNT:string = "fio.token"
payeePublicKey:string
amount:number
maxFee:number
constructor(payeePublicKey:string,amount:number, maxFee:number){
super()
this.payeePublicKey = payeePublicKey
this.amount = amount
this.maxFee = maxFee
}
getData():any{
let actor = this.getActor();
let data = {
payee_public_key:this.payeePublicKey,
amount: this.amount,
max_fee: this.maxFee,
actor: actor
}
return data;
}
}