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: balanceOfToken
REQUEST PARAMS: @contract address (LZuf2u5cJMm6gKwd3jGGGyJamEstvQMVGu)
@user address
RESPONSE: Get particular user token balance
METHOD: 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 transferred
RESPONSE: Transaction hash
METHOD: 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 address
RESPONSE: Transaction hash
METHOD: 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 address
RESPONSE: Get token allowance details
METHOD: 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 address
RESPONSE: Transaction hash
METHOD: GET
6. Transaction Details:
URL: http://64.227.188.73:4000/txinfo/<transaction_hash>
REQUEST PARAMS: @transaction hash
RESPONSE: To get the details of transaction hash
METHOD: POST
CURL: curl — request POST — url http://64.227.188.73:26667/wallet/gettransactionbyid
— 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
CURL: curl — request POST — url http://64.227.188.73:26667/wallet/gettransactioninfobyid
— header ‘Accept: application/json’ — header ‘Content-Type: application/json’ — data
Space visibility
GitBook Documentation
Good to know! We're still documenting this version of GitBook. Some documentation links might be out of date for now!
Last modified 19d ago
Copy link