@fuel-ts/account 0.0.0-rc-1815-20240322131329 → 0.0.0-rc-1832-20240322144804

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

package/dist/account.d.ts CHANGED
@@ -158,13 +158,6 @@ export declare class Account extends AbstractAccount {
158
158
  /** Tx Params */
159
159
  txParams?: TxParamsType): Promise<TransactionResponse>;
160
160
  signMessage(message: string): Promise<string>;
161
- /**
162
- * Signs a transaction with the wallet's private key.
163
- *
164
- * @param transactionRequestLike - The transaction request to sign.
165
- * @returns A promise that resolves to the signature of the transaction.
166
- */
167
- signTransaction(transactionRequestLike: TransactionRequestLike): Promise<string>;
168
161
  /**
169
162
  * Sends a transaction to the network.
170
163
  *
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAItD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,sBAAsB,EACtB,QAAQ,EACR,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AASrB,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,4BAA4B,EAC5B,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CACjE,CAAC;AAEF;;GAEG;AACH,qBAAa,OAAQ,SAAQ,eAAe;I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C,gBAAgB;IAChB,QAAQ,GAAE,YAAiB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IA6C/B;;;;;;;OAOG;IACG,mBAAmB;IACvB,iDAAiD;IACjD,SAAS,EAAE,MAAM,GAAG,eAAe;IACnC,2BAA2B;IAC3B,MAAM,EAAE,YAAY;IACpB,gBAAgB;IAChB,QAAQ,GAAE,YAAiB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IAyCzB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOnD;;;;;OAKG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,cAAc,EAAE,GAAE,oBAAyB,GAC3E,OAAO,CAAC,mBAAmB,CAAC;IAgB/B;;;;;OAKG;IACG,mBAAmB,CACvB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAE,yBAA8B,GAChE,OAAO,CAAC,UAAU,CAAC;IAQtB,OAAO,CAAC,WAAW;CAyBpB"}
@@ -72,16 +72,6 @@ export declare abstract class FuelConnector extends EventEmitter {
72
72
  * @returns Message signature
73
73
  */
74
74
  signMessage(_address: string, _message: string): Promise<string>;
75
- /**
76
- * Should start the sign transaction process and return
77
- * the signed transaction.
78
- *
79
- * @param address - The address to sign the transaction
80
- * @param transaction - The transaction to sign
81
- *
82
- * @returns Transaction signature
83
- */
84
- signTransaction(_address: string, _transaction: TransactionRequestLike): Promise<string>;
85
75
  /**
86
76
  * Should start the send transaction process and return
87
77
  * the transaction id submitted to the network.
@@ -1 +1 @@
1
- {"version":3,"file":"fuel-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel-connector.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B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AM,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/C;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAIrC;;;;;;;OAOG;IACG,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvD;;;;;;;OAOG;IACG,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxD;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAIzC;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAIxC;;;;;;OAMG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlE;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAIlD;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3C;;;;;OAKG;IACH,EAAE,CAAC,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EACjE,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAC1B,IAAI;CAIR"}
@@ -28952,7 +28952,7 @@ spurious results.`);
28952
28952
  // ../versions/dist/index.mjs
28953
28953
  function getBuiltinVersions() {
28954
28954
  return {
28955
- FORC: "0.51.1",
28955
+ FORC: "git:xunilrj/encoding-contract-call",
28956
28956
  FUEL_CORE: "0.22.1",
28957
28957
  FUELS: "0.77.0"
28958
28958
  };
@@ -31918,9 +31918,6 @@ This unreleased fuel-core build may include features and updates not yet support
31918
31918
  __privateAdd2(this, _getPaddedData);
31919
31919
  }
31920
31920
  encode(value) {
31921
- if (!Array.isArray(value)) {
31922
- throw new FuelError(ErrorCode.ENCODE_ERROR, `Expected array value.`);
31923
- }
31924
31921
  const parts = [];
31925
31922
  const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
31926
31923
  const data = __privateMethod2(this, _getPaddedData, getPaddedData_fn).call(this, value);
@@ -31947,7 +31944,8 @@ This unreleased fuel-core build may include features and updates not yet support
31947
31944
  };
31948
31945
  _getPaddedData = /* @__PURE__ */ new WeakSet();
