Categorygithub.com/qlcchain/qlc-go-sdk
modulepackage
1.5.0
Repository: https://github.com/qlcchain/qlc-go-sdk.git
Documentation: pkg.go.dev

# README

QLC Chain Golang SDK

Actions Status codecov GoDoc

QLC Chain Golang API

Example

func main() {
    //client, err := qlcchain.NewQLCClient("http://127.0.0.1:19735")
    client, err := qlcchain.NewQLCClient("ws://127.0.0.1:19736")
    if err != nil || client == nil {
        fmt.Println(err)
        return
    }

    addr, err := client.Ledger.Accounts(20, 0)
    if err != nil {
        fmt.Println(err)
        return
    }

    for idx, val := range addr {
        fmt.Println(idx, "==>", val.String())
    }

    fmt.Println(client.Version())

    // Output:
    // 0 ==> qlc_13117gep55b5xpa7nbaz71s1ykz36bfqc6bieyzycif3ceykg4dtsmo19867
    // 1 ==> qlc_14hshh15cduhhgcus9oqcbptw1qa3iwma4nujow3cuow5ni4df16gtirkb35
    // 2 ==> qlc_18mbwzt7kjks1ydzk53hw6xropyz3mb4dgwq75tyzy4pcuc4mso1635mfdfz
    // 3 ==> qlc_1b1dm6g17a5xrb8wtkas6pn4xz4m6uiq4nahxckhrob876t4oh8scawbhx8s
    // 4 ==> qlc_1dzyqpd7h8ag9mamthxq695s38f71i8icjm6yn7y98rinasukhcb9tkbaqx9
    // 5 ==> qlc_1gnggt8b6cwro3b4z9gootipykqd6x5gucfd7exsi4xqkryiijciegfhon4u
    // 6 ==> qlc_1kk5xst583y8hpn9c48ruizs5cxprdeptw6s5wm6ezz6i1h5srpz3mnjgxao
    // 7 ==> qlc_1mnw9gbzdaxz7sz18pyjcffiqaocxnunfdtu1u3fc4wjkib97rp1wcdw6ato
    // 8 ==> qlc_1p11fp649uuan5ib9rpprd1dad3ue9qcqban1y8kwagdu56eea44nhq8do8o
    // 9 ==> qlc_1pr8ojutnibmj4ej5aptng546hnqc4webd89tb4b31jz4tyqqots5ne6p553
    // 10 ==> qlc_1s6rb1wr74r747b8k6wx6m8swgppef46ccnixy1zgtejhfosxaro15x1s8ab
    // 11 ==> qlc_1u1d7mgo8hq5nad8jwesw6azfk53a31ge5minwxdfk8t1fqknypqgk8mi3z7
    // 12 ==> qlc_1wyei6waj76k4b38prdubc19sr8dync5pz996cwufiy8ksxz6oshudred7q6
    // 13 ==> qlc_1zbo3axuh166w4tno77hqye3n1nx5kehzhn8z71xixig7b5ggfxfyfi7f3er
    // 14 ==> qlc_34yujh9i5kewnoqjs1s1fyj67u5tkifew4bc1gec4ftwktwgzbhkpjc7t4ge
    // 15 ==> qlc_35ejpaokgu514segi1frsiekhpepbznhybe737qq1peczn4yb9hyic9uipbe
    // 16 ==> qlc_361j3uiqdkjrzirttrpu9pn7eeussymty4rz4gifs9ijdx1p46xnpu3je7sy
    // 17 ==> qlc_38um9p7z54koeu84cqsgmtjhdnf99jrkyzmh1rnky98wmt46ogboedahnsda
    // 18 ==> qlc_3947hepb6ipq1m8b1jdbi6h7te3epqiakeb1j59ppwmi7wnj5optopsdgo5g
    // 19 ==> qlc_39grwmri6nwwdfyjqpyumexm4px758ssg7njonfk8qqaxyrhn6kqjocn8scy
}

License

