Constructors
constructor
-
Parameters
-
Default value plugins: Plugin[] = []
Methods
encodeDataForDigestHash
-
Parameters
Returns number[]
generateTransaction
-
Parameters
-
-
preExecWithUtxos: any
-
authRequires: any
-
getBlock
- getBlock(node: string, chain: string, blockid: string): Promise<any>
-
Parameters
-
node: string
-
chain: string
-
blockid: string
Returns Promise<any>
getBlockByHeight
- getBlockByHeight(node: string, chain: string, height: string): Promise<any>
-
Parameters
-
node: string
-
chain: string
-
height: string
Returns Promise<any>
makeTransaction
-
Parameters
-
-
-
authRequires: object
-
preExecWithUtxosObj: any
makeTxInputs
- makeTxInputs(utxos: UTXO[]): TXInput[]
-
Parameters
Returns TXInput[]
makeTxOutput
- makeTxOutput(totalSelected: BN | string | number, totalNeed: BN | string | number, toAddress: string): TXOutput
-
Parameters
-
totalSelected: BN | string | number
-
totalNeed: BN | string | number
-
toAddress: string
Returns TXOutput
makeTxOutputs
- makeTxOutputs(amount: BN | string | number, fee?: BN | string | number, to?: undefined | string): TXOutput[]
-
Parameters
-
amount: BN | string | number
-
Optional fee: BN | string | number
-
Optional to: undefined | string
Returns TXOutput[]
post
- post(node: string, chain: string, tx: any, account?: AccountModel): Promise<any>
-
Parameters
-
node: string
-
chain: string
-
tx: any
-
Returns Promise<any>
preExec
- preExec(node: string, chain: string, address: string, authRequire?: string[], invokeRequests?: ContractRequesttModel[]): Promise<any>
-
Parameters
-
node: string
-
chain: string
-
address: string
-
Default value authRequire: string[] = []
-
Returns Promise<any>
preExecWithUTXO
- preExecWithUTXO(node: string, chain: string, address: string, sum: string | number | BN, authRequire?: string[], invokeRequests?: ContractRequesttModel[], account?: AccountModel): Promise<any>
-
Parameters
-
node: string
-
chain: string
-
address: string
-
sum: string | number | BN
-
Default value authRequire: string[] = []
-
-
Returns Promise<any>
queryTransaction
- queryTransaction(node: string, chain: string, txid: string): Promise<any>
-
Parameters
-
node: string
-
chain: string
-
txid: string
Returns Promise<any>