package
1.0.0
Repository: https://github.com/youchainhq/go-youchain.git
Documentation: pkg.go.dev

# README

Yeth Apis

public native byte[] call(String api, byte[] params) throws Exception public native String createAccount(String passphrase) public native Account find(byte[] address) throws Exception public native Account importECDSAKey(byte[] key, String passphrase) throws Exception public native String importKeyJson(byte[] keyJson, String passphrase, String newPassphrase) throws Exception public native void lock(Address address) throws Exception public native byte[] sendTransaction(Account account, Transaction tx) throws Exception public native byte[] sendTransactionWithPassphrase(Account account, String passphrase, Transaction tx) throws Exception public native byte[] sendTransactions(Account account, Transactions txs) throws Exception public native byte[] sendTransactionsWithPassphrase(Account account, String passphrase, Transactions txs) throws Exception public native void timedUnlock(Account account, String passphrase, long timeout) throws Exception public native void unlock(Account account, String passphrase) throws Exception public native void updateAccount(Account account, String passphrase, String newPassphrase) throws Exception

yeth, _ := NewYeth(nil)
var address string = yeth.CreateAccount("111111")
var account Account := yeth.find(address)
tx := new Transaction(nonce, toAddress, amount, long gasLimit, BigInt gasPrice, byte[] data)
yeth.sendTransactionWithPassphrase(account, "111111", tx)

changelog

0917

  1. Find(address *Address)接口修改参数类型 string -> *Address
  2. GetBalance(address *Address) 参数类型 string -> *Address
  3. NewAddress(address string) (*Address, error) 增加返回错误信息

# Functions

No description provided by the author
NewBigInt allocates and returns a new BigInt set to x.
NewConfig creates a new node option set, initialized to the default values.
NewTransaction creates a new transaction with the given properties.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Address represents the 20 byte address of an Ethereum account.
A BigInt represents a signed multi-precision integer.
BigInts represents a slice of big ints.
No description provided by the author
{"jsonrpc":"2.0","id":2,"result":0}.
Transaction represents a single transaction.
No description provided by the author
No description provided by the author