MIT Copyright (c) 2019 QLC Chain

# Packages

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

# Functions

AssetStatusNames returns a list of possible string values of AssetStatus.
ContractStatusNames returns a list of possible string values of ContractStatus.
DLRStatusNames returns a list of possible string values of DLRStatus.
DoDSettleBillingTypeNames returns a list of possible string values of DoDSettleBillingType.
DoDSettleBillingUnitNames returns a list of possible string values of DoDSettleBillingUnit.
DoDSettleContractStateNames returns a list of possible string values of DoDSettleContractState.
DoDSettleOrderStateNames returns a list of possible string values of DoDSettleOrderState.
DoDSettleOrderTypeNames returns a list of possible string values of DoDSettleOrderType.
DoDSettlePaymentTypeNames returns a list of possible string values of DoDSettlePaymentType.
DoDSettleResponseActionNames returns a list of possible string values of DoDSettleResponseAction.
DoDSettleServiceClassNames returns a list of possible string values of DoDSettleServiceClass.
NewAccountAPI creates account module for client.
NewContractAPI creates contract module for client.
No description provided by the author
NewDestroyAPI creates destroy module for client.
No description provided by the author
No description provided by the author
NewLedgerAPI creates ledger module for client.
NewMinerAPI creates miner module for client.
NewMintageAPI creates mintage module for client.
NewNetAPI creates net module for client.
NewPledgeAPI creates pledge module for client.
NewPovAPI creates pov module for client.
NewPrivacyAPI creates privacy module for client.
QGasSwapApi creates QGasSwap module for client.
NewQLCClient creates a new client.
NewRepAPI creates representative module for client.
NewRewardAPI creates reward module for client.
No description provided by the author
No description provided by the author
NewUtilAPI creates unit module for client.
ParseAssetStatus attempts to convert a string to a AssetStatus.
ParseContractStatus attempts to convert a string to a ContractStatus.
ParseDLRStatus attempts to convert a string to a DLRStatus.
ParseDoDSettleBillingType attempts to convert a string to a DoDSettleBillingType.
ParseDoDSettleBillingUnit attempts to convert a string to a DoDSettleBillingUnit.
ParseDoDSettleContractState attempts to convert a string to a DoDSettleContractState.
ParseDoDSettleOrderState attempts to convert a string to a DoDSettleOrderState.
ParseDoDSettleOrderType attempts to convert a string to a DoDSettleOrderType.
ParseDoDSettlePaymentType attempts to convert a string to a DoDSettlePaymentType.
ParseDoDSettleResponseAction attempts to convert a string to a DoDSettleResponseAction.
ParseDoDSettleServiceClass attempts to convert a string to a DoDSettleServiceClass.
ParseSendingStatus attempts to convert a string to a SendingStatus.
ParseSettlementStatus attempts to convert a string to a SettlementStatus.
ParseSLAType attempts to convert a string to a SLAType.
SendingStatusNames returns a list of possible string values of SendingStatus.
SettlementStatusNames returns a list of possible string values of SettlementStatus.
No description provided by the author
SLATypeNames returns a list of possible string values of SLAType.

# Constants

