LGCY Contract Code
Connect to the API’s via https://lgcyscan.network/devops
LGCY Contract address : LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu
1. Get LGCY Token Balance:
URL: http://64.227.188.73:4000/<contract_address>/<user_address>FUNCTION NAME: balanceOfTokenREQUEST PARAMS: @contract address (LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu)@user addressRESPONSE: Get particular user token balanceMETHOD: GET
2. Transfer LGCY Token:
URL: http://64.227.188.73:4000/transferToken/<contract_address>/<to_address>/<amount>REQUEST PARAMS: @contract address (LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu)@to address@token amount to be transferredRESPONSE: Transaction hashMETHOD: GET
3. Approve LGCY Token:
URL: http://64.227.188.73:4000/approve/<contract_address>/<to_address>/<amount>/<from_address>REQUEST PARAMS: @contract address (LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu)@to address@token to be approved for the particular user@from addressRESPONSE: Transaction hashMETHOD: GET
4. Allowance LGCY Token:
URL:http://64.227.188.73:4000/allowance/<contract_address>/<owner_address>/<to_address>REQUEST PARAMS: @contract address (LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu)@owner address@to addressRESPONSE: Get token allowance detailsMETHOD: GET
5. TransferFrom LGCY Token:
URL:http://64.227.188.73:4000/transferFrom/<contract_address>/<to_address>/<amount>/<from_address>REQUEST PARAMS: @contract address (LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu)@to address@Token amount@from addressRESPONSE: Transaction hashMETHOD: GET
6. Transaction Details:
URL: http://64.227.188.73:4000/txinfo/<transaction_hash>REQUEST PARAMS: @transaction hashRESPONSE: To get the details of transaction hashMETHOD: POST— header ‘Accept: application/json’ — header ‘Content-Type: application/json’ — data ‘{ “value”:“08fcda8a557938579381235b92abd61bcfaac3190013572804634f58ae1ab8ed” }’

7. Transaction Info:
URL: http://64.227.188.73:4000/tx/<transaction_hash>
REQUEST PARAMS: @transaction hash
RESPONSE: To get the fee details of transaction hash
METHOD: POST
— header ‘Accept: application/json’ — header ‘Content-Type: application/json’ — data

Good to know! We're still documenting this version of GitBook. Some documentation links might be out of date for now!
Last modified 1yr ago