Skip to content

bitocredit/python-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python wrapper for Bitocredit API

usage

install package using pip

pip install pythonGateway


and use package like this:

    from pythonGateway import BitocreditApi
    
    baseurl = "https://bitocredit.com/api/";
    token = "TOKEN"; # fill your token
    
    Api = BitocreditApi(baseurl , token);
    
    res = Api.createWallet("wallet_id" , "network")  # replace wallet_id with your wallet id and network type
    print(res)

methods

This method used for creating wallet for user

endpoint : https://bitocredit.com/api/create/wallet/{token}

    res = Api.createWallet("wallet_id" , "network")  # replace wallet_id with your wallet id and network type
    print(res)
    

This method used for check a transaction is confirmed or not

endpoint : https://bitocredit.com/api/transaction/check/{token}

    res = Api.transactionCheck("transaction_hash" , "wallet_address") # replace transaction_hash and wallet_address with your transaction hash and wallet address
    print(res)

This method used for check a transaction that is lost in blockchain

endpoint : https://bitocredit.com/api/transaction/recovery/{token}

    res = Api.transactionRecovery("transaction_hash")  # replace transaction_hash with your transaction hash
    print(res)

This method used for check a transaction that is lost in blockchain

endpoint : https://bitocredit.com/api/transaction/fee/{token}

    res = Api.transactionFee()
    print(res)

Please only use this api for test ! it's only an example to show how the server sends data to callback after payment confirmation

endpoint : https://bitocredit.com/api/transaction/example/callback

    res = Api.transactionExample("transaction_hash") # replace transaction_hash with your transaction hash
    print(res)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages