Documentation ¶
Index ¶
- func BuildScript(hash string, hashType types.ScriptHashType, args string) *types.Script
- func NewCollectAssetPayloadBuilder() *collectAssetPayloadBuilder
- func NewCreateAssetAccountPayloadBuilder() *createAssetAccountPayloadBuilder
- func NewGetBalancePayloadBuilder() *getBalancePayloadBuilder
- func NewGetGenericBlockPayloadBuilder() *getGenericBlockPayloadBuilder
- func NewQueryGenericTransactionsPayloadBuilder() *queryGenericTransactionsPayloadBuilder
- func NewTransferBuilder() *transferBuilder
- type CollectAssetPayload
- type CreateAssetAccountPayload
- type FromKeyAddresses
- type FromNormalAddresses
- type GetBalancePayload
- type GetGenericBlockPayload
- type KeyAddress
- type NormalAddress
- type QueryAddress
- type QueryGenericTransactionsPayload
- type SearchKeyBuilder
- func (builder *SearchKeyBuilder) AddArgsLen(argsLen uint)
- func (builder *SearchKeyBuilder) AddFilterBlockRange(inclusive, exclusive uint64)
- func (builder *SearchKeyBuilder) AddFilterOutputCapacityRange(inclusive, exclusive uint64)
- func (builder *SearchKeyBuilder) AddFilterOutputDataLenRange(inclusive, exclusive uint64)
- func (builder *SearchKeyBuilder) AddFilterScript(script *types.Script)
- func (builder *SearchKeyBuilder) AddScript(script *types.Script)
- func (builder *SearchKeyBuilder) AddScriptType(scriptType indexer.ScriptType)
- func (builder *SearchKeyBuilder) Build() *indexer.SearchKey
- type ToAddress
- type ToKeyAddress
- type ToNormalAddress
- type TransferItem
- type TransferPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildScript ¶ added in v0.43.0
func NewCollectAssetPayloadBuilder ¶ added in v0.43.0
func NewCollectAssetPayloadBuilder() *collectAssetPayloadBuilder
func NewCreateAssetAccountPayloadBuilder ¶ added in v0.43.1
func NewCreateAssetAccountPayloadBuilder() *createAssetAccountPayloadBuilder
func NewGetBalancePayloadBuilder ¶ added in v0.43.0
func NewGetBalancePayloadBuilder() *getBalancePayloadBuilder
func NewGetGenericBlockPayloadBuilder ¶ added in v0.43.0
func NewGetGenericBlockPayloadBuilder() *getGenericBlockPayloadBuilder
func NewQueryGenericTransactionsPayloadBuilder ¶ added in v0.43.0
func NewQueryGenericTransactionsPayloadBuilder() *queryGenericTransactionsPayloadBuilder
func NewTransferBuilder ¶ added in v0.43.0
func NewTransferBuilder() *transferBuilder
Types ¶
type CollectAssetPayload ¶ added in v0.43.0
type CreateAssetAccountPayload ¶ added in v0.43.0
type FromKeyAddresses ¶ added in v0.43.0
type FromKeyAddresses struct {
KeyAddresses *keyAddresses `json:"key_addresses"`
}
type FromNormalAddresses ¶ added in v0.43.0
type FromNormalAddresses struct {
NormalAddresses []string `json:"normal_addresses"`
}
type GetBalancePayload ¶ added in v0.43.0
type GetBalancePayload struct { UdtHashes []interface{} `json:"udt_hashes"` BlockNum uint `json:"block_num,omitempty"` Address QueryAddress `json:"address"` }
type GetGenericBlockPayload ¶ added in v0.43.0
type KeyAddress ¶ added in v0.43.0
type KeyAddress struct {
KeyAddress string
}
Only addresses in secp256k1 format are available, and the balance contains the balance of addresses in other formats.
func (*KeyAddress) GetAddress ¶ added in v0.43.0
func (addr *KeyAddress) GetAddress() string
type NormalAddress ¶ added in v0.43.0
type NormalAddress struct {
NormalAddress string
}
Only the balance of the address in the corresponding format is available. For example, the secp256k1 address will only query the balance of the secp256k1 format, and will not contain the balance of the remaining formats.
func (*NormalAddress) GetAddress ¶ added in v0.43.0
func (addr *NormalAddress) GetAddress() string
type QueryAddress ¶ added in v0.43.0
type QueryAddress interface {
GetAddress() string
}
type QueryGenericTransactionsPayload ¶ added in v0.43.0
type QueryGenericTransactionsPayload struct { Address QueryAddress `json:"address"` UdtHashes []interface{} `json:"udt_hashes"` FromBlock uint64 `json:"from_block,omitempty"` ToBlock uint64 `json:"to_block,omitempty"` Limit uint64 `json:"limit,omitempty"` Offset uint64 `json:"offset,omitempty"` Order string `json:"order,omitempty"` }
type SearchKeyBuilder ¶ added in v0.43.0
type SearchKeyBuilder struct { Script *types.Script ScriptType indexer.ScriptType ArgsLen uint Filter *indexer.CellsFilter }
func (*SearchKeyBuilder) AddArgsLen ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddArgsLen(argsLen uint)
func (*SearchKeyBuilder) AddFilterBlockRange ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddFilterBlockRange(inclusive, exclusive uint64)
func (*SearchKeyBuilder) AddFilterOutputCapacityRange ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddFilterOutputCapacityRange(inclusive, exclusive uint64)
func (*SearchKeyBuilder) AddFilterOutputDataLenRange ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddFilterOutputDataLenRange(inclusive, exclusive uint64)
func (*SearchKeyBuilder) AddFilterScript ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddFilterScript(script *types.Script)
func (*SearchKeyBuilder) AddScript ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddScript(script *types.Script)
func (*SearchKeyBuilder) AddScriptType ¶ added in v0.43.0
func (builder *SearchKeyBuilder) AddScriptType(scriptType indexer.ScriptType)
func (*SearchKeyBuilder) Build ¶ added in v0.43.0
func (builder *SearchKeyBuilder) Build() *indexer.SearchKey
type ToKeyAddress ¶ added in v0.43.0
type ToKeyAddress struct {
KeyAddress *keyAddress `json:"key_address"`
}
func (*ToKeyAddress) IsPayBayFrom ¶ added in v0.43.0
func (address *ToKeyAddress) IsPayBayFrom() bool
type ToNormalAddress ¶ added in v0.43.0
type ToNormalAddress struct {
NormalAddress string `json:"normal_address"`
}
func (*ToNormalAddress) IsPayBayFrom ¶ added in v0.43.0
func (address *ToNormalAddress) IsPayBayFrom() bool
type TransferItem ¶
type TransferPayload ¶
type TransferPayload struct { UdtHash string `json:"udt_hash,omitempty"` From interface{} `json:"from"` Items []*TransferItem `json:"items"` Change string `json:"change,omitempty"` FeeRate uint `json:"fee_rate"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.