Forkast Developer Docs
...
Services
Account
6 min
this section documents the core interfaces used when working with user accounts in forkastsdk functions login with your key import { loginresponse } from '@forkastgg/client'; const res\ loginresponse = await this accountservice() loginwithprivatekey(key); // returns login response parameters field type required description key string yes private key of ronin wallet approve platform credits approve platform credits for proxy wallet ( optional step if not done from the ui ) this function approves the maximum amount of platform credits (tokens) for your proxy wallet to interact with the forkast platform it is required before placing orders or performing actions that require token allowances if you have already approved platform credits via the forkast ui, you can skip this step // approve platform credits for proxy wallet const approvalresponse = await accountservice approvemaxplatformcreditsforproxywallet( signer, walletproxyaddress, buyamount ); // returns token approval response parameters field type required description signer string yes public address of the wallet walletproxyaddress string yes trading wallet address created buyamount number no amount of tokens to approve types login response represents a user's wallet and proxy wallet balances across different stablecoins and platform tokens interface loginresponse { accesstoken string; walletsalt string; } key fields field type description accesstoken string the token to authenticate requests walletsalt string the salt associated with the user's wallet