UNPKG

@shapeshiftoss/fiosdk

Version:

The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp

28 lines (22 loc) 591 B
import { SignedTransaction } from './SignedTransaction' import { Constants } from '../../utils/constants' export class PushTransaction extends SignedTransaction { ENDPOINT: string = 'chain/push_transaction' ACTION: string = '' ACCOUNT: string = Constants.defaultAccount data: any constructor(action: string, account: string, data: any) { super() this.ACTION = action if (account) this.ACCOUNT = account this.data = data } async getData() { let actor = this.getActor() let data = { ...this.data, actor: actor } return data } }