public bool TransferAsync(ref AergoAccount account, string ToAccount, BigInteger Value, TransactionReceiptCallback Callback, CallbackState Context) { byte[] buf = Value.ToByteArray(); // convert to big endian for (int i = 0, j = buf.Length - 1; i < j; i++, j--) { byte temp = buf[i]; buf[i] = buf[j]; buf[j] = temp; } return(aergo_transfer_bignum_async(_Instance, Callback, Context, ref account, ToAccount, buf, buf.Length)); }
public bool TransferAsync(ref AergoAccount account, string ToAccount, string Value, TransactionReceiptCallback Callback, CallbackState Context) { return(aergo_transfer_str_async(_Instance, Callback, Context, ref account, ToAccount, Value)); }
public bool TransferAsync(ref AergoAccount account, string ToAccount, UInt64 IntegerPart, UInt64 DecimalPart, TransactionReceiptCallback Callback, CallbackState Context) { return(aergo_transfer_int_async(_Instance, Callback, Context, ref account, ToAccount, IntegerPart, DecimalPart)); }
public bool CallSmartContractAsync(TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount account, string pContractAddress, string pFunction, params object[] parameters) { return(aergo_call_smart_contract_json_async(_Instance, Callback, Context, ref account, pContractAddress, pFunction, ToJsonArray(parameters))); }
private static extern bool aergo_call_smart_contract_json_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ContractAddress, string Function, string JsonArgs);
private static extern bool aergo_transfer_bignum_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ToAccount, byte[] BigNumber, int Size);
private static extern bool aergo_transfer_int_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ToAccount, UInt64 IntegerPart, UInt64 DecimalPart);
private static extern bool aergo_transfer_str_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ToAccount, string Value);