Skip to content

wildbunny/c-graphene-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a c# websocket API for the graphene blockchains

Requirements:

  • cli_wallet

  • witness_node

  • cli_wallet must be unlocked

Useage:

var cliWallet = "ws://127.0.0.1:8091"; var witnessNode = "ws://127.0.0.1:8090"; string[] both = {cliWallet, witnessNode};

var wallet = new GrapheneWallet(string.Join(",", both), "", "");

(A)Synchronus generic api call:

public async Task<T> ApiCallAsync<T>(GrapheneMethods method, GrapheneApi api, params object[] args)

public T ApiCall<T>(GrapheneMethods method, GrapheneApi api, params object[] args)

GrapheneWallet provides many specialised API calls:

public GrapheneAccount GetAccount(string account) public GrapheneAsset GetAsset(string symbol) public Dictionary<string, GrapheneTransactionRecord> Transfer(string from, string to, decimal amount, string symbol, string memo = "") ....

Decrypt memo:

static public string Decrypt(GrapheneMemo memo, KeyPair receiverKeyPair)

Enjoy!

About

c# api for graphene websocket access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages