API wrapper for Cardano Wallet facilitates communication between a ColdFusion server and the Cardano blockchain via the official cardano-wallet
- A running instance of cardano-wallet
- Executable access to cardano-address asset on your coldfusion server
Clone the repo
git clone https://github.com/fangio10/ColdFusion-API-wrapper-for-Cardano-Wallet.git
Instantiate wallet and address objects during application start, for example under function "onApplicationStart" in Application.cfc
<cfset application.oW = createObject("component","wallet").init(ipAddress="192.168.1.1",logFile="wallet.log") />
<cfset application.oA = createObject("component","address").init("/path/to/cardano-address") />
make a call to cardano-wallet, eg show network information
<cfset stNetwork = application.oW.networkInformation() />
make a call to cardano-address, eg generate a passphrase
<cfset stMnemonic = application.oA.generatePhrase() />
functions return a structure with the following keys:
- bSuccess (boolean): was request successful
- code (numeric): HTTP status code
- logLevel (string): information, warning, error, fatal
- logMessage (string): request details including any errors
- data (any): data returned from cardano-wallet
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/myFeature
) - Commit your Changes (
git commit -m 'Adding my feature'
) - Push to the Branch (
git push origin feature/myFeature
) - Open a Pull Request
Distributed under the APACHE License 2.0. See LICENSE
for more information.
Franco - @adaversePools - [email protected]
Project Link: https://github.com/fangio10/ColdFusion-API-wrapper-for-Cardano-Wallet