NearBlockChainService class

Implemented types

Constructors

NearBlockChainService.new({required JsVMService jsVMService, required NearRpcClient nearRpcClient})
NearBlockChainService.defaultInstance()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
jsVMService JsVMService
final
nearRpcClient NearRpcClient
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addKey({required String fromAddress, required String mnemonic, String passphrase = '', required DerivationPath derivationPathOfNewGeneratedAccount, required String permission, required String allowance, required String smartContractId, required List<String> methodNames, required String privateKey, required String publicKey}) Future<BlockchainResponse>
authWithNearWallets(BuildContext context, String privateNearAPIjsFormat) Future<String>
authWithNearWalletsWeb(String privateNearAPIjsFormat, [String? successUrlCallBackWeb, String? failureUrlCallBackWeb]) Future<void>
callSmartContractFunction(TransferRequest transferRequest) Future<BlockchainResponse>
override
callViewMethod({required String contractId, required String method, Map<String, dynamic> args = const {}}) Future<BlockchainResponse>
deleteKey({required String accountId, required String deletedPublicKey, required String privateKey, required String publicKey}) Future<BlockchainResponse>
exportPrivateKeyToTheNearApiJsFormat({BlockChainData? currentBlockchainData}) Future<String>
getAccountIdFromWalletRedirectOnTheWeb() String?
getBase58PubKeyFromHexValue({required String? hexEncodedPubKey}) Future<String>
getBlockChainDataByDerivationPath({required String mnemonic, required String? passphrase, required DerivationPath derivationPath}) Future<NearBlockChainData>
override
getBlockChainDataFromMnemonic(String mnemonic, String passphrase) Future<NearBlockChainData>
override
getBlockchainNetworkEnvironment() Future<String>
override
getBlockchainsUrlsByBlockchainType() Set<String>
override
getMPCAccount({required String accountId, String path = "flutterchain", String chain = BlockChains.ethereum, String typeOfNetwork = "testnet", String? mpcPublicKey}) Future<MPCAccountInfo>
getPrivateKeyFromSecretKeyFromNearApiJSFormat(String base58PrivateKey) Future<String>
getPublicKeyFromSecretKeyFromNearApiJSFormat(String base58PrivateKey) Future<String>
getTransactionInfo({required String accountId, required String publicKey}) Future<NearTransactionInfoModel>
getWalletBalance(TransferRequest transferRequest) Future<String>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendTransactionNearAsync({required List<String> params}) Future<BlockchainResponse>
sendTransactionNearSync({required List<String> params}) Future<BlockchainResponse>
sendTransferNativeCoin(TransferRequest transferRequest) Future<BlockchainResponse>
override
setBlockchainNetworkEnvironment({required String newUrl}) Future<void>
override
signBTCTransactionWithMPC({required String accountId, required String publicKey, required String privateKey, required MpcTransactionInfo transactionInfo, required String mpcSenderPublicKey, String path = "flutterchain", String mpcContract = 'v2.multichain-mpc.testnet'}) Future<String>
Signs a Bitcoin transaction with the Near MPC.
signEVMTransationWithMPC({required String accountId, required String publicKey, required String privateKey, required MpcTransactionInfo mpcTransactionInfo, required String senderAdress, String path = "flutterchain", String mpcContract = 'v2.multichain-mpc.testnet'}) Future<String>
Signs an EVM transaction with the Near MPC.
signNearActions({required String fromAddress, required String toAddress, required String transferAmount, required String privateKey, required String gas, required int nonce, required String blockHash, required List<Map<String, dynamic>> actions}) Future<String>
signXRPTransactionWithMPC({required String accountId, required String publicKey, required String privateKey, required MpcTransactionInfo mpcTransactionInfo, String path = "flutterchain", String mpcContract = 'v2.multichain-mpc.testnet'}) Future<String>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited