starknet 4.1.0 → 4.3.1

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/__tests__/defaultProvider.test.ts +11 -24
  3. package/__tests__/rpcProvider.test.ts +3 -3
  4. package/__tests__/sequencerProvider.test.ts +40 -2
  5. package/__tests__/utils/address.test.ts +2 -2
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +1 -0
  8. package/dist/provider/default.d.ts +2 -2
  9. package/dist/provider/default.js +3 -3
  10. package/dist/provider/interface.d.ts +6 -3
  11. package/dist/provider/rpc.d.ts +9 -4
  12. package/dist/provider/rpc.js +67 -25
  13. package/dist/provider/sequencer.d.ts +2 -2
  14. package/dist/provider/sequencer.js +9 -9
  15. package/dist/provider/utils.d.ts +12 -0
  16. package/dist/provider/utils.js +17 -1
  17. package/dist/types/api/openrpc.d.ts +151 -0
  18. package/dist/types/api/openrpc.js +9 -0
  19. package/dist/types/api/rpc.d.ts +22 -43
  20. package/dist/types/provider.d.ts +5 -5
  21. package/dist/utils/address.js +1 -1
  22. package/dist/utils/ellipticCurve.d.ts +13 -0
  23. package/dist/utils/ellipticCurve.js +20 -16
  24. package/dist/utils/hash.d.ts +1 -0
  25. package/dist/utils/hash.js +8 -1
  26. package/dist/utils/responseParser/rpc.d.ts +13 -3
  27. package/dist/utils/responseParser/rpc.js +2 -10
  28. package/dist/utils/responseParser/sequencer.d.ts +4 -1
  29. package/dist/utils/responseParser/sequencer.js +1 -7
  30. package/dist/utils/url.d.ts +7 -0
  31. package/dist/utils/url.js +49 -0
  32. package/index.d.ts +1 -0
  33. package/index.js +1 -0
  34. package/package.json +1 -1
  35. package/provider/default.d.ts +2 -2
  36. package/provider/default.js +3 -3
  37. package/provider/interface.d.ts +6 -3
  38. package/provider/rpc.d.ts +9 -4
  39. package/provider/rpc.js +67 -25
  40. package/provider/sequencer.d.ts +2 -2
  41. package/provider/sequencer.js +9 -9
  42. package/provider/utils.d.ts +12 -0
  43. package/provider/utils.js +17 -1
  44. package/src/index.ts +1 -0
  45. package/src/provider/default.ts +2 -3
  46. package/src/provider/interface.ts +5 -3
  47. package/src/provider/rpc.ts +56 -34
  48. package/src/provider/sequencer.ts +11 -9
  49. package/src/provider/utils.ts +22 -1
  50. package/src/types/api/openrpc.ts +168 -0
  51. package/src/types/api/rpc.ts +22 -45
  52. package/src/types/provider.ts +5 -5
  53. package/src/utils/address.ts +2 -2
  54. package/src/utils/ellipticCurve.ts +20 -16
  55. package/src/utils/hash.ts +8 -1
  56. package/src/utils/responseParser/rpc.ts +16 -13
  57. package/src/utils/responseParser/sequencer.ts +5 -8
  58. package/src/utils/url.ts +53 -0
  59. package/types/api/openrpc.d.ts +151 -0
  60. package/types/api/openrpc.js +9 -0
  61. package/types/api/rpc.d.ts +22 -43
  62. package/types/provider.d.ts +5 -5
  63. package/utils/address.js +1 -1
  64. package/utils/ellipticCurve.d.ts +13 -0
  65. package/utils/ellipticCurve.js +20 -16
  66. package/utils/hash.d.ts +1 -0
  67. package/utils/hash.js +8 -1
  68. package/utils/responseParser/rpc.d.ts +13 -3
  69. package/utils/responseParser/rpc.js +2 -10
  70. package/utils/responseParser/sequencer.d.ts +4 -1
  71. package/utils/responseParser/sequencer.js +1 -7
  72. package/utils/url.d.ts +7 -0
  73. package/utils/url.js +49 -0
  74. package/www/docs/API/account.md +20 -18
  75. package/www/docs/API/contract.md +10 -10
  76. package/www/docs/API/contractFactory.md +14 -11
  77. package/www/docs/API/provider.md +60 -37
  78. package/www/docs/API/signer.md +8 -10
  79. package/www/docs/API/utils.md +151 -74
  80. package/www/guides/account.md +25 -3
  81. package/www/guides/erc20.md +20 -4
  82. package/www/guides/intro.md +3 -1
@@ -12,36 +12,36 @@ This API is the primary way to interact with an account contract on StarkNet.
12
12
 
13
13
  ## Creating an instance
14
14
 
15
- For creating new instance of Account, account contract must be deployed. Also there needs to be a Provider instance that will be passed in the constructor and key pair for the account.
15
+ To create a new instance of the Account, first an account contract must be deployed. Also there needs to be a Provider instance that will be passed in the constructor and key pair for the account.
16
16
 
17
17
  `new starknet.Account(Provider, address, starkKeyPair)`
18
18
 
19
- ## Account Properties
19
+ ## Properties
20
20
 
21
21
  account.**address** => _string_
22
22
 
23
- The address of the account contract
23
+ The address of the account contract.
24
24
 
25
- ## Account methods
25
+ ## Methods
26
26
 
27
27
  account.**getNonce()** => _Promise < string >_
28
28
 
29
- Gets new Nonce for the next transaction
29
+ Gets the new Nonce for the next transaction.
30
30
 
31
31
  <hr />
32
32
 
33
33
  account.**estimateFee**(calls [ , options ]) => _Promise < EstimateFeeResponse >_
34
34
 
35
- Gets the estimated fee for the call(s)
35
+ Gets the estimated fee for the call(s).
36
36
 
37
37
  The _options_ object may include any of:
38
38
 
39
39
  - options.**blockIdentifier** - Block Identifier for the transaction
40
40
  - options.**nonce** - Nonce for the transaction
41
41
 
42
- ###### EstimateFeeResponse
42
+ ###### _EstimateFeeResponse_
43
43
 
44
- ```
44
+ ```typescript
45
45
  {
46
46
  overall_fee: BN;
47
47
  gas_consumed?: BN;
@@ -53,7 +53,7 @@ The _options_ object may include any of:
53
53
 
54
54
  account.**execute**(calls [ , abi , transactionsDetail ]) => _Promise < AddTransactionResponse >_
55
55
 
56
- Executes one or multiple calls using the account contract
56
+ Executes one or multiple calls using the account contract.
57
57
 
58
58
  The _transactionsDetail_ object may include any of:
59
59
 
@@ -61,9 +61,9 @@ The _transactionsDetail_ object may include any of:
61
61
  - transactionsDetail.**nonce** - Nonce for the transaction
62
62
  - transactionsDetail.**version** - Version for the transaction (default is 0)
63
63
 
64
- ###### AddTransactionResponse
64
+ ###### _AddTransactionResponse_
65
65
 
66
- ```
66
+ ```typescript
67
67
  {
68
68
  transaction_hash: string;
69
69
  };
@@ -73,11 +73,11 @@ The _transactionsDetail_ object may include any of:
73
73
 
74
74
  account.**signMessage**(typedData) => _Promise < Signature >_
75
75
 
76
- Creates a signature from the passed data
76
+ Creates a signature from the passed data.
77
77
 
78
- ###### Signature
78
+ ###### _Signature_
79
79
 
80
- ```
80
+ ```typescript
81
81
  string[];
82
82
  ```
83
83
 
@@ -85,20 +85,22 @@ string[];
85
85
 
86
86
  account.**hashMessage**(typedData) => _Promise < string >_
87
87
 
88
- Creates a hash from the passed data
88
+ Creates a hash from the passed data.
89
89
 
90
90
  <hr />
91
91
 
92
92
  account.**verifyMessageHash**(hash, signature) => _Promise < boolean >_
93
93
 
94
- Verify a signature of a given hash
94
+ Verify a signature of a given hash.
95
95
 
96
- **WARNING** This method is not recommended, use verifyMessage instead
96
+ > **WARNING**
97
+ >
98
+ > This method is not recommended, use `verifyMessage` instead
97
99
 
98
100
  <hr />
99
101
 
100
102
  account.**verifyMessage**(typedData, signature) => _Promise < boolean >_
101
103
 
102
- Verify a signature of a JSON object
104
+ Verify a signature of a JSON object.
103
105
 
104
106
  <hr />
@@ -12,19 +12,19 @@ Contracts allow you to transform Cairo values, like `Uint256` to `BigNumber`. It
12
12
 
13
13
  `new starknet.Contract(abi, address, providerOrAccount)`
14
14
 
15
- `contract.attach(providerOrAccount)` _for changing the provider or account_
15
+ `contract.attach(address)` _for changing the address of the connected contract_
16
16
 
17
- `contract.connect(address)` _for changing the address of the connected contract_
17
+ `contract.connect(providerOrAccount)` _for changing the provider or account_
18
18
 
19
- ## Contract properties
19
+ ## Properties
20
20
 
21
21
  contract.**address** => _string_
22
22
 
23
- The address the contract was constructed/connected with
23
+ The address the contract was constructed/connected with.
24
24
 
25
25
  contract.**providerOrAccount** => _ProviderInterface | AccountInterface_
26
26
 
27
- Provider or account that are used to interact with the network
27
+ Provider or account that are used to interact with the network.
28
28
 
29
29
  contract.**deployTransactionHash** => _string | null_
30
30
 
@@ -32,9 +32,9 @@ If the Contract object is the result of a ContractFactory deployment, this is th
32
32
 
33
33
  contract.**abi** => _Abi_
34
34
 
35
- The ABI the contract was constructed with
35
+ The ABI the contract was constructed with.
36
36
 
37
- ## Contract methods
37
+ ## Methods
38
38
 
39
39
  contract.**deployed**() => _Promise < Contract >_
40
40
 
@@ -46,13 +46,13 @@ A Meta-Class is a Class which has any of its properties determined at run-time.
46
46
 
47
47
  ### Read-Only Methods(constant)
48
48
 
49
- A constant method (denoted view in Cairo) is read-only and evaluates a small amount of EVM code against the current blockchain state. It is therefore free and does not require any fee, but cannot make changes to the blockchain state...
49
+ A constant method (denoted view in Cairo) is read-only and evaluates a small amount of Cairo code against the current blockchain state. It is therefore free and does not require any fee, but cannot make changes to the blockchain state...
50
50
 
51
51
  contract.**METHOD_NAME**(...args [ , overrides ]) => _Promise < Result >_
52
52
 
53
53
  The type of the result depends on the ABI. Result object will be returned with each parameter available positionally and if the parameter is named, it will also be available by its name.
54
54
 
55
- The _overrides_ object for a read-only method may include any of:
55
+ The _overrides_ object for a read-only method may include:
56
56
 
57
57
  - overrides.**blockIdentifier**
58
58
 
@@ -62,7 +62,7 @@ A non-constant method requires a transaction to be signed and requires payment i
62
62
 
63
63
  contract.**METHOD_NAME**(...args [ , overrides ]) => _Promise < AddTransactionResponse >_
64
64
 
65
- Returns a AddTransactionResponse for the transaction after it is sent to the network. This requires the Contract has a signer.
65
+ Returns a _AddTransactionResponse_ for the transaction after it is sent to the network. This requires that Contract has a signer.
66
66
 
67
67
  The _overrides_ object for write methods may include any of:
68
68
 
@@ -4,7 +4,7 @@ sidebar_position: 5
4
4
 
5
5
  # Contract Factory
6
6
 
7
- Contract Factory allow you to deploy contracts onto StarkNet. To deploy a Contract, additional information is needed that is not available on a Contract object itself.
7
+ Contract Factory allow you to deploy contracts to StarkNet. To deploy a Contract, additional information is needed that is not available on a Contract object itself.
8
8
 
9
9
  ## Creating an instance
10
10
 
@@ -18,25 +18,28 @@ Creates a new instance of a ContractFactory for the contract described by the _c
18
18
 
19
19
  ## Properties
20
20
 
21
- contractFactory.**abi** => _Abi_;
21
+ contractFactory.**abi** => _Abi_
22
22
 
23
- The ABI the contractFactory was constructed with
23
+ The ABI the contractFactory was constructed with.
24
24
 
25
- contractFactory.**compiledContract** => _CompiledContract_;
25
+ contractFactory.**compiledContract** => _CompiledContract_
26
26
 
27
- The compiled contract the contractFactory was constructed with
27
+ The compiled contract the contractFactory was constructed with.
28
28
 
29
- contractFactory.**providerOrAccount** => _ProviderInterface | AccountInterface_;
29
+ contractFactory.**providerOrAccount** => _ProviderInterface | AccountInterface_
30
30
 
31
- Provider or account that are used to interact with the network
31
+ Provider or account that are used to interact with the network.
32
32
 
33
33
  ## Methods
34
34
 
35
35
  contractFactory.**attach**( address ) ⇒ _Contract_
36
36
 
37
- Return an instance of a Contract attached to address. This is the same as using the Contract constructor with address and this _compiledContract_ and _providerOrAccount_ passed in when creating the ContractFactory.
37
+ Return an instance of a _Contract_ attached to address. This is the same as using the _Contract_ constructor with address and this _compiledContract_ and _providerOrAccount_ passed in when creating the ContractFactory.
38
38
 
39
- contractFactory.deploy( constructorCalldata, addressSalt ) ⇒ Promise< Contract >
40
- Uses the provider to deploy the Contract with constructorCalldata passed into the constructor and returns a Contract which is attached to the address where this contract will be deployed.
39
+ <hr />
41
40
 
42
- The transaction hash can be found at contract.deployTransactionHash, and no interactions should be made until the transaction is resolved.
41
+ contractFactory.**deploy**( constructorCalldata, addressSalt ) _Promise < Contract >_
42
+
43
+ Uses the provider to deploy the Contract with _constructorCalldata_ passed into the constructor and returns a _Contract_ which is attached to the address where this contract will be deployed.
44
+
45
+ The transaction hash can be found at _contract.deployTransactionHash_, and no interactions should be made until the transaction is resolved.
@@ -4,7 +4,7 @@ sidebar_position: 1
4
4
 
5
5
  # Provider
6
6
 
7
- The **Provider** API allows you to interface with the StarkNet network, without signing transactions or messages.
7
+ The **Provider** API allows you to interact with the StarkNet network, without signing transactions or messages.
8
8
 
9
9
  Typically, these are _read_ calls on the blockchain.
10
10
 
@@ -12,14 +12,32 @@ Typically, these are _read_ calls on the blockchain.
12
12
 
13
13
  `new starknet.Provider(optionsOrProvider)`
14
14
 
15
- The options for the provider depends from the network. The structure of the options object is:
15
+ The options for the provider depend on the network. The structure of the options object is:
16
16
 
17
17
  - options.**sequencer** - Options for sequencer provider
18
18
  - options.**rpc** - Options for RPC provider
19
19
 
20
- Example:
20
+ The easiest way to get started is:
21
+
22
+ ```typescript
23
+ const provider = new starknet.Provider()
24
+ ```
25
+
26
+ The above snippet creates a Starknet Provider instance with `goerli-alpha` network.
21
27
 
28
+ However, if you want to use `mainnet-alpha` or explicitly declare the network, you can use:
29
+
30
+ ```typescript
31
+ const provider = new starknet.Provider({
32
+ sequencer: {
33
+ network: 'mainnet-alpha' // or 'goerli-alpha'
34
+ }
35
+ })
22
36
  ```
37
+
38
+ If you want more control:
39
+
40
+ ```typescript
23
41
  const provider = new starknet.Provider({
24
42
  sequencer: {
25
43
  baseUrl: 'https://alpha4.starknet.io',
@@ -29,7 +47,11 @@ const provider = new starknet.Provider({
29
47
  })
30
48
  ```
31
49
 
32
- **This is also default options for the constructor for the **testnet\*\*\*
50
+ These are also the default options for the Provider constructor with `network: 'goerli-alpha'`.
51
+
52
+ > **Note**
53
+ >
54
+ > `network` arguement should work in most cases. If you want to use the `sequencer` arguement with `baseUrl`, you will not be able to use the `network` field in the object.
33
55
 
34
56
  ## Methods
35
57
 
@@ -43,13 +65,13 @@ The call object structure:
43
65
 
44
66
  - call.**contractAddress** - Address of the contract
45
67
  - call.**entrypoint** - Entrypoint of the call (method name)
46
- - call.**calldata** - Payload for the invoking the method
68
+ - call.**calldata** - Payload for the invoking method
47
69
 
48
- ###### CallContractResponse
70
+ ###### _CallContractResponse_
49
71
 
50
- ```
72
+ ```typescript
51
73
  {
52
- result: string[];
74
+ result: string[];
53
75
  }
54
76
  ```
55
77
 
@@ -61,7 +83,7 @@ Gets the block information.
61
83
 
62
84
  ###### _GetBlockResponse_
63
85
 
64
- ```
86
+ ```typescript
65
87
  {
66
88
  accepted_time: number;
67
89
  block_hash: string;
@@ -85,7 +107,7 @@ Gets the contract class of the deployed contract.
85
107
 
86
108
  ###### _ContractClass_
87
109
 
88
- ```
110
+ ```typescript
89
111
  {
90
112
  program: CompressedProgram;
91
113
  entry_points_by_type: EntryPointsByType;
@@ -95,9 +117,9 @@ Gets the contract class of the deployed contract.
95
117
 
96
118
  <hr/>
97
119
 
98
- provider.**getStorageAt**(contractAddress, key, blockHashOrTag) => _Promise < string >_
120
+ provider.**getStorageAt**(contractAddress, key, blockIdentifier) => _Promise < string >_
99
121
 
100
- Gets the contract's storage variable at a specific key
122
+ Gets the contract's storage variable at a specific key.
101
123
 
102
124
  <hr/>
103
125
 
@@ -107,7 +129,7 @@ Gets the status of a transaction.
107
129
 
108
130
  ###### _GetTransactionReceiptResponse_
109
131
 
110
- ```
132
+ ```typescript
111
133
  {
112
134
  transaction_hash: string;
113
135
  status: 'NOT_RECEIVED' | 'RECEIVED' | 'PENDING' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1' | 'REJECTED';
@@ -127,7 +149,7 @@ Gets the transaction information from a tx hash.
127
149
 
128
150
  ###### _GetTransactionResponse_
129
151
 
130
- ```
152
+ ```typescript
131
153
  {
132
154
  transaction_hash: string;
133
155
  version?: string;
@@ -146,27 +168,26 @@ Gets the transaction information from a tx hash.
146
168
 
147
169
  provider.**declareContract**(payload) => _Promise < DeclareContractResponse >_
148
170
 
149
- Declares a contract on Starknet
171
+ Declares a contract on Starknet.
150
172
 
151
173
  ###### _DeclareContractResponse_
152
174
 
153
- ```
175
+ ```typescript
154
176
  {
155
177
  transaction_hash: string;
156
178
  class_hash: string;
157
179
  };
180
+ ```
158
181
 
159
182
  <hr/>
160
183
 
161
- ```
162
-
163
184
  provider.**deployContract**(payload [ , abi ]) => _Promise < DeployContractResponse >_
164
185
 
165
- Deploys a contract on Starknet
186
+ Deploys a contract on Starknet.
166
187
 
167
188
  ###### _DeployContractResponse_
168
189
 
169
- ```
190
+ ```typescript
170
191
  {
171
192
  transaction_hash: string;
172
193
  contract_address?: string;
@@ -185,7 +206,7 @@ Wait for the transaction to be accepted on L2 or L1.
185
206
 
186
207
  `new starknet.SequencerProvider(optionsOrProvider)`
187
208
 
188
- The options for the provider depends from the network. The structure of the options object is:
209
+ The options for the provider depend on the network. The structure of the options object is:
189
210
 
190
211
  - options.**baseUrl** - Base URL of the network
191
212
  - options.**feederGatewayUrl** - Feeder Gateway Endpoint of the network
@@ -193,11 +214,11 @@ The options for the provider depends from the network. The structure of the opti
193
214
 
194
215
  or
195
216
 
196
- - options.**network** - One of 'mainnet-alpha' or 'goerli-alpha'
217
+ - options.**network** - Either 'mainnet-alpha' or 'goerli-alpha'
197
218
 
198
219
  Example:
199
220
 
200
- ```
221
+ ```typescript
201
222
  const provider = new starknet.Provider({
202
223
  baseUrl: 'https://alpha4.starknet.io',
203
224
  feederGatewayUrl: 'feeder_gateway',
@@ -207,11 +228,13 @@ const provider = new starknet.Provider({
207
228
 
208
229
  ## Methods
209
230
 
210
- Gets the smart contract address on the network
231
+ Gets the smart contract address on the network.
211
232
 
212
233
  provider.**getContractAddresses**() => _Promise < GetContractAddressesResponse >_
213
234
 
214
- ```
235
+ ###### _GetContractAddressesResponse_
236
+
237
+ ```typescript
215
238
  {
216
239
  Starknet: string;
217
240
  GpsStatementVerifier: string;
@@ -226,7 +249,7 @@ Gets the status of a transaction.
226
249
 
227
250
  ###### _GetTransactionStatusResponse_
228
251
 
229
- ```
252
+ ```typescript
230
253
  {
231
254
  tx_status: 'NOT_RECEIVED' | 'RECEIVED' | 'PENDING' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1' | 'REJECTED';
232
255
  block_hash: string;
@@ -246,7 +269,7 @@ Gets the transaction trace from a tx hash.
246
269
 
247
270
  ###### _GetTransactionTraceResponse_
248
271
 
249
- ```
272
+ ```typescript
250
273
  {
251
274
  function_invocation: {
252
275
  caller_address: string;
@@ -254,7 +277,7 @@ Gets the transaction trace from a tx hash.
254
277
  code_address: string;
255
278
  selector: string;
256
279
  calldata: {
257
- [inputName: string]: string | string[] | { type: 'struct'; [k: string]: BigNumberish };
280
+ [inputName: string]: string | string[] | { type: 'struct'; [k: string]: BigNumberish };
258
281
  };
259
282
  result: Array<any>;
260
283
  execution_resources: any;
@@ -276,7 +299,7 @@ Gets the transaction trace from a tx hash.
276
299
 
277
300
  Example:
278
301
 
279
- ```
302
+ ```typescript
280
303
  const provider = new starknet.RpcProvider({
281
304
  nodeUrl: 'URL_TO_STARKNET_RPC_NODE',
282
305
  })
@@ -292,17 +315,17 @@ Gets the transaction count from a block.
292
315
 
293
316
  provider.**getBlockNumber**() => _Promise < number >_
294
317
 
295
- Gets the latest block number
318
+ Gets the latest block number.
296
319
 
297
320
  <hr/>
298
321
 
299
322
  provider.**getSyncingStats**() => _Promise < GetSyncingStatsResponse >_
300
323
 
301
- Gets syncing status of the node
324
+ Gets syncing status of the node.
302
325
 
303
- ###### GetSyncingStatsResponse
326
+ ###### _GetSyncingStatsResponse_
304
327
 
305
- ```
328
+ ```typescript
306
329
  boolean |
307
330
  {
308
331
  starting_block_hash: string;
@@ -318,9 +341,9 @@ boolean |
318
341
 
319
342
  provider.**getEvents**(eventFilter) => _Promise < GetEventsResponse >_
320
343
 
321
- ##### EventFilter
344
+ ##### _EventFilter_
322
345
 
323
- ```
346
+ ```typescript
324
347
  type EventFilter = {
325
348
  fromBlock: string;
326
349
  toBlock: string;
@@ -331,9 +354,9 @@ type EventFilter = {
331
354
  };
332
355
  ```
333
356
 
334
- ###### GetSyncingStatsResponse
357
+ ###### _GetEventsResponse_
335
358
 
336
- ```
359
+ ```typescript
337
360
  {
338
361
  events: StarknetEmittedEvent[];
339
362
  page_number: number;
@@ -10,21 +10,21 @@ The **Signer** API allows you to sign transactions and messages, and also allows
10
10
 
11
11
  `new starknet.Signer(keyPair)`
12
12
 
13
- ## Signer Methods
13
+ ## Methods
14
14
 
15
15
  signer.**getPubKey**() => _Promise < string >_
16
16
 
17
- Returns public key of the signer
17
+ Returns the public key of the signer.
18
18
 
19
19
  <hr />
20
20
 
21
21
  signer.**signTransaction**(transactions, transactionsDetail [ , abi ]) => _Promise < Signature >_
22
22
 
23
- Returns signature of the transaction
23
+ Returns the signature of the transaction.
24
24
 
25
- ###### Signature
25
+ ###### _Signature_
26
26
 
27
- ```
27
+ ```typescript
28
28
  string[]
29
29
  ```
30
30
 
@@ -32,12 +32,10 @@ string[]
32
32
 
33
33
  signer.**signMessage**(typedData, accountAddress) => _Promise < Signature >_
34
34
 
35
- Returns signature of the transaction
35
+ Returns the signature of the transaction.
36
36
 
37
- ###### Signature
37
+ ###### _Signature_
38
38
 
39
- ```
39
+ ```typescript
40
40
  string[]
41
41
  ```
42
-
43
- <hr />