GOSH Ethereum L2
Endpoint for use with Ever-SDK
To explore the GOSH blockchain, you can use the GOSH explorer
First you need to get the address of user's profile.
The contract Profile is deployed for each user when registering with GOSH.
from GOSH to GOSH
Before transferring to another TIP-3 wallet, you need to check whether the recipient's TIP-3 wallet is already deployed.
As a result, an empty TIP-3 wallet will be deployed to the recipient.
It is important to wait until the contract status changes to "Active".
from Ethereum to GOSH
For transfer tokens to GOSH, you need to call the method:
in the ELOCK contract.
Then it is necessary to calculate the address of the user's TIP-3 wallet in GOSH and wait the transfer of tokens to the received TIP3 user wallet in GOSH.
from GOSH to Ethereum
To transfer tokens to Ethereum, you will need to call method:
(then to call
getERC20Approvementto determine the commission that needs to be attached to the withdrawal function call)
in the user contract TONTokenWallet
Then wait for the receipt of tokens to the recipient's Ethereum wallet.
Getting the user's TIP-3 wallet address:
using by user name
As a result, you get a list of all the user's public keys with their numbers.
It is necessary to take the zeroth pubkey from the list
Then, using the received user's public key, it will be possible to determine the address of the user's TIP-3 wallet
using the user's public key
Getting a list of incoming messages of the contract
Using pagination in the SDK