31949
31946
  getPaddedData_fn = function(value) {
31950
- const data = [Uint8Array.from(value)];
31947
+ const bytes3 = value instanceof Uint8Array ? value : new Uint8Array(value);
31948
+ const data = [Uint8Array.from(bytes3)];
31951
31949
  const paddingLength = (WORD_SIZE - value.length % WORD_SIZE) % WORD_SIZE;
31952
31950
  if (paddingLength) {
31953
31951
  data.push(new Uint8Array(paddingLength));
@@ -32040,7 +32038,7 @@ This unreleased fuel-core build may include features and updates not yet support
32040
32038
  return { None: [] };
32041
32039
  }
32042
32040
  decode(data, offset) {
32043
- if (data.length < this.encodedLength - 1) {
32041
+ if (data.length < this.encodedLength) {
32044
32042
  throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid option data size.`);
32045
32043
  }
32046
32044
  const [decoded, newOffset] = super.decode(data, offset);
@@ -32623,11 +32621,8 @@ This unreleased fuel-core build may include features and updates not yet support
32623
32621
  super("struct", "struct Bytes", WORD_SIZE);
32624
32622
  }
32625
32623
  encode(value) {
32626
- if (!Array.isArray(value)) {
32627
- throw new FuelError(ErrorCode.ENCODE_ERROR, `Expected array value.`);
32628
- }
32629
- const bytes3 = new Uint8Array(value);
32630
- const lengthBytes = new BigNumberCoder("u64").encode(value.length);
32624
+ const bytes3 = value instanceof Uint8Array ? value : new Uint8Array(value);
32625
+ const lengthBytes = new BigNumberCoder("u64").encode(bytes3.length);
32631
32626
  return new Uint8Array([...lengthBytes, ...bytes3]);
32632
32627
  }
32633
32628
  decode(data, offset) {
@@ -32758,6 +32753,28 @@ This unreleased fuel-core build may include features and updates not yet support
32758
32753
  return [toNumber2(bytes3), offset + this.length];
32759
32754
  }
32760
32755
  };
32756
+ var OptionCoder2 = class extends EnumCoder2 {
32757
+ encode(value) {
32758
+ const result = super.encode(this.toSwayOption(value));
32759
+ return result;
32760
+ }
32761
+ toSwayOption(input) {
32762
+ if (input !== void 0) {
32763
+ return { Some: input };
32764
+ }
32765
+ return { None: [] };
32766
+ }
32767
+ decode(data, offset) {
32768
+ const [decoded, newOffset] = super.decode(data, offset);
32769
+ return [this.toOption(decoded), newOffset];
32770
+ }
32771
+ toOption(output3) {
32772
+ if (output3 && "Some" in output3) {
32773
+ return output3.Some;
32774
+ }
32775
+ return void 0;
32776
+ }
32777
+ };
32761
32778
  var RawSliceCoder2 = class extends Coder {
32762
32779
  constructor() {
32763
32780
  super("raw untyped slice", "raw untyped slice", WORD_SIZE);
@@ -32811,6 +32828,30 @@ This unreleased fuel-core build may include features and updates not yet support
32811
32828
  }
32812
32829
  };
32813
32830
  __publicField4(StdStringCoder2, "memorySize", 1);
32831
+ var StrSliceCoder = class extends Coder {
32832
+ constructor() {
32833
+ super("strSlice", "str", WORD_SIZE);
32834
+ }
32835
+ encode(value) {
32836
+ const bytes3 = toUtf8Bytes(value);
32837
+ const lengthBytes = new BigNumberCoder("u64").encode(value.length);
32838
+ return new Uint8Array([...lengthBytes, ...bytes3]);
32839
+ }
32840
+ decode(data, offset) {
32841
+ if (data.length < this.encodedLength) {
32842
+ throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid string slice data size.`);
32843
+ }
32844
+ const offsetAndLength = offset + WORD_SIZE;
32845
+ const lengthBytes = data.slice(offset, offsetAndLength);
32846
+ const length = bn(new BigNumberCoder("u64").decode(lengthBytes, 0)[0]).toNumber();
32847
+ const bytes3 = data.slice(offsetAndLength, offsetAndLength + length);
32848
+ if (bytes3.length !== length) {
32849
+ throw new FuelError(ErrorCode.DECODE_ERROR, `Invalid string slice byte data size.`);
32850
+ }
32851
+ return [toUtf8String(bytes3), offsetAndLength + length];
32852
+ }
32853
+ };
32854
+ __publicField4(StrSliceCoder, "memorySize", 1);
32814
32855
  var StringCoder2 = class extends Coder {
32815
32856
  constructor(length) {
32816
32857
  super("string", `str[${length}]`, length);
@@ -32849,7 +32890,7 @@ This unreleased fuel-core build may include features and updates not yet support
32849
32890
  Object.keys(this.coders).map((fieldName) => {
32850
32891
  const fieldCoder = this.coders[fieldName];
32851
32892
  const fieldValue = value[fieldName];
32852
- if (!(fieldCoder instanceof OptionCoder) && fieldValue == null) {
32893
+ if (!(fieldCoder instanceof OptionCoder2) && fieldValue == null) {
32853
32894
  throw new FuelError(
32854
32895
  ErrorCode.ENCODE_ERROR,
32855
32896
  `Invalid ${this.type}. Field "${fieldName}" not present.`
@@ -32957,6 +32998,8 @@ This unreleased fuel-core build may include features and updates not yet support
32957
32998
  return new ByteCoder2();
32958
32999
  case STD_STRING_CODER_TYPE:
32959
33000
  return new StdStringCoder2();
33001
+ case STR_SLICE_CODER_TYPE:
33002
+ return new StrSliceCoder();
32960
33003
  default:
32961
33004
  break;
32962
33005
  }
@@ -33001,7 +33044,7 @@ This unreleased fuel-core build may include features and updates not yet support
33001
33044
  const coders = getCoders(components, { getCoder: getCoder2 });
33002
33045
  const isOptionEnum = resolvedAbiType.type === OPTION_CODER_TYPE;
33003
33046
  if (isOptionEnum) {
33004
- return new OptionCoder(enumMatch.name, coders);
33047
+ return new OptionCoder2(enumMatch.name, coders);
33005
33048
  }
33006
33049
  return new EnumCoder2(enumMatch.name, coders);
33007
33050
  }
@@ -33012,12 +33055,6 @@ This unreleased fuel-core build may include features and updates not yet support
33012
33055
  );
33013
33056
  return new TupleCoder2(coders);
33014
33057
  }
33015
- if (resolvedAbiType.type === STR_SLICE_CODER_TYPE) {
33016
- throw new FuelError(
33017
- ErrorCode.INVALID_DATA,
33018
- "String slices can not be decoded from logs. Convert the slice to `str[N]` with `__to_str_array`"
33019
- );
33020
- }
33021
33058
  throw new FuelError(
33022
33059
  ErrorCode.CODER_NOT_FOUND,
33023
33060
  `Coder not found: ${JSON.stringify(resolvedAbiType)}.`
@@ -33053,6 +33090,8 @@ This unreleased fuel-core build may include features and updates not yet support
33053
33090
  var FunctionFragment = class {
33054
33091
  signature;
33055
33092
  selector;
33093
+ selectorBytes;
33094
+ encoding;
33056
33095
  name;
33057
33096
  jsonFn;
33058
33097
  attributes;
@@ -33065,6 +33104,8 @@ This unreleased fuel-core build may include features and updates not yet support
33065
33104
  this.name = name;
33066
33105
  this.signature = FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
33067
33106
  this.selector = FunctionFragment.getFunctionSelector(this.signature);
33107
+ this.selectorBytes = new StdStringCoder2().encode(name);
33108
+ this.encoding = this.jsonAbi.encoding;
33068
33109
  this.isInputDataPointer = this.#isInputDataPointer();
33069
33110
  this.outputMetadata = {
33070
33111
  isHeapType: this.#isOutputDataHeap(),
@@ -33118,11 +33159,14 @@ This unreleased fuel-core build may include features and updates not yet support
33118
33159
  }
33119
33160
  const coders = nonEmptyInputs.map(
33120
33161
  (t) => AbiCoder.getCoder(this.jsonAbi, t, {
33121
- isRightPadded: nonEmptyInputs.length > 1
33162
+ isRightPadded: nonEmptyInputs.length > 1,
33163
+ encoding: this.encoding
33122
33164
  })
33123
33165
  );
33124
- const coder = new TupleCoder(coders);
33125
- const results = coder.encode(shallowCopyValues);
33166
+ if (this.encoding === ENCODING_V1) {
33167
+ return new TupleCoder2(coders).encode(shallowCopyValues);
33168
+ }
33169
+ const results = new TupleCoder(coders).encode(shallowCopyValues);
33126
33170
  return unpackDynamicData(results, offset, results.byteLength);
33127
33171
  }
33128
33172
  static verifyArgsAndInputsAlign(args, inputs, abi) {
@@ -33169,7 +33213,7 @@ This unreleased fuel-core build may include features and updates not yet support
33169
33213
  }
33170
33214
  const result = nonEmptyInputs.reduce(
33171
33215
  (obj, input) => {
33172
- const coder = AbiCoder.getCoder(this.jsonAbi, input);
33216
+ const coder = AbiCoder.getCoder(this.jsonAbi, input, { encoding: this.encoding });
33173
33217
  const [decodedValue, decodedValueByteSize] = coder.decode(bytes3, obj.offset);
33174
33218
  return {
33175
33219
  decoded: [...obj.decoded, decodedValue],
@@ -33189,7 +33233,9 @@ This unreleased fuel-core build may include features and updates not yet support
33189
33233
  return [void 0, 0];
33190
33234
  }
33191
33235
  const bytes3 = arrayify(data);
33192
- const coder = AbiCoder.getCoder(this.jsonAbi, this.jsonFn.output);
33236
+ const coder = AbiCoder.getCoder(this.jsonAbi, this.jsonFn.output, {
33237
+ encoding: this.encoding
33238
+ });
33193
33239
  return coder.decode(bytes3, 0);
33194
33240
  }
33195
33241
  };
@@ -33274,7 +33320,8 @@ This unreleased fuel-core build may include features and updates not yet support
33274
33320
  }
33275
33321
  );
33276
33322
  return AbiCoder.encode(this.jsonAbi, configurable.configurableType, value, {
33277
- isRightPadded: true
33323
+ isRightPadded: true,
33324
+ encoding: this.jsonAbi.encoding
33278
33325
  });
33279
33326
  }
33280
33327
  getTypeById(typeId) {
@@ -39493,27 +39540,13 @@ ${MessageCoinFragmentFragmentDoc}`;
39493
39540
  this.outputs.push(output3);
39494
39541
  return this.outputs.length - 1;
39495
39542
  }
39496
- /**
39497
- * @hidden
39498
- *
39499
- * Pushes a witness to the list and returns the index
39500
- *
39501
- * @param signature - The signature to add to the witness.
39502
- * @returns The index of the created witness.
39503
- */
39504
- addWitness(signature) {
39505
- this.witnesses.push(signature);
39506
- return this.witnesses.length - 1;
39507
- }
39508
39543
  /**
39509
39544
  * @hidden
39510
39545
  *
39511
39546
  * Creates an empty witness without any side effects and returns the index
39512
- *
39513
- * @returns The index of the created witness.
39514
39547
  */
39515
- addEmptyWitness() {
39516
- this.addWitness(concat([ZeroBytes32, ZeroBytes32]));
39548
+ createWitness() {
39549
+ this.witnesses.push(concat([ZeroBytes32, ZeroBytes32]));
39517
39550
  return this.witnesses.length - 1;
39518
39551
  }
39519
39552
  /**
@@ -39542,21 +39575,6 @@ ${MessageCoinFragmentFragmentDoc}`;
39542
39575
  }
39543
39576
  this.witnesses[index] = witness;
39544
39577
  }
