- api:TON Documentation
- v1.Address
- v1.Nft
- v1.Rate
- v2.Auth
- v2.Wallet
- v2.NftContract
- v2.JettonContract
Import
POST
/v2.Auth/Import
v2.Auth
Request
Body Params application/json
access_token
stringÂ
accessToken
wallet
object (WalletAuth)Â
optional
mnemonic
stringÂ
mnemonic
>= 64 characters<= 512 characters
Default:
fever tennis hurdle proof invite brisk pumpkin lunar orbit view weasel bind adult banana core together remove base brain fragile session effort general truth
version
enum<string>Â
optional
Allowed values:
DEFAULTV3R1V3R2V4R1V4R2V5
Example
{
"access_token": "1:2427eba5ddefc80c5679718eeb8425590041",
"wallet": {
"mnemonic": "month rubber derive talent motion lawsuit adapt spice duty siege share soap scare drive own brief behave tilt cake huge weather retreat close alone",
"version": "V4R2"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.apiton.org/v2.Auth/Import' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_token": "1:2427eba5ddefc80c5679718eeb8425590041",
"wallet": {
"mnemonic": "month rubber derive talent motion lawsuit adapt spice duty siege share soap scare drive own brief behave tilt cake huge weather retreat close alone",
"version": "V4R2"
}
}'
Responses
🟢200OK
application/json
Body
jwt_token
stringÂ
jwtToken
Examples
{
"jwt_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwid2FsbGV0IjoiMDo5MDU3NzRjYTMyMTM0OWI5MzRkZjRmODU1NDliOGI1OWVmZGJlNzJiNTZhYjIzMjMzMzM2NTgyYTk4ZDRhNTkwIiwidmVyc2lvbiI6OSwiZXhwIjoxNzg2MDQ1MTUzLCJpYXQiOjE3MzQyMDUxNTN9.e0qqi--bQgXYXr8NS-Sk6zINg4dSpf4FMndig-knJPA"
}
🔴500Server Error