AssetStatusActivated is a AssetStatus of type Activated.
AssetStatusDeactivated is a AssetStatus of type Deactivated.
No description provided by the author
ContractStatusActivated is a ContractStatus of type Activated.
ContractStatusActiveStage1 is a ContractStatus of type ActiveStage1.
ContractStatusDestroyed is a ContractStatus of type Destroyed.
ContractStatusDestroyStage1 is a ContractStatus of type DestroyStage1.
ContractStatusRejected is a ContractStatus of type Rejected.
DLRStatusDelivered is a DLRStatus of type Delivered.
DLRStatusEmpty is a DLRStatus of type Empty.
DLRStatusRejected is a DLRStatus of type Rejected.
DLRStatusUndelivered is a DLRStatus of type Undelivered.
DLRStatusUnknown is a DLRStatus of type Unknown.
DoDSettleBillingTypeDOD is a DoDSettleBillingType of type DOD.
DoDSettleBillingTypeNull is a DoDSettleBillingType of type Null.
DoDSettleBillingTypePAYG is a DoDSettleBillingType of type PAYG.
DoDSettleBillingUnitDay is a DoDSettleBillingUnit of type Day.
DoDSettleBillingUnitHour is a DoDSettleBillingUnit of type Hour.
DoDSettleBillingUnitMinute is a DoDSettleBillingUnit of type Minute.
DoDSettleBillingUnitMonth is a DoDSettleBillingUnit of type Month.
DoDSettleBillingUnitNull is a DoDSettleBillingUnit of type Null.
DoDSettleBillingUnitSecond is a DoDSettleBillingUnit of type Second.
DoDSettleBillingUnitWeek is a DoDSettleBillingUnit of type Week.
DoDSettleBillingUnitYear is a DoDSettleBillingUnit of type Year.
DoDSettleContractStateConfirmed is a DoDSettleContractState of type Confirmed.
DoDSettleContractStateNull is a DoDSettleContractState of type Null.
DoDSettleContractStateRejected is a DoDSettleContractState of type Rejected.
DoDSettleContractStateRequest is a DoDSettleContractState of type Request.
DoDSettleOrderStateComplete is a DoDSettleOrderState of type Complete.
DoDSettleOrderStateFail is a DoDSettleOrderState of type Fail.
DoDSettleOrderStateNull is a DoDSettleOrderState of type Null.
DoDSettleOrderStateSuccess is a DoDSettleOrderState of type Success.
DoDSettleOrderTypeChange is a DoDSettleOrderType of type Change.
DoDSettleOrderTypeCreate is a DoDSettleOrderType of type Create.
DoDSettleOrderTypeNull is a DoDSettleOrderType of type Null.
DoDSettleOrderTypeTerminate is a DoDSettleOrderType of type Terminate.
DoDSettlePaymentTypeInvoice is a DoDSettlePaymentType of type Invoice.
DoDSettlePaymentTypeNull is a DoDSettlePaymentType of type Null.
DoDSettlePaymentTypeStableCoin is a DoDSettlePaymentType of type StableCoin.
DoDSettleResponseActionConfirm is a DoDSettleResponseAction of type Confirm.
DoDSettleResponseActionNull is a DoDSettleResponseAction of type Null.
DoDSettleResponseActionReject is a DoDSettleResponseAction of type Reject.
DoDSettleServiceClassBronze is a DoDSettleServiceClass of type Bronze.
DoDSettleServiceClassGold is a DoDSettleServiceClass of type Gold.
DoDSettleServiceClassNull is a DoDSettleServiceClass of type Null.
DoDSettleServiceClassSilver is a DoDSettleServiceClass of type Silver.
No description provided by the author
SendingStatusEmpty is a SendingStatus of type Empty.
SendingStatusError is a SendingStatus of type Error.
SendingStatusSent is a SendingStatus of type Sent.
SettlementStatusDuplicate is a SettlementStatus of type Duplicate.
SettlementStatusFailure is a SettlementStatus of type Failure.
SettlementStatusMissing is a SettlementStatus of type Missing.
SettlementStatusStage1 is a SettlementStatus of type Stage1.
SettlementStatusSuccess is a SettlementStatus of type Success.
SettlementStatusUnknown is a SettlementStatus of type Unknown.
SLATypeDeliveredRate is a SLAType of type DeliveredRate.
SLATypeLatency is a SLAType of type Latency.
No description provided by the author

# Structs

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
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
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
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
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
go:generate msgp.
No description provided by the author
need to split the params according to different services.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null PAYG DOD ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null year month week day hour minute second ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null request confirmed rejected ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null success complete fail ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null create change terminate ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null invoice stableCoin ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null confirm reject ) */.
go:generate go-enum -f=$GOFILE --marshal --names ENUM( null gold silver bronze ) */.
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