Skip to content

Commit 15375fe

Browse files
committed
802/1
1 parent 3a8d054 commit 15375fe

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

docs/v3/guidelines/ton-connect/guidelines/preparing-messages.mdx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,7 @@ await connector.sendTransaction({
437437

438438
### Jetton transfer
439439

440-
The `body` for jetton transfers is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 × 10<sup>6</sup>
441-
), while typically jettons and Toncoin uses 9 decimals(1 TON = 1 × 10<sup>9</sup>).
440+
The `body` for jetton transfers is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 × 10<sup>6</sup>), while typically jettons and Toncoin uses 9 decimals (1 TON = 1 × 10<sup>9</sup>).
442441

443442

444443
:::info
@@ -676,8 +675,8 @@ await jetton.send(
676675

677676
The `messageBody` for jetton transfer([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) with comment we should additionally to the regular transfer `body` serialize comment and pack this in the `forwardPayload`. Please note that the number of decimals can vary between different tokens:
678677

679-
- 9 decimals: `1 TON = 1 * 10 ** 9` typically for various jettons and always for Toncoin
680-
- 6 decimals: `1 USDT = 1 * 10 ** 6` specific jettons, like USDT
678+
- 9 decimals: 1 TON = 1 × 10<sup>9</sup> typically for various jettons and always for Toncoin
679+
- 6 decimals: 1 USDT = 1 × 10<sup>6</sup> specific jettons, like USDT
681680

682681
```js
683682
import { beginCell, toNano, Address } from '@ton/ton'
@@ -886,8 +885,8 @@ jetton.send(sender, RECEIVER_ADDRESS, toNano(10), { notify: { payload: forwardPa
886885

887886
The `body` for jetton burn is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens:
888887

889-
- 9 decimals: `1 TON = 1 * 10 ** 9` typically for various jettons and always for Toncoin
890-
- 6 decimals: `1 USDT = 1 * 10 ** 6` specific jettons, like USDT
888+
- 9 decimals: 1 TON = 1 × 10<sup>9</sup> typically for various jettons and always for Toncoin
889+
- 6 decimals: 1 USDT = 1 × 10<sup>6</sup> specific jettons, like USDT
891890

892891

893892

@@ -1560,7 +1559,7 @@ Learn more about [TON Smart Contract Addresses](/v3/documentation/smart-contract
15601559

15611560
### Jetton transfer
15621561

1563-
Example of function for building jetton transfer transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
1562+
Example of function for building jetton transfer transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 × 10<sup>6</sup>), while TON uses 9 decimals (1 TON = 1 × 10<sup>9</sup>).
15641563

15651564
```python
15661565
from pytoniq_core import begin_cell
@@ -1611,7 +1610,7 @@ transaction = {
16111610

16121611
### Jetton burn
16131612

1614-
Example of function for building jetton burn transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
1613+
Example of function for building jetton burn transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 × 10<sup>6</sup>), while TON uses 9 decimals (1 TON = 1 × 10<sup>9</sup>).
16151614

16161615
```python
16171616
from pytoniq_core import begin_cell
@@ -1929,7 +1928,7 @@ if err != nil {
19291928

19301929
### Jetton transfer
19311930

1932-
Example of function for jetton transfer message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
1931+
Example of function for jetton transfer message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 × 10<sup>6</sup>), while TON uses 9 decimals(1 TON = 1 × 10<sup>9</sup>).
19331932

19341933
```go
19351934
import (
@@ -1991,7 +1990,7 @@ if err != nil {
19911990

19921991
### Jetton burn
19931992

1994-
Example of function for jetton burn message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
1993+
Example of function for jetton burn message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 × 10<sup>6</sup>), while TON uses 9 decimals(1 TON = 1 × 10<sup>9</sup>).
19951994

19961995
```go
19971996
import (

0 commit comments

Comments
 (0)