39545
- /**
39546
- * Helper function to add an external signature to the transaction.
39547
- *
39548
- * @param account - The account/s to sign to the transaction.
39549
- * @returns The transaction with the signature witness added.
39550
- */
39551
- async addAccountWitnesses(account) {
39552
- const accounts = Array.isArray(account) ? account : [account];
39553
- await Promise.all(
39554
- accounts.map(async (acc) => {
39555
- this.addWitness(await acc.signTransaction(this));
39556
- })
39557
- );
39558
- return this;
39559
- }
39560
39578
  /**
39561
39579
  * Gets the coin inputs for a transaction.
39562
39580
  *
@@ -39622,7 +39640,7 @@ ${MessageCoinFragmentFragmentDoc}`;
39622
39640
  } else {
39623
39641
  witnessIndex = this.getCoinInputWitnessIndexByOwner(owner);
39624
39642
  if (typeof witnessIndex !== "number") {
39625
- witnessIndex = this.addEmptyWitness();
39643
+ witnessIndex = this.createWitness();
39626
39644
  }
39627
39645
  }
39628
39646
  const input = {
@@ -39656,7 +39674,7 @@ ${MessageCoinFragmentFragmentDoc}`;
39656
39674
  } else {
39657
39675
  witnessIndex = this.getCoinInputWitnessIndexByOwner(recipient);
39658
39676
  if (typeof witnessIndex !== "number") {
39659
- witnessIndex = this.addEmptyWitness();
39677
+ witnessIndex = this.createWitness();
39660
39678
  }
39661
39679
  }
39662
39680
  const input = {
@@ -41692,8 +41710,7 @@ ${MessageCoinFragmentFragmentDoc}`;
41692
41710
  async getTransactionCost(transactionRequestLike, forwardingQuantities = [], {
41693
41711
  estimateTxDependencies = true,
41694
41712
  estimatePredicates = true,
41695
- resourcesOwner,
41696
- signatureCallback
41713
+ resourcesOwner
41697
41714
  } = {}) {
41698
41715
  const txRequestClone = clone_default(transactionRequestify(transactionRequestLike));
41699
41716
  const chainInfo = this.getChain();
@@ -41712,9 +41729,6 @@ ${MessageCoinFragmentFragmentDoc}`;
41712
41729
  }
41713
41730
  await this.estimatePredicates(txRequestClone);
41714
41731
  }
41715
- if (signatureCallback && isScriptTransaction) {
41716
- await signatureCallback(txRequestClone);
41717
- }
41718
41732
  const minGas = txRequestClone.calculateMinGas(chainInfo);
41719
41733
  const maxGas = txRequestClone.calculateMaxGas(chainInfo, minGas);
41720
41734
  let receipts = [];
@@ -42755,21 +42769,6 @@ ${MessageCoinFragmentFragmentDoc}`;
42755
42769
  }
42756
42770
  return this._connector.signMessage(this.address.toString(), message);
42757
42771
  }
42758
- /**
42759
- * Signs a transaction with the wallet's private key.
42760
- *
42761
- * @param transactionRequestLike - The transaction request to sign.
42762
- * @returns A promise that resolves to the signature of the transaction.
42763
- */
42764
- async signTransaction(transactionRequestLike) {
42765
- if (!this._connector) {
42766
- throw new FuelError(
42767
- ErrorCode.MISSING_CONNECTOR,
42768
- "A connector is required to sign transactions."
42769
- );
42770
- }
42771
- return this._connector.signTransaction(this.address.toString(), transactionRequestLike);
42772
- }
42773
42772
  /**
42774
42773
  * Sends a transaction to the network.
42775
42774
  *
@@ -44381,7 +44380,7 @@ ${MessageCoinFragmentFragmentDoc}`;
44381
44380
  */
44382
44381
  async signTransaction(transactionRequestLike) {
44383
44382
  const transactionRequest = transactionRequestify(transactionRequestLike);
44384
- const chainId = this.provider.getChainId();
44383
+ const chainId = this.provider.getChain().consensusParameters.chainId.toNumber();
44385
44384
  const hashedTransaction = transactionRequest.getTransactionId(chainId);
44386
44385
  const signature = await this.signer().sign(hashedTransaction);
44387
44386
  return hexlify(signature);
@@ -47940,18 +47939,6 @@ ${MessageCoinFragmentFragmentDoc}`;
47940
47939
  async signMessage(_address, _message) {
47941
47940
  throw new Error("Method not implemented.");
47942
47941
  }
47943
- /**
47944
- * Should start the sign transaction process and return
47945
- * the signed transaction.
47946
- *
47947
- * @param address - The address to sign the transaction
47948
- * @param transaction - The transaction to sign
47949
- *
47950
- * @returns Transaction signature
47951
- */
47952
- async signTransaction(_address, _transaction) {
47953
- throw new Error("Method not implemented.");
47954
- }
47955
47942
  /**
47956
47943
  * Should start the send transaction process and return
47957
47944
  * the transaction id submitted to the network.