SendTransaction()

Before calling the function make sure you have the Connector object initialized.

Understanding Connector Object

Function Call

Field

Type

Description

Integeral

int

Integral is the value that comes before the dot

Fraction

long

Fraction is the value that comes after the dot

Fee

double

Amount of fee you want to maximum spend

PublicKey

string

Base58 ed25519 PublicKey of Sender

PrivateKey

string

Base58 ed25519 PrivateKey of Sender

Target

string

Base58 ed25519 PublicKey of Receiver

UserData

byte[]

Optional: Userdata/extra information you want to store along with the Transaction

TxsID

long

Optional: Specify TransactionId for high performance applications

Transaction

Optional: Meant for developers that are common with forming a transaction for the Credits Blockchain

SendTransaction(0,0,0.1,"Enter PublicKey","Enter Privatekey","Enter Target PublicKey");

Return value of function: TransactionFlowResult

Example

Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.TransactionFlowResult Sendedtransaction = connect_.SendTransaction(0,0,1"Publickey","Privatekey","Target");
Console.WriteLine(Sendedtransaction);

Return value of function: TransactionFlowResult

Output of Example

Output is printed via ObjectDumper

{TransactionFlowResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success:  4C00000000003E016E91849568F4864728D5CEB361CC42458B498A1BF279FAC9F22A2D99632FCCE6FA9348421D6A9E63383F4C1DE319A3B7940163A41CE4238D4B0E920EE3C5881300000000000000000000664C0100"
  Smart_contract_result: null
  RoundNum: 1716714
  Id: {TransactionId}
    PoolSeq: 1716717
    Index: 0
  Fee: {Amount}
    Integral: 0
    Fraction: 8740234375000000
  ExtraFee: null

Last updated