External module "general"
Functions
cancelSubmittedOrder
- cancelSubmittedOrder(co: ICancelOrder, amountAsset: string | null, priceAsset: string | null, matcherUrl: string): Promise<any>
-
Parameters
-
-
amountAsset: string | null
-
priceAsset: string | null
-
matcherUrl: string
Returns Promise<any>
serialize
-
Parameters
Returns Uint8Array
submitOrder
- submitOrder(ord: TOrder, matcherUrl: string): Promise<any>
-
Parameters
Returns Promise<any>
verify
- verify(obj: TTx | TOrder, proofN?: number, publicKey?: undefined | string): boolean
-
Parameters
-
-
Default value proofN: number = 0
-
Optional publicKey: undefined | string
Returns boolean
verifyAuthData
- verifyAuthData(authData: object, params: IAuthParams, chainId?: string | number): boolean
-
Parameters
-
authData: object
-
-
Optional chainId: string | number
Returns boolean
verifyCustomData
-
Parameters
Returns boolean
Object literals
Const txTypeMap
txTypeMap: object
__computed
__computed: object
sign
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IIssueTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): ITransferTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IReissueTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IBurnTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): ILeaseTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): ICancelLeaseTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IAliasTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IMassTransferTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IDataTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): ISetScriptTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): ISetAssetScriptTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): ISponsorshipTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IExchangeTransaction<string | number> & WithId
- sign(x: IExchangeTransaction<string | number> | IIssueTransaction<string | number> | ITransferTransaction<string | number> | IReissueTransaction<string | number> | IBurnTransaction<string | number> | ILeaseTransaction<string | number> | ICancelLeaseTransaction<string | number> | IDataTransaction<string | number> | IMassTransferTransaction<string | number> | IAliasTransaction<string | number> | ISetScriptTransaction<string | number> | ISetAssetScriptTransaction<string | number> | ISponsorshipTransaction<string | number> | IInvokeScriptTransaction<string | number> | IIssueParams<string | number> & WithTxType | ITransferParams<string | number> & WithTxType | IReissueParams<string | number> & WithTxType | IBurnParams<string | number> & WithTxType | ILeaseParams<string | number> & WithTxType | ICancelLeaseParams<string | number> & WithTxType | IDataParams<string | number> & WithTxType | IMassTransferParams<string | number> & WithTxType | IAliasParams<string | number> & WithTxType | ISetScriptParams<string | number> & WithTxType | ISetAssetScriptParams<string | number> & WithTxType | ISponsorshipParams<string | number> & WithTxType | IInvokeScriptParams<string | number> & WithTxType, seed: string | (undefined | null | string)[] | IIndexSeedMap): IInvokeScriptTransaction<string | number> & WithId
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
Sends cancel order command to matcher. Since matcher api requires amountAsset and priceAsset in request url, this function requires them as params