Public methods 📢
contructor Blade()
Blade()Parameters
Example
std::string apiKey = "GgsRv5PWfQaRQkykgSDRR3JzXN6kVRwv8RWGIes6SnH2vbSnxWMrf5AAxGbQdYbv";
BladeSDK::Network network = BladeSDK::Network::Testnet;
std::string dAppCode = "unitysdktest";
BladeSDK::SdkEnvironment sdkEnvironment = BladeSDK::SdkEnvironment::CI;
BladeSDK::Blade blade = BladeSDK::Blade(apiKey, network, dAppCode, sdkEnvironment);
std::cout << "Blade init: " << blade << std::endl;getInfo
InfoData getInfo()
Example
createAccount
AccountData createAccount()
Example
deleteAccount
TxReceipt deleteAccount(std::string deleteAccountId, std::string deletePrivateKey, std::string transferAccountId, std::string operatorAccountId, std::string operatorPrivateKey)
Parameters
Example
getAccountInfo
AccountInfoData getAccountInfo(std::string accountId)
Parameters
Example
getBalance
AccountBalanceData getBalance(std::string accountId)
Parameters
Example
importAccount
PrivateKeyData importAccount(std::string seedPhrase, bool lookupAccounts)
Parameters
Example
transferHbars
TxReceipt transferHbars(std::string accountId, std::string accountPrivateKey, std::string recieverAccount, std::string amount, std::string memo)
Parameters
Example
transferTokens
TxReceipt transferTokens(std::string tokenId, std::string accountId, std::string accountPrivateKey, std::string receiverId, std::string amount, std::string memo, bool freeTransfer)
Parameters
Example
sign
SignMessageData sign(std::string message, std::string signerKey, std::string encoding)
Parameters
Example
signVerify
bool signVerify(std::string message, std::string signatureHex, std::string key, std::string encoding)
Parameters
Example
contractCallFunction
TxReceipt contractCallFunction(std::string contractId, std::string functionName, ContractFunctionParameters parameters, std::string accountId, std::string accountPrivateKey, long long gas, bool bladePayFee)
Parameters
Example
contractCallQueryFunction
ContractFunctionResult contractCallQueryFunction(std::string contractId, std::string functionName, ContractFunctionParameters parameters, std::string accountId, std::string accountPrivateKey, long long gas, double maxQueryPayment, std::vectorstd::string returnTypes)
Parameters
Example
getC14url
std::string getC14url(std::string asset, std::string account, std::string amount)
Parameters
Example
getTransactions
TransactionsHistoryData getTransactions(std::string accountId, std::string transactionType, std::string nextPage, int transactionsLimit)
Parameters
Example
Last updated