rpc

package
v0.0.0-...-45f22e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainAbiBinToJSON

func ChainAbiBinToJSON(abi *model.Abi) (*model.Abi, *errors.AppError)

func ChainAbiJSONToBin

func ChainAbiJSONToBin(abiJSON *model.AbiJSON) (*model.Abi, *errors.AppError)

func ChainGetAccount

func ChainGetAccount(accountName string) (*model.Account, *errors.AppError)

func ChainGetBlock

func ChainGetBlock(blockNumOrId string) (*model.Block, *errors.AppError)

func ChainGetCode

func ChainGetCode(accountName string) (*model.Code, *errors.AppError)

func ChainGetInfo

func ChainGetInfo() (*model.ChainInfo, *errors.AppError)

func ChainGetRequiredKeys

func ChainGetRequiredKeys(trx *model.Transaction) ([]string, *errors.AppError)

func ChainGetTableRows

func ChainGetTableRows(scope string, code string, table string, toJSON bool, lowerBound int, upperBound int, limit int) (*model.TableRows, *errors.AppError)

func ChainPushTransaction

func ChainPushTransaction(trx model.Transaction, pubKeys []string, chainId string) (*model.Transaction, *errors.AppError)

func ContractNewAccount

func ContractNewAccount(creator string, accountName string, ownerKey string, activeKey string, recoveryKey string) (*model.Transaction, *errors.AppError)

func WalletCreate

func WalletCreate(name string) (string, *errors.AppError)

func WalletCreateKey

func WalletCreateKey(name string, privKey string) *errors.AppError

func WalletGetPublicKeys

func WalletGetPublicKeys() ([]string, *errors.AppError)

func WalletImportKey

func WalletImportKey(name string, privKey string) *errors.AppError

func WalletList

func WalletList() ([]string, []string, *errors.AppError)

return array of opened wallets, array of closed wallets

func WalletListKeys

func WalletListKeys() ([][]string, *errors.AppError)

func WalletLock

func WalletLock(name string) *errors.AppError

func WalletLockAll

func WalletLockAll() *errors.AppError

func WalletOpen

func WalletOpen(name string) *errors.AppError

func WalletSetTimeout

func WalletSetTimeout(seconds int64) *errors.AppError

func WalletSignTransaction

func WalletSignTransaction(trx model.Transaction, pubKeys []string, chainId string) (*model.Transaction, *errors.AppError)

func WalletUnlock

func WalletUnlock(name string, privKey string) *errors.AppError

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL