Last updated:
0 purchases
idena lib dart
idena_lib_dart #
Idena dart library for Flutter based on Official Idena Backoffice
RPC Methods (from http://rpc.idena.io) #
dna_getBalance #
import 'package:idena_lib_dart/model/response/dna_getBalance_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaGetBalanceResponse dnaGetBalanceResponse = AppService().getBalanceGetResponse(address);
copied to clipboard
bcn_transactions #
import 'package:idena_lib_dart/model/response/bcn_transactions_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnTransactionsResponse bcnTransactionsResponse = AppService().getAddressTxsResponse(address, count);
copied to clipboard
dna_getCoinbaseAddr #
import 'package:idena_lib_dart/model/response/dna_getCoinbaseAddr_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaGetCoinbaseAddrResponse dnaGetCoinbaseAddrResponse = AppService().getDnaGetCoinbaseAddr(addressByDefault);
copied to clipboard
dna_identity #
import 'package:idena_lib_dart/model/response/dna_identity_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaIdentityResponse dnaIdentityResponse = AppService().getDnaIdentity(address);
copied to clipboard
dna_epoch #
import 'package:idena_lib_dart/model/response/dna_getEpoch_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaGetEpochResponse dnaGetEpochResponse = AppService().getDnaGetEpoch();
copied to clipboard
dna_ceremonyIntervals #
import 'package:idena_lib_dart/model/response/dna_ceremonyIntervals_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaCeremonyIntervalsResponse dnaCeremonyIntervalsResponse = AppService().getDnaCeremonyIntervals();
copied to clipboard
dna_becomeOnline #
import 'package:idena_lib_dart/model/response/dna_becomeOnline_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaBecomeOnlineResponse dnaBecomeOnlineResponse = AppService().becomeOnline();
copied to clipboard
dna_becomeOffline #
import 'package:idena_lib_dart/model/response/dna_becomeOffline_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaBecomeOfflineResponse dnaBecomeOfflineResponse = AppService().becomeOffline();
copied to clipboard
dna_sendTransaction #
import 'package:idena_lib_dart/model/response/dna_sendTransaction_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaSendTransactionResponse dnaSendTransactionResponse = AppService().sendTx(from, amount, to, privateKey, payload);
copied to clipboard
bcn_syncing #
import 'package:idena_lib_dart/model/response/bcn_syncing_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnSyncingResponse bcnSyncingResponse = AppService().checkSync();
copied to clipboard
bcn_mempool #
import 'package:idena_lib_dart/model/response/bcn_mempool_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnMempoolResponse bcnMempoolResponse = AppService().getMemPool(address);
copied to clipboard
bcn_transaction #
import 'package:idena_lib_dart/model/response/bcn_transaction_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnTransactionResponse bcnTransactionResponse = AppService().getTransaction(hash, address);
copied to clipboard
bcn_sendRawTx #
import 'package:idena_lib_dart/model/response/bcn_send_raw_tx_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
BcnSendRawTxResponse bcnSendRawTxResponse = AppService().sendRawTx(hash, address);
copied to clipboard
dna_activateInvite #
import 'package:idena_lib_dart/model/response/dna_activate_invite_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaActivateInviteResponse dnaActivateInviteResponse = AppService().activateInvitation(key, address);
copied to clipboard
dna_sendInvite #
import 'package:idena_lib_dart/model/response/dna_send_invite_response.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DnaSendInviteResponse dnaSendInviteResponse = AppService().sendInvitation(address, amount, nonce, epoch);
copied to clipboard
dna_sign #
import 'package:idena_lib_dart/deepLinks/deepLinkParamSignin.dart';
import 'package:idena_lib_dart/factory/app_service.dart';
DeepLinkParamSignin deepLinkParam = AppService().signin(deepLinkParam, privateKey);
copied to clipboard
bcn_feePerGas #
import 'package:idena_lib_dart/factory/app_service.dart';
int feePerGas = AppService().getFeePerGas();
copied to clipboard
bcn_txReceipt #
import 'package:idena_lib_dart/model/response/contract/bcn_tx_receipt_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
BcnTxReceiptResponse bcnTxReceiptResponse = SmartContractService().getTxReceipt(txHash);
copied to clipboard
contract_deploy (TimeLock) #
import 'package:idena_lib_dart/model/response/contract/contract_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractDeployResponse contractDeployResponse = SmartContractService().contractDeployTimeLock(nodeAddress, timestamp, amount, maxFee);
copied to clipboard
contract_deploy (MultiSig) #
import 'package:idena_lib_dart/model/response/contract/contract_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractDeployResponse contractDeployResponse = SmartContractService().contractDeployMultiSig(nodeAddress, maxVotes, minVotes, amount, maxFee);
copied to clipboard
contract_estimateDeploy (TimeLock) #
import 'package:idena_lib_dart/model/response/contract/contract_estimate_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractEstimateDeployResponse contractEstimateDeployResponse = SmartContractService().contractEstimateDeployTimeLock(nodeAddress, timestamp, amount);
copied to clipboard
contract_estimateDeploy (MultiSig) #
import 'package:idena_lib_dart/model/response/contract/contract_estimate_deploy_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractEstimateDeployResponse contractEstimateDeployResponse = SmartContractService().contractEstimateDeployMultiSig(nodeAddress, maxVotes, minVotes, amount);
copied to clipboard
contract_call - method Transfer (TimeLock) #
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallTransferTimeLock(nodeAddress, contract, maxFee, destinationAddress, amount);
copied to clipboard
contract_call - method Send (MultiSig) #
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallSendMultiSig(nodeAddress, contract, maxFee, destinationAddress, amount);
copied to clipboard
contract_call - method Add (MultiSig) #
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallAddMultiSig(nodeAddress, contract, maxFee, destinationAddress, privateKey);
copied to clipboard
contract_call - method Push (MultiSig) #
import 'package:idena_lib_dart/model/response/contract/contract_call_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractCallResponse contractCallResponse = SmartContractService().contractCallPushMultiSig(nodeAddress, contract, maxFee, destinationAddress, amount);
copied to clipboard
contract_terminate (TimeLock) #
import 'package:idena_lib_dart/model/response/contract/contract_terminate_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractTerminateResponse contractTerminateResponse = SmartContractService().contractTerminateTimeLock(nodeAddress, contract, maxFee, destinationAddress);
copied to clipboard
contract_terminate (MultiSig) #
import 'package:idena_lib_dart/model/response/contract/contract_terminate_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractTerminateResponse contractTerminateResponse = SmartContractService().contractTerminateMultiSig(nodeAddress, contract, maxFee, destinationAddress);
copied to clipboard
contract_readData (uint64) #
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
int value = SmartContractService().getContractReadDataUint64(contractAddress, key);
copied to clipboard
contract_readData (hex) #
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
String value = SmartContractService().getContractReadDataHex(contractAddress, key);
copied to clipboard
contract_readData (byte) #
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
int byte = SmartContractService().getContractReadDataHex(contractAddress, key);
copied to clipboard
contract_getStake #
import 'package:idena_lib_dart/model/response/contract_get_stake_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ContractGetStakeResponse contractGetStakeResponse = SmartContractService().getContractStake(contractAddress);
copied to clipboard
others methods #
get Status #
import 'package:idena_lib_dart/factory/app_service.dart';
String status = AppService().getWStatusGetResponse();
copied to clipboard
get Last Nonce #
import 'package:idena_lib_dart/factory/app_service.dart';
int nonce = AppService().getLastNonce(address);
copied to clipboard
get Current Period #
import 'package:idena_lib_dart/factory/app_service.dart';
String currentPeriod = AppService().getCurrentPeriod();
copied to clipboard
check Address #
import 'package:idena_lib_dart/factory/app_service.dart';
bool isIdenaAddress = AppService().checkAddressIdena(address);
copied to clipboard
get Predict Smart Contract Address #
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
String address = SmartContractService().getPredictSmartContractAddress(address);
copied to clipboard
get Smart Contract #
import 'package:idena_lib_dart/model/response/contract/api_contract_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ApiContractResponse apiContractResponse = SmartContractService().getContract(contractAddress);
copied to clipboard
get Smart Contract Balance Updates #
import 'package:idena_lib_dart/model/response/api_contract_balance_updates_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ApiContractBalanceUpdatesResponse apiContractBalanceUpdatesResponse = SmartContractService().getContractBalanceUpdates(address, contractAddress, limit);
copied to clipboard
get Smart Contract Transactions #
import 'package:idena_lib_dart/model/response/api_contract_txs_response.dart';
import 'package:idena_lib_dart/factory/smart_contract_service.dart';
ApiContractTxsResponse apiContractTxsResponse = SmartContractService().getContractTxs(address, address, limit, typeOfContract);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.