Documentation ¶
Index ¶
- func GetRPCIns() *rpcclient.Client
- type AddressBalance
- type BurnBCH
- type ChallengeVO
- type ChangeIssuer
- type CloseCrowdSale
- type CrowdSaleIssuance
- type FeeRate
- type FixedIssuance
- type FreezeToken
- type ManagedIssuance
- type MfaVO
- type ParticipateCrowdSale
- type SendAll
- type SendGrant
- type SendRevoke
- type SendSto
- type SimpleSendTx
- type UserTx
- type Version
- type WalletCreateParam
- type WalletLoginParam
- type WalletUpdateParam
- type WalletVO
- type WalletVerifyParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressBalance ¶
type BurnBCH ¶
type BurnBCH struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` Amount float64 `form:"amount_for_burn" binding:"min=1,max=21000000,required"` RedeemAddress *string `form:"redeem_address" binding:"-"` }
tx type: 68
type ChallengeVO ¶
type ChallengeVO struct { Salt string `json:"salt"` PowChallenge string `json:"pow_challenge"` Challenge string `json:"challenge"` }
* Define Value Object,use by *VO
type ChangeIssuer ¶
type ChangeIssuer struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` To string `form:"transaction_to" binding:"required"` CID int64 `form:"currency_identifier" binding:"gte=1,required"` }
tx type: 70
type CloseCrowdSale ¶
type CloseCrowdSale struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` CID int64 `form:"currency_identifier" binding:"gte=1,required"` }
tx type: 53
type CrowdSaleIssuance ¶
type CrowdSaleIssuance struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` Eco int64 `form:"ecosystem" binding:"eq=1,required"` Precision int64 `form:"precision" binding:"max=8"` PrevPID int64 `form:"previous_property_id" binding:"eq=0"` Category string `form:"property_category" binding:"required"` SubCategory string `form:"property_subcategory" binding:"required"` Name string `form:"property_name" binding:"required"` Url string `form:"property_url" binding:"url,required"` Data string `form:"property_data" binding:"required"` DesiredPID int64 `form:"currency_identifier_desired" binding:"eq=1,required"` Exchange string `form:"number_properties" binding:"gt=0,required"` DeadLine int64 `form:"deadline" binding:"required"` EarlyBird int64 `form:"earlybird_bonus" binding:"min=0,max=255"` TotalNumber string `form:"total_number" binding:"gt=0,required"` }
tx type: 51
type FixedIssuance ¶
type FixedIssuance struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` Eco int64 `form:"ecosystem" binding:"eq=1,required"` Precision int64 `form:"precision" binding:"max=8"` PrevPID int64 `form:"previous_property_id" binding:"eq=0"` Category string `form:"property_category" binding:"required"` SubCategory string `form:"property_subcategory" binding:"required"` Name string `form:"property_name" binding:"required"` Url string `form:"property_url" binding:"url,required"` Data string `form:"property_data" binding:"required"` TotalNumber string `form:"number_properties" binding:"gt=0,required"` }
tx type: 50
type FreezeToken ¶
type ManagedIssuance ¶
type ManagedIssuance struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` Eco int64 `form:"ecosystem" binding:"eq=1,required"` Precision int64 `form:"precision" binding:"max=8"` PrevPID int64 `form:"previous_property_id"` Category string `form:"property_category" binding:"required"` SubCategory string `form:"property_subcategory" binding:"required"` Name string `form:"property_name" binding:"required"` Url string `form:"property_url" binding:"url,required"` Data string `form:"property_data" binding:"required"` }
tx type: 54
type ParticipateCrowdSale ¶
type ParticipateCrowdSale struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` To string `form:"transaction_to" binding:"required"` Amount float64 `form:"amount_to_transfer" binding:"gt=0,required"` RedeemAddress *string `form:"redeem_address" binding:"-"` ReferenceAmount *float64 `form:"reference_amount"` }
tx type: 1
type SendAll ¶
type SendAll struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` To string `form:"transaction_to" binding:"required"` Eco int64 `form:"ecosystem" binding:"eq=1,required"` RedeemAddress *string `form:"redeem_address"` ReferenceAmount *float64 `form:"reference_amount"` }
tx type: 4
type SendGrant ¶
type SendGrant struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` CID int64 `form:"currency_identifier" binding:"gte=1,required"` Amount float64 `form:"amount" binding:"gt=0,required"` Note *string `form:"note" binding:"-"` }
tx type: 55
type SendRevoke ¶
type SendRevoke struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` CID int64 `form:"currency_identifier" binding:"gte=1,required"` Amount float64 `form:"amount" binding:"gt=0,required"` Note *string `form:"note" binding:"-"` }
tx type: 56
type SendSto ¶
type SendSto struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` PID int64 `form:"propertyid" binding:"gte=1,required"` Amount float64 `form:"amount" binding:"gt=0,required"` RedeemAddress *string `form:"redeem_address" binding:"-"` DisPID *int64 `form:"distributionproperty"` }
tx type: 3
type SimpleSendTx ¶
type SimpleSendTx struct { TxVersion string `form:"transaction_version" binding:"required"` PubKey *string `form:"pubkey" binding:"-"` Fee float64 `form:"fee" binding:"gte=0.00001,required"` From string `form:"transaction_from" binding:"required"` To string `form:"transaction_to" binding:"required"` CID int64 `form:"currency_identifier" binding:"gte=1,required"` Amount float64 `form:"amount_to_transfer" binding:"gt=0,required"` RedeemAddress *string `form:"redeem_address" binding:"-"` ReferenceAmount *float64 `form:"reference_amount"` }
tx type: 0
type WalletCreateParam ¶
type WalletCreateParam struct { Email string `form:"email" binding:"required"` Nonce string `form:"nonce" binding:"required"` PublicKey string `form:"public_key" binding:"required"` Uuid string `form:"uuid" binding:"required"` Wallet string `form:"wallet" binding:"required"` RecaptchaResp string `form:"recaptcha_response_field"` }
type WalletLoginParam ¶
type WalletUpdateParam ¶
type WalletUpdateParam struct { Uuid string `form:"uuid" binding:"required"` Wallet string `form:"wallet"` Signature string `form:"signature" binding:"required"` Email string `form:"email"` //about MFA MfaSecret string `form:"mfa_secret"` MfaToken string `form:"mfa_token"` MfaAction string `form:"mfa_action"` Question string `form:"question"` Answer string `form:"answer"` }
type WalletVerifyParam ¶
Click to show internal directories.
Click to hide internal directories.