0

hello i have a error when i creeate opreation to send payment this my code

Network.UseTestNetwork();
var source = KeyPair.FromSecretSeed("SDLS5BFFRBSQO5LQGHYTRCAWL3UIMI6EUVVX5IVL3ZZD2OU2HK5U45E7");
var destination = KeyPair.FromAccountId("GBMYHH7ZWAD73IHJWK3CXDSDLRHWHFPHJUZDFYA4YWJH6CEO5L7KRU3P");
Asset asset = new AssetTypeNative();

var server = new Server("https://horizon-testnet.stellar.org");
var sfs = server.Accounts.Account(source.AccountId);
var account = new Account(sfs.Result.AccountId, sfs.Result.SequenceNumber);

var builder = new Transaction.Builder(account)
                .AddOperation(new PaymentOperation.Builder(destination, asset, "1").SetSourceAccount(source).Build())
                .AddMemo(Memo.Text("Hello world!")).Build();

builder.Sign(source);
  • I cannot reproduce the error. What version of the SDK are you using? – Francesco Oct 13 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.