RemarkableTools.Mx.SmartSend
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RemarkableTools.Mx.SmartSend --version 1.0.1
NuGet\Install-Package RemarkableTools.Mx.SmartSend -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RemarkableTools.Mx.SmartSend" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RemarkableTools.Mx.SmartSend --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RemarkableTools.Mx.SmartSend, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RemarkableTools.Mx.SmartSend as a Cake Addin #addin nuget:?package=RemarkableTools.Mx.SmartSend&version=1.0.1 // Install RemarkableTools.Mx.SmartSend as a Cake Tool #tool nuget:?package=RemarkableTools.Mx.SmartSend&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Mx.NET.SDK.SmartSend
⚡ MultiversX .NET SmartSend SDK: Library for interacting with Smart Send contracts on MultiversX blockchain
How to install?
The content is delivered via nuget packages:
RemarkableTools.Mx.SmartSend
Main Features
- Create EGLD/Token/MetaESDT/NFT/SFT transactions for Smart Send contracts
Quick start guide
Basic example
var provider = new MultiversxProvider(new MultiversxNetworkConfiguration(Network.DevNet));
var networkConfig = await NetworkConfig.GetFromNetwork(provider);
var account = Account.From(await provider.GetAccount("MY_ADDRESS"));
var mySmartSendContractAddress = "MY_CONTRACT_ADDRESS";
var smartSend = new SmartSend(account, networkConfig, mySmartSendContractAddress);
var inputTransactions = new List<TokenAmount>()
{
new TokenAmount("ADDRESS_1", 0.1m, ESDT.EGLD()),
new TokenAmount("ADDRESS_2", 0.03m, ESDT.EGLD())
};
var egldTxs = smartSend.CreateEGLDTransactions(inputTransactions);
//sign and send egldTxs
Advanced example
The following example is using a wallet signer that should not be used in production, only in private!
var provider = new MultiversxProvider(new MultiversxNetworkConfiguration(Network.DevNet));
var networkConfig = await NetworkConfig.GetFromNetwork(provider);
var filePath = "PATH/TO/KEYFILE.json";
var password = "PASSWORD";
var signer = Signer.FromKeyFile(filePath, password);
var account = Account.From(await provider.GetAccount(signer.GetAddress().Bech32));
var mySmartSendContractAddress = "MY_CONTRACT_ADDRESS";
var smartSend = new SmartSend(account, networkConfig, mySmartSendContractAddress);
var inputTransactions = new List<TokenAmount>()
{
new TokenAmount("ADDRESS_1", 0.1m, ESDT.EGLD()),
new TokenAmount("ADDRESS_2", 0.03m, ESDT.EGLD())
};
var egldTxs = smartSend.CreateEGLDTransactions(inputTransactions);
var signed = egldTxs.MultiSign(signer);
var response = await provider.SendTransactions(signed);
foreach (var hash in response.TxsHashes)
Console.WriteLine(hash.Value);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- RemarkableTools.Mx (>= 2.0.0)
- RemarkableTools.Mx.Core (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
SDK updates and improvements