client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AccStatusChange

type AccStatusChange string

Ref: #/components/schemas/AccStatusChange

const (
	AccStatusChangeAcstUnchanged AccStatusChange = "acst_unchanged"
	AccStatusChangeAcstFrozen    AccStatusChange = "acst_frozen"
	AccStatusChangeAcstDeleted   AccStatusChange = "acst_deleted"
)

func (*AccStatusChange) Decode

func (s *AccStatusChange) Decode(d *jx.Decoder) error

Decode decodes AccStatusChange from json.

func (AccStatusChange) Encode

func (s AccStatusChange) Encode(e *jx.Encoder)

Encode encodes AccStatusChange as json.

func (AccStatusChange) MarshalJSON

func (s AccStatusChange) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AccStatusChange) MarshalText

func (s AccStatusChange) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AccStatusChange) UnmarshalJSON

func (s *AccStatusChange) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AccStatusChange) UnmarshalText

func (s *AccStatusChange) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AccStatusChange) Validate

func (s AccStatusChange) Validate() error

type Account

type Account struct {
	Address string `json:"address"`
	Balance int64  `json:"balance"`
	// Unix timestamp.
	LastActivity int64     `json:"last_activity"`
	Status       string    `json:"status"`
	Interfaces   []string  `json:"interfaces"`
	Name         OptString `json:"name"`
	IsScam       OptBool   `json:"is_scam"`
	Icon         OptString `json:"icon"`
	MemoRequired OptBool   `json:"memo_required"`
	GetMethods   []string  `json:"get_methods"`
	IsSuspended  OptBool   `json:"is_suspended"`
}

Ref: #/components/schemas/Account

func (*Account) Decode

func (s *Account) Decode(d *jx.Decoder) error

Decode decodes Account from json.

func (*Account) Encode

func (s *Account) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Account) GetAddress

func (s *Account) GetAddress() string

GetAddress returns the value of Address.

func (*Account) GetBalance

func (s *Account) GetBalance() int64

GetBalance returns the value of Balance.

func (*Account) GetGetMethods

func (s *Account) GetGetMethods() []string

GetGetMethods returns the value of GetMethods.

func (*Account) GetIcon

func (s *Account) GetIcon() OptString

GetIcon returns the value of Icon.

func (*Account) GetInterfaces

func (s *Account) GetInterfaces() []string

GetInterfaces returns the value of Interfaces.

func (*Account) GetIsScam

func (s *Account) GetIsScam() OptBool

GetIsScam returns the value of IsScam.

func (*Account) GetIsSuspended

func (s *Account) GetIsSuspended() OptBool

GetIsSuspended returns the value of IsSuspended.

func (*Account) GetLastActivity

func (s *Account) GetLastActivity() int64

GetLastActivity returns the value of LastActivity.

func (*Account) GetMemoRequired

func (s *Account) GetMemoRequired() OptBool

GetMemoRequired returns the value of MemoRequired.

func (*Account) GetName

func (s *Account) GetName() OptString

GetName returns the value of Name.

func (*Account) GetStatus

func (s *Account) GetStatus() string

GetStatus returns the value of Status.

func (*Account) MarshalJSON

func (s *Account) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Account) SetAddress

func (s *Account) SetAddress(val string)

SetAddress sets the value of Address.

func (*Account) SetBalance

func (s *Account) SetBalance(val int64)

SetBalance sets the value of Balance.

func (*Account) SetGetMethods

func (s *Account) SetGetMethods(val []string)

SetGetMethods sets the value of GetMethods.

func (*Account) SetIcon

func (s *Account) SetIcon(val OptString)

SetIcon sets the value of Icon.

func (*Account) SetInterfaces

func (s *Account) SetInterfaces(val []string)

SetInterfaces sets the value of Interfaces.

func (*Account) SetIsScam

func (s *Account) SetIsScam(val OptBool)

SetIsScam sets the value of IsScam.

func (*Account) SetIsSuspended

func (s *Account) SetIsSuspended(val OptBool)

SetIsSuspended sets the value of IsSuspended.

func (*Account) SetLastActivity

func (s *Account) SetLastActivity(val int64)

SetLastActivity sets the value of LastActivity.

func (*Account) SetMemoRequired

func (s *Account) SetMemoRequired(val OptBool)

SetMemoRequired sets the value of MemoRequired.

func (*Account) SetName

func (s *Account) SetName(val OptString)

SetName sets the value of Name.

func (*Account) SetStatus

func (s *Account) SetStatus(val string)

SetStatus sets the value of Status.

func (*Account) UnmarshalJSON

func (s *Account) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Account) Validate

func (s *Account) Validate() error

type AccountAddress

type AccountAddress struct {
	Address string `json:"address"`
	// Display name. Data collected from different sources like moderation lists, dns, collections names
	// and over.
	Name OptString `json:"name"`
	// Is this account was marked as part of scammers activity.
	IsScam bool      `json:"is_scam"`
	Icon   OptString `json:"icon"`
}

Ref: #/components/schemas/AccountAddress

func (*AccountAddress) Decode

func (s *AccountAddress) Decode(d *jx.Decoder) error

Decode decodes AccountAddress from json.

func (*AccountAddress) Encode

func (s *AccountAddress) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountAddress) GetAddress

func (s *AccountAddress) GetAddress() string

GetAddress returns the value of Address.

func (*AccountAddress) GetIcon

func (s *AccountAddress) GetIcon() OptString

GetIcon returns the value of Icon.

func (*AccountAddress) GetIsScam

func (s *AccountAddress) GetIsScam() bool

GetIsScam returns the value of IsScam.

func (*AccountAddress) GetName

func (s *AccountAddress) GetName() OptString

GetName returns the value of Name.

func (*AccountAddress) MarshalJSON

func (s *AccountAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountAddress) SetAddress

func (s *AccountAddress) SetAddress(val string)

SetAddress sets the value of Address.

func (*AccountAddress) SetIcon

func (s *AccountAddress) SetIcon(val OptString)

SetIcon sets the value of Icon.

func (*AccountAddress) SetIsScam

func (s *AccountAddress) SetIsScam(val bool)

SetIsScam sets the value of IsScam.

func (*AccountAddress) SetName

func (s *AccountAddress) SetName(val OptString)

SetName sets the value of Name.

func (*AccountAddress) UnmarshalJSON

func (s *AccountAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AccountDnsBackResolveParams

type AccountDnsBackResolveParams struct {
	// Account ID.
	AccountID string
}

AccountDnsBackResolveParams is parameters of accountDnsBackResolve operation.

type AccountEvent

type AccountEvent struct {
	EventID   string         `json:"event_id"`
	Account   AccountAddress `json:"account"`
	Timestamp int64          `json:"timestamp"`
	Actions   []Action       `json:"actions"`
	// Scam.
	IsScam bool  `json:"is_scam"`
	Lt     int64 `json:"lt"`
	// Event is not finished yet. Transactions still happening.
	InProgress bool `json:"in_progress"`
	// TODO.
	Extra int64 `json:"extra"`
}

An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time. Ref: #/components/schemas/AccountEvent

func (*AccountEvent) Decode

func (s *AccountEvent) Decode(d *jx.Decoder) error

Decode decodes AccountEvent from json.

func (*AccountEvent) Encode

func (s *AccountEvent) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountEvent) GetAccount

func (s *AccountEvent) GetAccount() AccountAddress

GetAccount returns the value of Account.

func (*AccountEvent) GetActions

func (s *AccountEvent) GetActions() []Action

GetActions returns the value of Actions.

func (*AccountEvent) GetEventID

func (s *AccountEvent) GetEventID() string

GetEventID returns the value of EventID.

func (*AccountEvent) GetExtra

func (s *AccountEvent) GetExtra() int64

GetExtra returns the value of Extra.

func (*AccountEvent) GetInProgress

func (s *AccountEvent) GetInProgress() bool

GetInProgress returns the value of InProgress.

func (*AccountEvent) GetIsScam

func (s *AccountEvent) GetIsScam() bool

GetIsScam returns the value of IsScam.

func (*AccountEvent) GetLt

func (s *AccountEvent) GetLt() int64

GetLt returns the value of Lt.

func (*AccountEvent) GetTimestamp

func (s *AccountEvent) GetTimestamp() int64

GetTimestamp returns the value of Timestamp.

func (*AccountEvent) MarshalJSON

func (s *AccountEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountEvent) SetAccount

func (s *AccountEvent) SetAccount(val AccountAddress)

SetAccount sets the value of Account.

func (*AccountEvent) SetActions

func (s *AccountEvent) SetActions(val []Action)

SetActions sets the value of Actions.

func (*AccountEvent) SetEventID

func (s *AccountEvent) SetEventID(val string)

SetEventID sets the value of EventID.

func (*AccountEvent) SetExtra

func (s *AccountEvent) SetExtra(val int64)

SetExtra sets the value of Extra.

func (*AccountEvent) SetInProgress

func (s *AccountEvent) SetInProgress(val bool)

SetInProgress sets the value of InProgress.

func (*AccountEvent) SetIsScam

func (s *AccountEvent) SetIsScam(val bool)

SetIsScam sets the value of IsScam.

func (*AccountEvent) SetLt

func (s *AccountEvent) SetLt(val int64)

SetLt sets the value of Lt.

func (*AccountEvent) SetTimestamp

func (s *AccountEvent) SetTimestamp(val int64)

SetTimestamp sets the value of Timestamp.

func (*AccountEvent) UnmarshalJSON

func (s *AccountEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AccountEvent) Validate

func (s *AccountEvent) Validate() error

type AccountEvents

type AccountEvents struct {
	Events   []AccountEvent `json:"events"`
	NextFrom int64          `json:"next_from"`
}

Ref: #/components/schemas/AccountEvents

func (*AccountEvents) Decode

func (s *AccountEvents) Decode(d *jx.Decoder) error

Decode decodes AccountEvents from json.

func (*AccountEvents) Encode

func (s *AccountEvents) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountEvents) GetEvents

func (s *AccountEvents) GetEvents() []AccountEvent

GetEvents returns the value of Events.

func (*AccountEvents) GetNextFrom

func (s *AccountEvents) GetNextFrom() int64

GetNextFrom returns the value of NextFrom.

func (*AccountEvents) MarshalJSON

func (s *AccountEvents) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountEvents) SetEvents

func (s *AccountEvents) SetEvents(val []AccountEvent)

SetEvents sets the value of Events.

func (*AccountEvents) SetNextFrom

func (s *AccountEvents) SetNextFrom(val int64)

SetNextFrom sets the value of NextFrom.

func (*AccountEvents) UnmarshalJSON

func (s *AccountEvents) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AccountEvents) Validate

func (s *AccountEvents) Validate() error

type AccountInfoByStateInit

type AccountInfoByStateInit struct {
	PublicKey string `json:"public_key"`
	Address   string `json:"address"`
}

Ref: #/components/schemas/AccountInfoByStateInit

func (*AccountInfoByStateInit) Decode

func (s *AccountInfoByStateInit) Decode(d *jx.Decoder) error

Decode decodes AccountInfoByStateInit from json.

func (*AccountInfoByStateInit) Encode

func (s *AccountInfoByStateInit) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountInfoByStateInit) GetAddress

func (s *AccountInfoByStateInit) GetAddress() string

GetAddress returns the value of Address.

func (*AccountInfoByStateInit) GetPublicKey

func (s *AccountInfoByStateInit) GetPublicKey() string

GetPublicKey returns the value of PublicKey.

func (*AccountInfoByStateInit) MarshalJSON

func (s *AccountInfoByStateInit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountInfoByStateInit) SetAddress

func (s *AccountInfoByStateInit) SetAddress(val string)

SetAddress sets the value of Address.

func (*AccountInfoByStateInit) SetPublicKey

func (s *AccountInfoByStateInit) SetPublicKey(val string)

SetPublicKey sets the value of PublicKey.

func (*AccountInfoByStateInit) UnmarshalJSON

func (s *AccountInfoByStateInit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AccountStaking

type AccountStaking struct {
	Pools []AccountStakingInfo `json:"pools"`
}

Ref: #/components/schemas/AccountStaking

func (*AccountStaking) Decode

func (s *AccountStaking) Decode(d *jx.Decoder) error

Decode decodes AccountStaking from json.

func (*AccountStaking) Encode

func (s *AccountStaking) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountStaking) GetPools

func (s *AccountStaking) GetPools() []AccountStakingInfo

GetPools returns the value of Pools.

func (*AccountStaking) MarshalJSON

func (s *AccountStaking) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountStaking) SetPools

func (s *AccountStaking) SetPools(val []AccountStakingInfo)

SetPools sets the value of Pools.

func (*AccountStaking) UnmarshalJSON

func (s *AccountStaking) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AccountStaking) Validate

func (s *AccountStaking) Validate() error

type AccountStakingInfo

type AccountStakingInfo struct {
	Pool            string `json:"pool"`
	Amount          int64  `json:"amount"`
	PendingDeposit  int64  `json:"pending_deposit"`
	PendingWithdraw int64  `json:"pending_withdraw"`
	ReadyWithdraw   int64  `json:"ready_withdraw"`
}

Ref: #/components/schemas/AccountStakingInfo

func (*AccountStakingInfo) Decode

func (s *AccountStakingInfo) Decode(d *jx.Decoder) error

Decode decodes AccountStakingInfo from json.

func (*AccountStakingInfo) Encode

func (s *AccountStakingInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountStakingInfo) GetAmount

func (s *AccountStakingInfo) GetAmount() int64

GetAmount returns the value of Amount.

func (*AccountStakingInfo) GetPendingDeposit

func (s *AccountStakingInfo) GetPendingDeposit() int64

GetPendingDeposit returns the value of PendingDeposit.

func (*AccountStakingInfo) GetPendingWithdraw

func (s *AccountStakingInfo) GetPendingWithdraw() int64

GetPendingWithdraw returns the value of PendingWithdraw.

func (*AccountStakingInfo) GetPool

func (s *AccountStakingInfo) GetPool() string

GetPool returns the value of Pool.

func (*AccountStakingInfo) GetReadyWithdraw

func (s *AccountStakingInfo) GetReadyWithdraw() int64

GetReadyWithdraw returns the value of ReadyWithdraw.

func (*AccountStakingInfo) MarshalJSON

func (s *AccountStakingInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountStakingInfo) SetAmount

func (s *AccountStakingInfo) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*AccountStakingInfo) SetPendingDeposit

func (s *AccountStakingInfo) SetPendingDeposit(val int64)

SetPendingDeposit sets the value of PendingDeposit.

func (*AccountStakingInfo) SetPendingWithdraw

func (s *AccountStakingInfo) SetPendingWithdraw(val int64)

SetPendingWithdraw sets the value of PendingWithdraw.

func (*AccountStakingInfo) SetPool

func (s *AccountStakingInfo) SetPool(val string)

SetPool sets the value of Pool.

func (*AccountStakingInfo) SetReadyWithdraw

func (s *AccountStakingInfo) SetReadyWithdraw(val int64)

SetReadyWithdraw sets the value of ReadyWithdraw.

func (*AccountStakingInfo) UnmarshalJSON

func (s *AccountStakingInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AccountStatus

type AccountStatus string

Ref: #/components/schemas/AccountStatus

const (
	AccountStatusNonexist AccountStatus = "nonexist"
	AccountStatusUninit   AccountStatus = "uninit"
	AccountStatusActive   AccountStatus = "active"
	AccountStatusFrozen   AccountStatus = "frozen"
)

func (*AccountStatus) Decode

func (s *AccountStatus) Decode(d *jx.Decoder) error

Decode decodes AccountStatus from json.

func (AccountStatus) Encode

func (s AccountStatus) Encode(e *jx.Encoder)

Encode encodes AccountStatus as json.

func (AccountStatus) MarshalJSON

func (s AccountStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AccountStatus) MarshalText

func (s AccountStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AccountStatus) UnmarshalJSON

func (s *AccountStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AccountStatus) UnmarshalText

func (s *AccountStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AccountStatus) Validate

func (s AccountStatus) Validate() error

type AccountStorageInfo

type AccountStorageInfo struct {
	UsedCells       int64 `json:"used_cells"`
	UsedBits        int64 `json:"used_bits"`
	UsedPublicCells int64 `json:"used_public_cells"`
	LastPaid        int64 `json:"last_paid"`
	DuePayment      int64 `json:"due_payment"`
}

Ref: #/components/schemas/AccountStorageInfo

func (*AccountStorageInfo) Decode

func (s *AccountStorageInfo) Decode(d *jx.Decoder) error

Decode decodes AccountStorageInfo from json.

func (*AccountStorageInfo) Encode

func (s *AccountStorageInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountStorageInfo) GetDuePayment

func (s *AccountStorageInfo) GetDuePayment() int64

GetDuePayment returns the value of DuePayment.

func (*AccountStorageInfo) GetLastPaid

func (s *AccountStorageInfo) GetLastPaid() int64

GetLastPaid returns the value of LastPaid.

func (*AccountStorageInfo) GetUsedBits

func (s *AccountStorageInfo) GetUsedBits() int64

GetUsedBits returns the value of UsedBits.

func (*AccountStorageInfo) GetUsedCells

func (s *AccountStorageInfo) GetUsedCells() int64

GetUsedCells returns the value of UsedCells.

func (*AccountStorageInfo) GetUsedPublicCells

func (s *AccountStorageInfo) GetUsedPublicCells() int64

GetUsedPublicCells returns the value of UsedPublicCells.

func (*AccountStorageInfo) MarshalJSON

func (s *AccountStorageInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountStorageInfo) SetDuePayment

func (s *AccountStorageInfo) SetDuePayment(val int64)

SetDuePayment sets the value of DuePayment.

func (*AccountStorageInfo) SetLastPaid

func (s *AccountStorageInfo) SetLastPaid(val int64)

SetLastPaid sets the value of LastPaid.

func (*AccountStorageInfo) SetUsedBits

func (s *AccountStorageInfo) SetUsedBits(val int64)

SetUsedBits sets the value of UsedBits.

func (*AccountStorageInfo) SetUsedCells

func (s *AccountStorageInfo) SetUsedCells(val int64)

SetUsedCells sets the value of UsedCells.

func (*AccountStorageInfo) SetUsedPublicCells

func (s *AccountStorageInfo) SetUsedPublicCells(val int64)

SetUsedPublicCells sets the value of UsedPublicCells.

func (*AccountStorageInfo) UnmarshalJSON

func (s *AccountStorageInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Accounts

type Accounts struct {
	Accounts []Account `json:"accounts"`
}

Ref: #/components/schemas/Accounts

func (*Accounts) Decode

func (s *Accounts) Decode(d *jx.Decoder) error

Decode decodes Accounts from json.

func (*Accounts) Encode

func (s *Accounts) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Accounts) GetAccounts

func (s *Accounts) GetAccounts() []Account

GetAccounts returns the value of Accounts.

func (*Accounts) MarshalJSON

func (s *Accounts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Accounts) SetAccounts

func (s *Accounts) SetAccounts(val []Account)

SetAccounts sets the value of Accounts.

func (*Accounts) UnmarshalJSON

func (s *Accounts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Accounts) Validate

func (s *Accounts) Validate() error

type Action

type Action struct {
	Type                  ActionType                     `json:"type"`
	Status                ActionStatus                   `json:"status"`
	TonTransfer           OptTonTransferAction           `json:"TonTransfer"`
	ContractDeploy        OptContractDeployAction        `json:"ContractDeploy"`
	JettonTransfer        OptJettonTransferAction        `json:"JettonTransfer"`
	JettonBurn            OptJettonBurnAction            `json:"JettonBurn"`
	JettonMint            OptJettonMintAction            `json:"JettonMint"`
	NftItemTransfer       OptNftItemTransferAction       `json:"NftItemTransfer"`
	Subscribe             OptSubscriptionAction          `json:"Subscribe"`
	UnSubscribe           OptUnSubscriptionAction        `json:"UnSubscribe"`
	AuctionBid            OptAuctionBidAction            `json:"AuctionBid"`
	NftPurchase           OptNftPurchaseAction           `json:"NftPurchase"`
	DepositStake          OptDepositStakeAction          `json:"DepositStake"`
	WithdrawStake         OptWithdrawStakeAction         `json:"WithdrawStake"`
	WithdrawStakeRequest  OptWithdrawStakeRequestAction  `json:"WithdrawStakeRequest"`
	ElectionsDepositStake OptElectionsDepositStakeAction `json:"ElectionsDepositStake"`
	ElectionsRecoverStake OptElectionsRecoverStakeAction `json:"ElectionsRecoverStake"`
	JettonSwap            OptJettonSwapAction            `json:"JettonSwap"`
	SmartContractExec     OptSmartContractAction         `json:"SmartContractExec"`
	SimplePreview         ActionSimplePreview            `json:"simple_preview"`
}

Ref: #/components/schemas/Action

func (*Action) Decode

func (s *Action) Decode(d *jx.Decoder) error

Decode decodes Action from json.

func (*Action) Encode

func (s *Action) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Action) GetAuctionBid

func (s *Action) GetAuctionBid() OptAuctionBidAction

GetAuctionBid returns the value of AuctionBid.

func (*Action) GetContractDeploy

func (s *Action) GetContractDeploy() OptContractDeployAction

GetContractDeploy returns the value of ContractDeploy.

func (*Action) GetDepositStake

func (s *Action) GetDepositStake() OptDepositStakeAction

GetDepositStake returns the value of DepositStake.

func (*Action) GetElectionsDepositStake

func (s *Action) GetElectionsDepositStake() OptElectionsDepositStakeAction

GetElectionsDepositStake returns the value of ElectionsDepositStake.

func (*Action) GetElectionsRecoverStake

func (s *Action) GetElectionsRecoverStake() OptElectionsRecoverStakeAction

GetElectionsRecoverStake returns the value of ElectionsRecoverStake.

func (*Action) GetJettonBurn

func (s *Action) GetJettonBurn() OptJettonBurnAction

GetJettonBurn returns the value of JettonBurn.

func (*Action) GetJettonMint

func (s *Action) GetJettonMint() OptJettonMintAction

GetJettonMint returns the value of JettonMint.

func (*Action) GetJettonSwap

func (s *Action) GetJettonSwap() OptJettonSwapAction

GetJettonSwap returns the value of JettonSwap.

func (*Action) GetJettonTransfer

func (s *Action) GetJettonTransfer() OptJettonTransferAction

GetJettonTransfer returns the value of JettonTransfer.

func (*Action) GetNftItemTransfer

func (s *Action) GetNftItemTransfer() OptNftItemTransferAction

GetNftItemTransfer returns the value of NftItemTransfer.

func (*Action) GetNftPurchase

func (s *Action) GetNftPurchase() OptNftPurchaseAction

GetNftPurchase returns the value of NftPurchase.

func (*Action) GetSimplePreview

func (s *Action) GetSimplePreview() ActionSimplePreview

GetSimplePreview returns the value of SimplePreview.

func (*Action) GetSmartContractExec

func (s *Action) GetSmartContractExec() OptSmartContractAction

GetSmartContractExec returns the value of SmartContractExec.

func (*Action) GetStatus

func (s *Action) GetStatus() ActionStatus

GetStatus returns the value of Status.

func (*Action) GetSubscribe

func (s *Action) GetSubscribe() OptSubscriptionAction

GetSubscribe returns the value of Subscribe.

func (*Action) GetTonTransfer

func (s *Action) GetTonTransfer() OptTonTransferAction

GetTonTransfer returns the value of TonTransfer.

func (*Action) GetType

func (s *Action) GetType() ActionType

GetType returns the value of Type.

func (*Action) GetUnSubscribe

func (s *Action) GetUnSubscribe() OptUnSubscriptionAction

GetUnSubscribe returns the value of UnSubscribe.

func (*Action) GetWithdrawStake

func (s *Action) GetWithdrawStake() OptWithdrawStakeAction

GetWithdrawStake returns the value of WithdrawStake.

func (*Action) GetWithdrawStakeRequest

func (s *Action) GetWithdrawStakeRequest() OptWithdrawStakeRequestAction

GetWithdrawStakeRequest returns the value of WithdrawStakeRequest.

func (*Action) MarshalJSON

func (s *Action) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Action) SetAuctionBid

func (s *Action) SetAuctionBid(val OptAuctionBidAction)

SetAuctionBid sets the value of AuctionBid.

func (*Action) SetContractDeploy

func (s *Action) SetContractDeploy(val OptContractDeployAction)

SetContractDeploy sets the value of ContractDeploy.

func (*Action) SetDepositStake

func (s *Action) SetDepositStake(val OptDepositStakeAction)

SetDepositStake sets the value of DepositStake.

func (*Action) SetElectionsDepositStake

func (s *Action) SetElectionsDepositStake(val OptElectionsDepositStakeAction)

SetElectionsDepositStake sets the value of ElectionsDepositStake.

func (*Action) SetElectionsRecoverStake

func (s *Action) SetElectionsRecoverStake(val OptElectionsRecoverStakeAction)

SetElectionsRecoverStake sets the value of ElectionsRecoverStake.

func (*Action) SetJettonBurn

func (s *Action) SetJettonBurn(val OptJettonBurnAction)

SetJettonBurn sets the value of JettonBurn.

func (*Action) SetJettonMint

func (s *Action) SetJettonMint(val OptJettonMintAction)

SetJettonMint sets the value of JettonMint.

func (*Action) SetJettonSwap

func (s *Action) SetJettonSwap(val OptJettonSwapAction)

SetJettonSwap sets the value of JettonSwap.

func (*Action) SetJettonTransfer

func (s *Action) SetJettonTransfer(val OptJettonTransferAction)

SetJettonTransfer sets the value of JettonTransfer.

func (*Action) SetNftItemTransfer

func (s *Action) SetNftItemTransfer(val OptNftItemTransferAction)

SetNftItemTransfer sets the value of NftItemTransfer.

func (*Action) SetNftPurchase

func (s *Action) SetNftPurchase(val OptNftPurchaseAction)

SetNftPurchase sets the value of NftPurchase.

func (*Action) SetSimplePreview

func (s *Action) SetSimplePreview(val ActionSimplePreview)

SetSimplePreview sets the value of SimplePreview.

func (*Action) SetSmartContractExec

func (s *Action) SetSmartContractExec(val OptSmartContractAction)

SetSmartContractExec sets the value of SmartContractExec.

func (*Action) SetStatus

func (s *Action) SetStatus(val ActionStatus)

SetStatus sets the value of Status.

func (*Action) SetSubscribe

func (s *Action) SetSubscribe(val OptSubscriptionAction)

SetSubscribe sets the value of Subscribe.

func (*Action) SetTonTransfer

func (s *Action) SetTonTransfer(val OptTonTransferAction)

SetTonTransfer sets the value of TonTransfer.

func (*Action) SetType

func (s *Action) SetType(val ActionType)

SetType sets the value of Type.

func (*Action) SetUnSubscribe

func (s *Action) SetUnSubscribe(val OptUnSubscriptionAction)

SetUnSubscribe sets the value of UnSubscribe.

func (*Action) SetWithdrawStake

func (s *Action) SetWithdrawStake(val OptWithdrawStakeAction)

SetWithdrawStake sets the value of WithdrawStake.

func (*Action) SetWithdrawStakeRequest

func (s *Action) SetWithdrawStakeRequest(val OptWithdrawStakeRequestAction)

SetWithdrawStakeRequest sets the value of WithdrawStakeRequest.

func (*Action) UnmarshalJSON

func (s *Action) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Action) Validate

func (s *Action) Validate() error

type ActionPhase

type ActionPhase struct {
	Success        bool  `json:"success"`
	TotalActions   int32 `json:"total_actions"`
	SkippedActions int32 `json:"skipped_actions"`
	FwdFees        int64 `json:"fwd_fees"`
	TotalFees      int64 `json:"total_fees"`
}

Ref: #/components/schemas/ActionPhase

func (*ActionPhase) Decode

func (s *ActionPhase) Decode(d *jx.Decoder) error

Decode decodes ActionPhase from json.

func (*ActionPhase) Encode

func (s *ActionPhase) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ActionPhase) GetFwdFees

func (s *ActionPhase) GetFwdFees() int64

GetFwdFees returns the value of FwdFees.

func (*ActionPhase) GetSkippedActions

func (s *ActionPhase) GetSkippedActions() int32

GetSkippedActions returns the value of SkippedActions.

func (*ActionPhase) GetSuccess

func (s *ActionPhase) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ActionPhase) GetTotalActions

func (s *ActionPhase) GetTotalActions() int32

GetTotalActions returns the value of TotalActions.

func (*ActionPhase) GetTotalFees

func (s *ActionPhase) GetTotalFees() int64

GetTotalFees returns the value of TotalFees.

func (*ActionPhase) MarshalJSON

func (s *ActionPhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ActionPhase) SetFwdFees

func (s *ActionPhase) SetFwdFees(val int64)

SetFwdFees sets the value of FwdFees.

func (*ActionPhase) SetSkippedActions

func (s *ActionPhase) SetSkippedActions(val int32)

SetSkippedActions sets the value of SkippedActions.

func (*ActionPhase) SetSuccess

func (s *ActionPhase) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ActionPhase) SetTotalActions

func (s *ActionPhase) SetTotalActions(val int32)

SetTotalActions sets the value of TotalActions.

func (*ActionPhase) SetTotalFees

func (s *ActionPhase) SetTotalFees(val int64)

SetTotalFees sets the value of TotalFees.

func (*ActionPhase) UnmarshalJSON

func (s *ActionPhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ActionSimplePreview

type ActionSimplePreview struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	// A link to an image for this particular action.
	ActionImage OptString `json:"action_image"`
	Value       OptString `json:"value"`
	// A link to an image that depicts this action's asset.
	ValueImage OptString        `json:"value_image"`
	Accounts   []AccountAddress `json:"accounts"`
}

Shortly describes what this action is about. Ref: #/components/schemas/ActionSimplePreview

func (*ActionSimplePreview) Decode

func (s *ActionSimplePreview) Decode(d *jx.Decoder) error

Decode decodes ActionSimplePreview from json.

func (*ActionSimplePreview) Encode

func (s *ActionSimplePreview) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ActionSimplePreview) GetAccounts

func (s *ActionSimplePreview) GetAccounts() []AccountAddress

GetAccounts returns the value of Accounts.

func (*ActionSimplePreview) GetActionImage

func (s *ActionSimplePreview) GetActionImage() OptString

GetActionImage returns the value of ActionImage.

func (*ActionSimplePreview) GetDescription

func (s *ActionSimplePreview) GetDescription() string

GetDescription returns the value of Description.

func (*ActionSimplePreview) GetName

func (s *ActionSimplePreview) GetName() string

GetName returns the value of Name.

func (*ActionSimplePreview) GetValue

func (s *ActionSimplePreview) GetValue() OptString

GetValue returns the value of Value.

func (*ActionSimplePreview) GetValueImage

func (s *ActionSimplePreview) GetValueImage() OptString

GetValueImage returns the value of ValueImage.

func (*ActionSimplePreview) MarshalJSON

func (s *ActionSimplePreview) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ActionSimplePreview) SetAccounts

func (s *ActionSimplePreview) SetAccounts(val []AccountAddress)

SetAccounts sets the value of Accounts.

func (*ActionSimplePreview) SetActionImage

func (s *ActionSimplePreview) SetActionImage(val OptString)

SetActionImage sets the value of ActionImage.

func (*ActionSimplePreview) SetDescription

func (s *ActionSimplePreview) SetDescription(val string)

SetDescription sets the value of Description.

func (*ActionSimplePreview) SetName

func (s *ActionSimplePreview) SetName(val string)

SetName sets the value of Name.

func (*ActionSimplePreview) SetValue

func (s *ActionSimplePreview) SetValue(val OptString)

SetValue sets the value of Value.

func (*ActionSimplePreview) SetValueImage

func (s *ActionSimplePreview) SetValueImage(val OptString)

SetValueImage sets the value of ValueImage.

func (*ActionSimplePreview) UnmarshalJSON

func (s *ActionSimplePreview) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ActionSimplePreview) Validate

func (s *ActionSimplePreview) Validate() error

type ActionStatus

type ActionStatus string
const (
	ActionStatusOk     ActionStatus = "ok"
	ActionStatusFailed ActionStatus = "failed"
)

func (*ActionStatus) Decode

func (s *ActionStatus) Decode(d *jx.Decoder) error

Decode decodes ActionStatus from json.

func (ActionStatus) Encode

func (s ActionStatus) Encode(e *jx.Encoder)

Encode encodes ActionStatus as json.

func (ActionStatus) MarshalJSON

func (s ActionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ActionStatus) MarshalText

func (s ActionStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ActionStatus) UnmarshalJSON

func (s *ActionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ActionStatus) UnmarshalText

func (s *ActionStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ActionStatus) Validate

func (s ActionStatus) Validate() error

type ActionType

type ActionType string
const (
	ActionTypeTonTransfer           ActionType = "TonTransfer"
	ActionTypeJettonTransfer        ActionType = "JettonTransfer"
	ActionTypeJettonBurn            ActionType = "JettonBurn"
	ActionTypeJettonMint            ActionType = "JettonMint"
	ActionTypeNftItemTransfer       ActionType = "NftItemTransfer"
	ActionTypeContractDeploy        ActionType = "ContractDeploy"
	ActionTypeSubscribe             ActionType = "Subscribe"
	ActionTypeUnSubscribe           ActionType = "UnSubscribe"
	ActionTypeAuctionBid            ActionType = "AuctionBid"
	ActionTypeNftPurchase           ActionType = "NftPurchase"
	ActionTypeDepositStake          ActionType = "DepositStake"
	ActionTypeWithdrawStake         ActionType = "WithdrawStake"
	ActionTypeWithdrawStakeRequest  ActionType = "WithdrawStakeRequest"
	ActionTypeJettonSwap            ActionType = "JettonSwap"
	ActionTypeSmartContractExec     ActionType = "SmartContractExec"
	ActionTypeElectionsRecoverStake ActionType = "ElectionsRecoverStake"
	ActionTypeElectionsDepositStake ActionType = "ElectionsDepositStake"
	ActionTypeUnknown               ActionType = "Unknown"
)

func (*ActionType) Decode

func (s *ActionType) Decode(d *jx.Decoder) error

Decode decodes ActionType from json.

func (ActionType) Encode

func (s ActionType) Encode(e *jx.Encoder)

Encode encodes ActionType as json.

func (ActionType) MarshalJSON

func (s ActionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ActionType) MarshalText

func (s ActionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ActionType) UnmarshalJSON

func (s *ActionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ActionType) UnmarshalText

func (s *ActionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ActionType) Validate

func (s ActionType) Validate() error

type ApyHistory

type ApyHistory struct {
	Apy  float64 `json:"apy"`
	Time int     `json:"time"`
}

Ref: #/components/schemas/ApyHistory

func (*ApyHistory) Decode

func (s *ApyHistory) Decode(d *jx.Decoder) error

Decode decodes ApyHistory from json.

func (*ApyHistory) Encode

func (s *ApyHistory) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ApyHistory) GetApy

func (s *ApyHistory) GetApy() float64

GetApy returns the value of Apy.

func (*ApyHistory) GetTime

func (s *ApyHistory) GetTime() int

GetTime returns the value of Time.

func (*ApyHistory) MarshalJSON

func (s *ApyHistory) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ApyHistory) SetApy

func (s *ApyHistory) SetApy(val float64)

SetApy sets the value of Apy.

func (*ApyHistory) SetTime

func (s *ApyHistory) SetTime(val int)

SetTime sets the value of Time.

func (*ApyHistory) UnmarshalJSON

func (s *ApyHistory) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ApyHistory) Validate

func (s *ApyHistory) Validate() error

type Auction

type Auction struct {
	Domain string `json:"domain"`
	Owner  string `json:"owner"`
	Price  int64  `json:"price"`
	Bids   int64  `json:"bids"`
	Date   int64  `json:"date"`
}

Ref: #/components/schemas/Auction

func (*Auction) Decode

func (s *Auction) Decode(d *jx.Decoder) error

Decode decodes Auction from json.

func (*Auction) Encode

func (s *Auction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Auction) GetBids

func (s *Auction) GetBids() int64

GetBids returns the value of Bids.

func (*Auction) GetDate

func (s *Auction) GetDate() int64

GetDate returns the value of Date.

func (*Auction) GetDomain

func (s *Auction) GetDomain() string

GetDomain returns the value of Domain.

func (*Auction) GetOwner

func (s *Auction) GetOwner() string

GetOwner returns the value of Owner.

func (*Auction) GetPrice

func (s *Auction) GetPrice() int64

GetPrice returns the value of Price.

func (*Auction) MarshalJSON

func (s *Auction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Auction) SetBids

func (s *Auction) SetBids(val int64)

SetBids sets the value of Bids.

func (*Auction) SetDate

func (s *Auction) SetDate(val int64)

SetDate sets the value of Date.

func (*Auction) SetDomain

func (s *Auction) SetDomain(val string)

SetDomain sets the value of Domain.

func (*Auction) SetOwner

func (s *Auction) SetOwner(val string)

SetOwner sets the value of Owner.

func (*Auction) SetPrice

func (s *Auction) SetPrice(val int64)

SetPrice sets the value of Price.

func (*Auction) UnmarshalJSON

func (s *Auction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AuctionBidAction

type AuctionBidAction struct {
	AuctionType AuctionBidActionAuctionType `json:"auction_type"`
	Amount      Price                       `json:"amount"`
	Nft         OptNftItem                  `json:"nft"`
	Bidder      AccountAddress              `json:"bidder"`
	Auction     AccountAddress              `json:"auction"`
}

Ref: #/components/schemas/AuctionBidAction

func (*AuctionBidAction) Decode

func (s *AuctionBidAction) Decode(d *jx.Decoder) error

Decode decodes AuctionBidAction from json.

func (*AuctionBidAction) Encode

func (s *AuctionBidAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuctionBidAction) GetAmount

func (s *AuctionBidAction) GetAmount() Price

GetAmount returns the value of Amount.

func (*AuctionBidAction) GetAuction

func (s *AuctionBidAction) GetAuction() AccountAddress

GetAuction returns the value of Auction.

func (*AuctionBidAction) GetAuctionType

func (s *AuctionBidAction) GetAuctionType() AuctionBidActionAuctionType

GetAuctionType returns the value of AuctionType.

func (*AuctionBidAction) GetBidder

func (s *AuctionBidAction) GetBidder() AccountAddress

GetBidder returns the value of Bidder.

func (*AuctionBidAction) GetNft

func (s *AuctionBidAction) GetNft() OptNftItem

GetNft returns the value of Nft.

func (*AuctionBidAction) MarshalJSON

func (s *AuctionBidAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuctionBidAction) SetAmount

func (s *AuctionBidAction) SetAmount(val Price)

SetAmount sets the value of Amount.

func (*AuctionBidAction) SetAuction

func (s *AuctionBidAction) SetAuction(val AccountAddress)

SetAuction sets the value of Auction.

func (*AuctionBidAction) SetAuctionType

func (s *AuctionBidAction) SetAuctionType(val AuctionBidActionAuctionType)

SetAuctionType sets the value of AuctionType.

func (*AuctionBidAction) SetBidder

func (s *AuctionBidAction) SetBidder(val AccountAddress)

SetBidder sets the value of Bidder.

func (*AuctionBidAction) SetNft

func (s *AuctionBidAction) SetNft(val OptNftItem)

SetNft sets the value of Nft.

func (*AuctionBidAction) UnmarshalJSON

func (s *AuctionBidAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuctionBidAction) Validate

func (s *AuctionBidAction) Validate() error

type AuctionBidActionAuctionType

type AuctionBidActionAuctionType string
const (
	AuctionBidActionAuctionTypeDNSTon   AuctionBidActionAuctionType = "DNS.ton"
	AuctionBidActionAuctionTypeDNSTg    AuctionBidActionAuctionType = "DNS.tg"
	AuctionBidActionAuctionTypeNUMBERTg AuctionBidActionAuctionType = "NUMBER.tg"
	AuctionBidActionAuctionTypeGetgems  AuctionBidActionAuctionType = "getgems"
)

func (*AuctionBidActionAuctionType) Decode

Decode decodes AuctionBidActionAuctionType from json.

func (AuctionBidActionAuctionType) Encode

func (s AuctionBidActionAuctionType) Encode(e *jx.Encoder)

Encode encodes AuctionBidActionAuctionType as json.

func (AuctionBidActionAuctionType) MarshalJSON

func (s AuctionBidActionAuctionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AuctionBidActionAuctionType) MarshalText

func (s AuctionBidActionAuctionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AuctionBidActionAuctionType) UnmarshalJSON

func (s *AuctionBidActionAuctionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AuctionBidActionAuctionType) UnmarshalText

func (s *AuctionBidActionAuctionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AuctionBidActionAuctionType) Validate

func (s AuctionBidActionAuctionType) Validate() error

type Auctions

type Auctions struct {
	Data  []Auction `json:"data"`
	Total int64     `json:"total"`
}

Ref: #/components/schemas/Auctions

func (*Auctions) Decode

func (s *Auctions) Decode(d *jx.Decoder) error

Decode decodes Auctions from json.

func (*Auctions) Encode

func (s *Auctions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Auctions) GetData

func (s *Auctions) GetData() []Auction

GetData returns the value of Data.

func (*Auctions) GetTotal

func (s *Auctions) GetTotal() int64

GetTotal returns the value of Total.

func (*Auctions) MarshalJSON

func (s *Auctions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Auctions) SetData

func (s *Auctions) SetData(val []Auction)

SetData sets the value of Data.

func (*Auctions) SetTotal

func (s *Auctions) SetTotal(val int64)

SetTotal sets the value of Total.

func (*Auctions) UnmarshalJSON

func (s *Auctions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Auctions) Validate

func (s *Auctions) Validate() error

type BlockRaw

type BlockRaw struct {
	Workchain uint32 `json:"workchain"`
	Shard     uint64 `json:"shard"`
	Seqno     uint32 `json:"seqno"`
	RootHash  string `json:"root_hash"`
	FileHash  string `json:"file_hash"`
}

Ref: #/components/schemas/BlockRaw

func (*BlockRaw) Decode

func (s *BlockRaw) Decode(d *jx.Decoder) error

Decode decodes BlockRaw from json.

func (*BlockRaw) Encode

func (s *BlockRaw) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BlockRaw) GetFileHash

func (s *BlockRaw) GetFileHash() string

GetFileHash returns the value of FileHash.

func (*BlockRaw) GetRootHash

func (s *BlockRaw) GetRootHash() string

GetRootHash returns the value of RootHash.

func (*BlockRaw) GetSeqno

func (s *BlockRaw) GetSeqno() uint32

GetSeqno returns the value of Seqno.

func (*BlockRaw) GetShard

func (s *BlockRaw) GetShard() uint64

GetShard returns the value of Shard.

func (*BlockRaw) GetWorkchain

func (s *BlockRaw) GetWorkchain() uint32

GetWorkchain returns the value of Workchain.

func (*BlockRaw) MarshalJSON

func (s *BlockRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockRaw) SetFileHash

func (s *BlockRaw) SetFileHash(val string)

SetFileHash sets the value of FileHash.

func (*BlockRaw) SetRootHash

func (s *BlockRaw) SetRootHash(val string)

SetRootHash sets the value of RootHash.

func (*BlockRaw) SetSeqno

func (s *BlockRaw) SetSeqno(val uint32)

SetSeqno sets the value of Seqno.

func (*BlockRaw) SetShard

func (s *BlockRaw) SetShard(val uint64)

SetShard sets the value of Shard.

func (*BlockRaw) SetWorkchain

func (s *BlockRaw) SetWorkchain(val uint32)

SetWorkchain sets the value of Workchain.

func (*BlockRaw) UnmarshalJSON

func (s *BlockRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BlockchainAccountInspect

type BlockchainAccountInspect struct {
	Code     string                                `json:"code"`
	CodeHash string                                `json:"code_hash"`
	Methods  []BlockchainAccountInspectMethodsItem `json:"methods"`
	Compiler OptBlockchainAccountInspectCompiler   `json:"compiler"`
}

Ref: #/components/schemas/BlockchainAccountInspect

func (*BlockchainAccountInspect) Decode

func (s *BlockchainAccountInspect) Decode(d *jx.Decoder) error

Decode decodes BlockchainAccountInspect from json.

func (*BlockchainAccountInspect) Encode

func (s *BlockchainAccountInspect) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BlockchainAccountInspect) GetCode

func (s *BlockchainAccountInspect) GetCode() string

GetCode returns the value of Code.

func (*BlockchainAccountInspect) GetCodeHash

func (s *BlockchainAccountInspect) GetCodeHash() string

GetCodeHash returns the value of CodeHash.

func (*BlockchainAccountInspect) GetCompiler

GetCompiler returns the value of Compiler.

func (*BlockchainAccountInspect) GetMethods

GetMethods returns the value of Methods.

func (*BlockchainAccountInspect) MarshalJSON

func (s *BlockchainAccountInspect) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainAccountInspect) SetCode

func (s *BlockchainAccountInspect) SetCode(val string)

SetCode sets the value of Code.

func (*BlockchainAccountInspect) SetCodeHash

func (s *BlockchainAccountInspect) SetCodeHash(val string)

SetCodeHash sets the value of CodeHash.

func (*BlockchainAccountInspect) SetCompiler

SetCompiler sets the value of Compiler.

func (*BlockchainAccountInspect) SetMethods

SetMethods sets the value of Methods.

func (*BlockchainAccountInspect) UnmarshalJSON

func (s *BlockchainAccountInspect) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BlockchainAccountInspect) Validate

func (s *BlockchainAccountInspect) Validate() error

type BlockchainAccountInspectCompiler

type BlockchainAccountInspectCompiler string
const (
	BlockchainAccountInspectCompilerFunc BlockchainAccountInspectCompiler = "func"
)

func (*BlockchainAccountInspectCompiler) Decode

Decode decodes BlockchainAccountInspectCompiler from json.

func (BlockchainAccountInspectCompiler) Encode

Encode encodes BlockchainAccountInspectCompiler as json.

func (BlockchainAccountInspectCompiler) MarshalJSON

func (s BlockchainAccountInspectCompiler) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BlockchainAccountInspectCompiler) MarshalText

func (s BlockchainAccountInspectCompiler) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BlockchainAccountInspectCompiler) UnmarshalJSON

func (s *BlockchainAccountInspectCompiler) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BlockchainAccountInspectCompiler) UnmarshalText

func (s *BlockchainAccountInspectCompiler) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BlockchainAccountInspectCompiler) Validate

type BlockchainAccountInspectMethodsItem

type BlockchainAccountInspectMethodsItem struct {
	ID     int64  `json:"id"`
	Method string `json:"method"`
}

func (*BlockchainAccountInspectMethodsItem) Decode

Decode decodes BlockchainAccountInspectMethodsItem from json.

func (*BlockchainAccountInspectMethodsItem) Encode

Encode implements json.Marshaler.

func (*BlockchainAccountInspectMethodsItem) GetID

GetID returns the value of ID.

func (*BlockchainAccountInspectMethodsItem) GetMethod

GetMethod returns the value of Method.

func (*BlockchainAccountInspectMethodsItem) MarshalJSON

func (s *BlockchainAccountInspectMethodsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainAccountInspectMethodsItem) SetID

SetID sets the value of ID.

func (*BlockchainAccountInspectMethodsItem) SetMethod

func (s *BlockchainAccountInspectMethodsItem) SetMethod(val string)

SetMethod sets the value of Method.

func (*BlockchainAccountInspectMethodsItem) UnmarshalJSON

func (s *BlockchainAccountInspectMethodsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BlockchainAccountInspectParams

type BlockchainAccountInspectParams struct {
	// Account ID.
	AccountID string
}

BlockchainAccountInspectParams is parameters of blockchainAccountInspect operation.

type BlockchainBlock

type BlockchainBlock struct {
	WorkchainID             int32     `json:"workchain_id"`
	Shard                   string    `json:"shard"`
	Seqno                   int32     `json:"seqno"`
	RootHash                string    `json:"root_hash"`
	FileHash                string    `json:"file_hash"`
	GlobalID                int32     `json:"global_id"`
	Version                 int32     `json:"version"`
	AfterMerge              bool      `json:"after_merge"`
	BeforeSplit             bool      `json:"before_split"`
	AfterSplit              bool      `json:"after_split"`
	WantSplit               bool      `json:"want_split"`
	WantMerge               bool      `json:"want_merge"`
	KeyBlock                bool      `json:"key_block"`
	GenUtime                int64     `json:"gen_utime"`
	StartLt                 int64     `json:"start_lt"`
	EndLt                   int64     `json:"end_lt"`
	VertSeqno               int32     `json:"vert_seqno"`
	GenCatchainSeqno        int32     `json:"gen_catchain_seqno"`
	MinRefMcSeqno           int32     `json:"min_ref_mc_seqno"`
	PrevKeyBlockSeqno       int32     `json:"prev_key_block_seqno"`
	GenSoftwareVersion      OptInt32  `json:"gen_software_version"`
	GenSoftwareCapabilities OptInt64  `json:"gen_software_capabilities"`
	MasterRef               OptString `json:"master_ref"`
	PrevRefs                []string  `json:"prev_refs"`
	InMsgDescrLength        int64     `json:"in_msg_descr_length"`
	OutMsgDescrLength       int64     `json:"out_msg_descr_length"`
	RandSeed                string    `json:"rand_seed"`
	CreatedBy               string    `json:"created_by"`
}

Ref: #/components/schemas/BlockchainBlock

func (*BlockchainBlock) Decode

func (s *BlockchainBlock) Decode(d *jx.Decoder) error

Decode decodes BlockchainBlock from json.

func (*BlockchainBlock) Encode

func (s *BlockchainBlock) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BlockchainBlock) GetAfterMerge

func (s *BlockchainBlock) GetAfterMerge() bool

GetAfterMerge returns the value of AfterMerge.

func (*BlockchainBlock) GetAfterSplit

func (s *BlockchainBlock) GetAfterSplit() bool

GetAfterSplit returns the value of AfterSplit.

func (*BlockchainBlock) GetBeforeSplit

func (s *BlockchainBlock) GetBeforeSplit() bool

GetBeforeSplit returns the value of BeforeSplit.

func (*BlockchainBlock) GetCreatedBy

func (s *BlockchainBlock) GetCreatedBy() string

GetCreatedBy returns the value of CreatedBy.

func (*BlockchainBlock) GetEndLt

func (s *BlockchainBlock) GetEndLt() int64

GetEndLt returns the value of EndLt.

func (*BlockchainBlock) GetFileHash

func (s *BlockchainBlock) GetFileHash() string

GetFileHash returns the value of FileHash.

func (*BlockchainBlock) GetGenCatchainSeqno

func (s *BlockchainBlock) GetGenCatchainSeqno() int32

GetGenCatchainSeqno returns the value of GenCatchainSeqno.

func (*BlockchainBlock) GetGenSoftwareCapabilities

func (s *BlockchainBlock) GetGenSoftwareCapabilities() OptInt64

GetGenSoftwareCapabilities returns the value of GenSoftwareCapabilities.

func (*BlockchainBlock) GetGenSoftwareVersion

func (s *BlockchainBlock) GetGenSoftwareVersion() OptInt32

GetGenSoftwareVersion returns the value of GenSoftwareVersion.

func (*BlockchainBlock) GetGenUtime

func (s *BlockchainBlock) GetGenUtime() int64

GetGenUtime returns the value of GenUtime.

func (*BlockchainBlock) GetGlobalID

func (s *BlockchainBlock) GetGlobalID() int32

GetGlobalID returns the value of GlobalID.

func (*BlockchainBlock) GetInMsgDescrLength

func (s *BlockchainBlock) GetInMsgDescrLength() int64

GetInMsgDescrLength returns the value of InMsgDescrLength.

func (*BlockchainBlock) GetKeyBlock

func (s *BlockchainBlock) GetKeyBlock() bool

GetKeyBlock returns the value of KeyBlock.

func (*BlockchainBlock) GetMasterRef

func (s *BlockchainBlock) GetMasterRef() OptString

GetMasterRef returns the value of MasterRef.

func (*BlockchainBlock) GetMinRefMcSeqno

func (s *BlockchainBlock) GetMinRefMcSeqno() int32

GetMinRefMcSeqno returns the value of MinRefMcSeqno.

func (*BlockchainBlock) GetOutMsgDescrLength

func (s *BlockchainBlock) GetOutMsgDescrLength() int64

GetOutMsgDescrLength returns the value of OutMsgDescrLength.

func (*BlockchainBlock) GetPrevKeyBlockSeqno

func (s *BlockchainBlock) GetPrevKeyBlockSeqno() int32

GetPrevKeyBlockSeqno returns the value of PrevKeyBlockSeqno.

func (*BlockchainBlock) GetPrevRefs

func (s *BlockchainBlock) GetPrevRefs() []string

GetPrevRefs returns the value of PrevRefs.

func (*BlockchainBlock) GetRandSeed

func (s *BlockchainBlock) GetRandSeed() string

GetRandSeed returns the value of RandSeed.

func (*BlockchainBlock) GetRootHash

func (s *BlockchainBlock) GetRootHash() string

GetRootHash returns the value of RootHash.

func (*BlockchainBlock) GetSeqno

func (s *BlockchainBlock) GetSeqno() int32

GetSeqno returns the value of Seqno.

func (*BlockchainBlock) GetShard

func (s *BlockchainBlock) GetShard() string

GetShard returns the value of Shard.

func (*BlockchainBlock) GetStartLt

func (s *BlockchainBlock) GetStartLt() int64

GetStartLt returns the value of StartLt.

func (*BlockchainBlock) GetVersion

func (s *BlockchainBlock) GetVersion() int32

GetVersion returns the value of Version.

func (*BlockchainBlock) GetVertSeqno

func (s *BlockchainBlock) GetVertSeqno() int32

GetVertSeqno returns the value of VertSeqno.

func (*BlockchainBlock) GetWantMerge

func (s *BlockchainBlock) GetWantMerge() bool

GetWantMerge returns the value of WantMerge.

func (*BlockchainBlock) GetWantSplit

func (s *BlockchainBlock) GetWantSplit() bool

GetWantSplit returns the value of WantSplit.

func (*BlockchainBlock) GetWorkchainID

func (s *BlockchainBlock) GetWorkchainID() int32

GetWorkchainID returns the value of WorkchainID.

func (*BlockchainBlock) MarshalJSON

func (s *BlockchainBlock) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainBlock) SetAfterMerge

func (s *BlockchainBlock) SetAfterMerge(val bool)

SetAfterMerge sets the value of AfterMerge.

func (*BlockchainBlock) SetAfterSplit

func (s *BlockchainBlock) SetAfterSplit(val bool)

SetAfterSplit sets the value of AfterSplit.

func (*BlockchainBlock) SetBeforeSplit

func (s *BlockchainBlock) SetBeforeSplit(val bool)

SetBeforeSplit sets the value of BeforeSplit.

func (*BlockchainBlock) SetCreatedBy

func (s *BlockchainBlock) SetCreatedBy(val string)

SetCreatedBy sets the value of CreatedBy.

func (*BlockchainBlock) SetEndLt

func (s *BlockchainBlock) SetEndLt(val int64)

SetEndLt sets the value of EndLt.

func (*BlockchainBlock) SetFileHash

func (s *BlockchainBlock) SetFileHash(val string)

SetFileHash sets the value of FileHash.

func (*BlockchainBlock) SetGenCatchainSeqno

func (s *BlockchainBlock) SetGenCatchainSeqno(val int32)

SetGenCatchainSeqno sets the value of GenCatchainSeqno.

func (*BlockchainBlock) SetGenSoftwareCapabilities

func (s *BlockchainBlock) SetGenSoftwareCapabilities(val OptInt64)

SetGenSoftwareCapabilities sets the value of GenSoftwareCapabilities.

func (*BlockchainBlock) SetGenSoftwareVersion

func (s *BlockchainBlock) SetGenSoftwareVersion(val OptInt32)

SetGenSoftwareVersion sets the value of GenSoftwareVersion.

func (*BlockchainBlock) SetGenUtime

func (s *BlockchainBlock) SetGenUtime(val int64)

SetGenUtime sets the value of GenUtime.

func (*BlockchainBlock) SetGlobalID

func (s *BlockchainBlock) SetGlobalID(val int32)

SetGlobalID sets the value of GlobalID.

func (*BlockchainBlock) SetInMsgDescrLength

func (s *BlockchainBlock) SetInMsgDescrLength(val int64)

SetInMsgDescrLength sets the value of InMsgDescrLength.

func (*BlockchainBlock) SetKeyBlock

func (s *BlockchainBlock) SetKeyBlock(val bool)

SetKeyBlock sets the value of KeyBlock.

func (*BlockchainBlock) SetMasterRef

func (s *BlockchainBlock) SetMasterRef(val OptString)

SetMasterRef sets the value of MasterRef.

func (*BlockchainBlock) SetMinRefMcSeqno

func (s *BlockchainBlock) SetMinRefMcSeqno(val int32)

SetMinRefMcSeqno sets the value of MinRefMcSeqno.

func (*BlockchainBlock) SetOutMsgDescrLength

func (s *BlockchainBlock) SetOutMsgDescrLength(val int64)

SetOutMsgDescrLength sets the value of OutMsgDescrLength.

func (*BlockchainBlock) SetPrevKeyBlockSeqno

func (s *BlockchainBlock) SetPrevKeyBlockSeqno(val int32)

SetPrevKeyBlockSeqno sets the value of PrevKeyBlockSeqno.

func (*BlockchainBlock) SetPrevRefs

func (s *BlockchainBlock) SetPrevRefs(val []string)

SetPrevRefs sets the value of PrevRefs.

func (*BlockchainBlock) SetRandSeed

func (s *BlockchainBlock) SetRandSeed(val string)

SetRandSeed sets the value of RandSeed.

func (*BlockchainBlock) SetRootHash

func (s *BlockchainBlock) SetRootHash(val string)

SetRootHash sets the value of RootHash.

func (*BlockchainBlock) SetSeqno

func (s *BlockchainBlock) SetSeqno(val int32)

SetSeqno sets the value of Seqno.

func (*BlockchainBlock) SetShard

func (s *BlockchainBlock) SetShard(val string)

SetShard sets the value of Shard.

func (*BlockchainBlock) SetStartLt

func (s *BlockchainBlock) SetStartLt(val int64)

SetStartLt sets the value of StartLt.

func (*BlockchainBlock) SetVersion

func (s *BlockchainBlock) SetVersion(val int32)

SetVersion sets the value of Version.

func (*BlockchainBlock) SetVertSeqno

func (s *BlockchainBlock) SetVertSeqno(val int32)

SetVertSeqno sets the value of VertSeqno.

func (*BlockchainBlock) SetWantMerge

func (s *BlockchainBlock) SetWantMerge(val bool)

SetWantMerge sets the value of WantMerge.

func (*BlockchainBlock) SetWantSplit

func (s *BlockchainBlock) SetWantSplit(val bool)

SetWantSplit sets the value of WantSplit.

func (*BlockchainBlock) SetWorkchainID

func (s *BlockchainBlock) SetWorkchainID(val int32)

SetWorkchainID sets the value of WorkchainID.

func (*BlockchainBlock) UnmarshalJSON

func (s *BlockchainBlock) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BlockchainBlock) Validate

func (s *BlockchainBlock) Validate() error

type BlockchainConfig

type BlockchainConfig struct {
	// Config boc in base64 format.
	Raw string `json:"raw"`
	// Config address.
	R0 string `json:"0"`
	// Elector address.
	R1 string `json:"1"`
	// Minter address.
	R2 string `json:"2"`
	// Dns root address.
	R4  string           `json:"4"`
	R32 OptValidatorsSet `json:"32"`
	R33 OptValidatorsSet `json:"33"`
	R34 OptValidatorsSet `json:"34"`
	R35 OptValidatorsSet `json:"35"`
	R36 OptValidatorsSet `json:"36"`
	R37 OptValidatorsSet `json:"37"`
	// Suspended accounts.
	R44 BlockchainConfig44 `json:"44"`
}

Ref: #/components/schemas/BlockchainConfig

func (*BlockchainConfig) Decode

func (s *BlockchainConfig) Decode(d *jx.Decoder) error

Decode decodes BlockchainConfig from json.

func (*BlockchainConfig) Encode

func (s *BlockchainConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BlockchainConfig) GetR0

func (s *BlockchainConfig) GetR0() string

GetR0 returns the value of R0.

func (*BlockchainConfig) GetR1

func (s *BlockchainConfig) GetR1() string

GetR1 returns the value of R1.

func (*BlockchainConfig) GetR2

func (s *BlockchainConfig) GetR2() string

GetR2 returns the value of R2.

func (*BlockchainConfig) GetR32

func (s *BlockchainConfig) GetR32() OptValidatorsSet

GetR32 returns the value of R32.

func (*BlockchainConfig) GetR33

func (s *BlockchainConfig) GetR33() OptValidatorsSet

GetR33 returns the value of R33.

func (*BlockchainConfig) GetR34

func (s *BlockchainConfig) GetR34() OptValidatorsSet

GetR34 returns the value of R34.

func (*BlockchainConfig) GetR35

func (s *BlockchainConfig) GetR35() OptValidatorsSet

GetR35 returns the value of R35.

func (*BlockchainConfig) GetR36

func (s *BlockchainConfig) GetR36() OptValidatorsSet

GetR36 returns the value of R36.

func (*BlockchainConfig) GetR37

func (s *BlockchainConfig) GetR37() OptValidatorsSet

GetR37 returns the value of R37.

func (*BlockchainConfig) GetR4

func (s *BlockchainConfig) GetR4() string

GetR4 returns the value of R4.

func (*BlockchainConfig) GetR44

GetR44 returns the value of R44.

func (*BlockchainConfig) GetRaw

func (s *BlockchainConfig) GetRaw() string

GetRaw returns the value of Raw.

func (*BlockchainConfig) MarshalJSON

func (s *BlockchainConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainConfig) SetR0

func (s *BlockchainConfig) SetR0(val string)

SetR0 sets the value of R0.

func (*BlockchainConfig) SetR1

func (s *BlockchainConfig) SetR1(val string)

SetR1 sets the value of R1.

func (*BlockchainConfig) SetR2

func (s *BlockchainConfig) SetR2(val string)

SetR2 sets the value of R2.

func (*BlockchainConfig) SetR32

func (s *BlockchainConfig) SetR32(val OptValidatorsSet)

SetR32 sets the value of R32.

func (*BlockchainConfig) SetR33

func (s *BlockchainConfig) SetR33(val OptValidatorsSet)

SetR33 sets the value of R33.

func (*BlockchainConfig) SetR34

func (s *BlockchainConfig) SetR34(val OptValidatorsSet)

SetR34 sets the value of R34.

func (*BlockchainConfig) SetR35

func (s *BlockchainConfig) SetR35(val OptValidatorsSet)

SetR35 sets the value of R35.

func (*BlockchainConfig) SetR36

func (s *BlockchainConfig) SetR36(val OptValidatorsSet)

SetR36 sets the value of R36.

func (*BlockchainConfig) SetR37

func (s *BlockchainConfig) SetR37(val OptValidatorsSet)

SetR37 sets the value of R37.

func (*BlockchainConfig) SetR4

func (s *BlockchainConfig) SetR4(val string)

SetR4 sets the value of R4.

func (*BlockchainConfig) SetR44

func (s *BlockchainConfig) SetR44(val BlockchainConfig44)

SetR44 sets the value of R44.

func (*BlockchainConfig) SetRaw

func (s *BlockchainConfig) SetRaw(val string)

SetRaw sets the value of Raw.

func (*BlockchainConfig) UnmarshalJSON

func (s *BlockchainConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BlockchainConfig) Validate

func (s *BlockchainConfig) Validate() error

type BlockchainConfig44

type BlockchainConfig44 struct {
	Accounts       []string `json:"accounts"`
	SuspendedUntil int      `json:"suspended_until"`
}

Suspended accounts.

func (*BlockchainConfig44) Decode

func (s *BlockchainConfig44) Decode(d *jx.Decoder) error

Decode decodes BlockchainConfig44 from json.

func (*BlockchainConfig44) Encode

func (s *BlockchainConfig44) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BlockchainConfig44) GetAccounts

func (s *BlockchainConfig44) GetAccounts() []string

GetAccounts returns the value of Accounts.

func (*BlockchainConfig44) GetSuspendedUntil

func (s *BlockchainConfig44) GetSuspendedUntil() int

GetSuspendedUntil returns the value of SuspendedUntil.

func (*BlockchainConfig44) MarshalJSON

func (s *BlockchainConfig44) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainConfig44) SetAccounts

func (s *BlockchainConfig44) SetAccounts(val []string)

SetAccounts sets the value of Accounts.

func (*BlockchainConfig44) SetSuspendedUntil

func (s *BlockchainConfig44) SetSuspendedUntil(val int)

SetSuspendedUntil sets the value of SuspendedUntil.

func (*BlockchainConfig44) UnmarshalJSON

func (s *BlockchainConfig44) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BlockchainConfig44) Validate

func (s *BlockchainConfig44) Validate() error

type BlockchainRawAccount

type BlockchainRawAccount struct {
	Address           string                              `json:"address"`
	Balance           int64                               `json:"balance"`
	ExtraBalance      OptBlockchainRawAccountExtraBalance `json:"extra_balance"`
	Code              OptString                           `json:"code"`
	Data              OptString                           `json:"data"`
	LastTransactionLt int64                               `json:"last_transaction_lt"`
	Status            string                              `json:"status"`
	Storage           AccountStorageInfo                  `json:"storage"`
}

Ref: #/components/schemas/BlockchainRawAccount

func (*BlockchainRawAccount) Decode

func (s *BlockchainRawAccount) Decode(d *jx.Decoder) error

Decode decodes BlockchainRawAccount from json.

func (*BlockchainRawAccount) Encode

func (s *BlockchainRawAccount) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BlockchainRawAccount) GetAddress

func (s *BlockchainRawAccount) GetAddress() string

GetAddress returns the value of Address.

func (*BlockchainRawAccount) GetBalance

func (s *BlockchainRawAccount) GetBalance() int64

GetBalance returns the value of Balance.

func (*BlockchainRawAccount) GetCode

func (s *BlockchainRawAccount) GetCode() OptString

GetCode returns the value of Code.

func (*BlockchainRawAccount) GetData

func (s *BlockchainRawAccount) GetData() OptString

GetData returns the value of Data.

func (*BlockchainRawAccount) GetExtraBalance

GetExtraBalance returns the value of ExtraBalance.

func (*BlockchainRawAccount) GetLastTransactionLt

func (s *BlockchainRawAccount) GetLastTransactionLt() int64

GetLastTransactionLt returns the value of LastTransactionLt.

func (*BlockchainRawAccount) GetStatus

func (s *BlockchainRawAccount) GetStatus() string

GetStatus returns the value of Status.

func (*BlockchainRawAccount) GetStorage

func (s *BlockchainRawAccount) GetStorage() AccountStorageInfo

GetStorage returns the value of Storage.

func (*BlockchainRawAccount) MarshalJSON

func (s *BlockchainRawAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainRawAccount) SetAddress

func (s *BlockchainRawAccount) SetAddress(val string)

SetAddress sets the value of Address.

func (*BlockchainRawAccount) SetBalance

func (s *BlockchainRawAccount) SetBalance(val int64)

SetBalance sets the value of Balance.

func (*BlockchainRawAccount) SetCode

func (s *BlockchainRawAccount) SetCode(val OptString)

SetCode sets the value of Code.

func (*BlockchainRawAccount) SetData

func (s *BlockchainRawAccount) SetData(val OptString)

SetData sets the value of Data.

func (*BlockchainRawAccount) SetExtraBalance

SetExtraBalance sets the value of ExtraBalance.

func (*BlockchainRawAccount) SetLastTransactionLt

func (s *BlockchainRawAccount) SetLastTransactionLt(val int64)

SetLastTransactionLt sets the value of LastTransactionLt.

func (*BlockchainRawAccount) SetStatus

func (s *BlockchainRawAccount) SetStatus(val string)

SetStatus sets the value of Status.

func (*BlockchainRawAccount) SetStorage

func (s *BlockchainRawAccount) SetStorage(val AccountStorageInfo)

SetStorage sets the value of Storage.

func (*BlockchainRawAccount) UnmarshalJSON

func (s *BlockchainRawAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BlockchainRawAccountExtraBalance

type BlockchainRawAccountExtraBalance map[string]string

func (*BlockchainRawAccountExtraBalance) Decode

Decode decodes BlockchainRawAccountExtraBalance from json.

func (BlockchainRawAccountExtraBalance) Encode

Encode implements json.Marshaler.

func (BlockchainRawAccountExtraBalance) MarshalJSON

func (s BlockchainRawAccountExtraBalance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BlockchainRawAccountExtraBalance) UnmarshalJSON

func (s *BlockchainRawAccountExtraBalance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BouncePhaseType

type BouncePhaseType string

Ref: #/components/schemas/BouncePhaseType

const (
	BouncePhaseTypeTrPhaseBounceNegfunds BouncePhaseType = "TrPhaseBounceNegfunds"
	BouncePhaseTypeTrPhaseBounceNofunds  BouncePhaseType = "TrPhaseBounceNofunds"
	BouncePhaseTypeTrPhaseBounceOk       BouncePhaseType = "TrPhaseBounceOk"
)

func (*BouncePhaseType) Decode

func (s *BouncePhaseType) Decode(d *jx.Decoder) error

Decode decodes BouncePhaseType from json.

func (BouncePhaseType) Encode

func (s BouncePhaseType) Encode(e *jx.Encoder)

Encode encodes BouncePhaseType as json.

func (BouncePhaseType) MarshalJSON

func (s BouncePhaseType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BouncePhaseType) MarshalText

func (s BouncePhaseType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BouncePhaseType) UnmarshalJSON

func (s *BouncePhaseType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BouncePhaseType) UnmarshalText

func (s *BouncePhaseType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BouncePhaseType) Validate

func (s BouncePhaseType) Validate() error

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AccountDnsBackResolve

func (c *Client) AccountDnsBackResolve(ctx context.Context, params AccountDnsBackResolveParams) (*DomainNames, error)

AccountDnsBackResolve invokes accountDnsBackResolve operation.

Get account's domains.

GET /v2/accounts/{account_id}/dns/backresolve

func (*Client) BlockchainAccountInspect

func (c *Client) BlockchainAccountInspect(ctx context.Context, params BlockchainAccountInspectParams) (*BlockchainAccountInspect, error)

BlockchainAccountInspect invokes blockchainAccountInspect operation.

Blockchain account inspect.

GET /v2/blockchain/accounts/{account_id}/inspect

func (*Client) DnsResolve

func (c *Client) DnsResolve(ctx context.Context, params DnsResolveParams) (*DnsRecord, error)

DnsResolve invokes dnsResolve operation.

DNS resolve for domain name.

GET /v2/dns/{domain_name}/resolve

func (*Client) EmulateMessageToAccountEvent

func (c *Client) EmulateMessageToAccountEvent(ctx context.Context, request *EmulateMessageToAccountEventReq, params EmulateMessageToAccountEventParams) (*AccountEvent, error)

EmulateMessageToAccountEvent invokes emulateMessageToAccountEvent operation.

Emulate sending message to blockchain.

POST /v2/accounts/{account_id}/events/emulate

func (*Client) EmulateMessageToEvent

func (c *Client) EmulateMessageToEvent(ctx context.Context, request *EmulateMessageToEventReq, params EmulateMessageToEventParams) (*Event, error)

EmulateMessageToEvent invokes emulateMessageToEvent operation.

Emulate sending message to blockchain.

POST /v2/events/emulate

func (*Client) EmulateMessageToTrace

func (c *Client) EmulateMessageToTrace(ctx context.Context, request *EmulateMessageToTraceReq) (*Trace, error)

EmulateMessageToTrace invokes emulateMessageToTrace operation.

Emulate sending message to blockchain.

POST /v2/traces/emulate

func (*Client) EmulateMessageToWallet

func (c *Client) EmulateMessageToWallet(ctx context.Context, request *EmulateMessageToWalletReq, params EmulateMessageToWalletParams) (*MessageConsequences, error)

EmulateMessageToWallet invokes emulateMessageToWallet operation.

Emulate sending message to blockchain.

POST /v2/wallet/emulate

func (*Client) ExecGetMethodForBlockchainAccount

func (c *Client) ExecGetMethodForBlockchainAccount(ctx context.Context, params ExecGetMethodForBlockchainAccountParams) (*MethodExecutionResult, error)

ExecGetMethodForBlockchainAccount invokes execGetMethodForBlockchainAccount operation.

Execute get method for account.

GET /v2/blockchain/accounts/{account_id}/methods/{method_name}

func (*Client) GetAccount

func (c *Client) GetAccount(ctx context.Context, params GetAccountParams) (*Account, error)

GetAccount invokes getAccount operation.

Get human-friendly information about an account without low-level details.

GET /v2/accounts/{account_id}

func (*Client) GetAccountDiff

func (c *Client) GetAccountDiff(ctx context.Context, params GetAccountDiffParams) (*GetAccountDiffOK, error)

GetAccountDiff invokes getAccountDiff operation.

Get account's balance change.

GET /v2/accounts/{account_id}/diff

func (*Client) GetAccountDnsExpiring

func (c *Client) GetAccountDnsExpiring(ctx context.Context, params GetAccountDnsExpiringParams) (*DnsExpiring, error)

GetAccountDnsExpiring invokes getAccountDnsExpiring operation.

Get expiring account .ton dns.

GET /v2/accounts/{account_id}/dns/expiring

func (*Client) GetAccountEvent

func (c *Client) GetAccountEvent(ctx context.Context, params GetAccountEventParams) (*AccountEvent, error)

GetAccountEvent invokes getAccountEvent operation.

Get event for an account by event_id.

GET /v2/accounts/{account_id}/events/{event_id}

func (*Client) GetAccountEvents

func (c *Client) GetAccountEvents(ctx context.Context, params GetAccountEventsParams) (*AccountEvents, error)

GetAccountEvents invokes getAccountEvents operation.

Get events for an account. Each event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time.

GET /v2/accounts/{account_id}/events

func (*Client) GetAccountInfoByStateInit

func (c *Client) GetAccountInfoByStateInit(ctx context.Context, request *GetAccountInfoByStateInitReq) (*AccountInfoByStateInit, error)

GetAccountInfoByStateInit invokes getAccountInfoByStateInit operation.

Get account info by state init.

POST /v2/tonconnect/stateinit

func (*Client) GetAccountJettonHistoryByID

func (c *Client) GetAccountJettonHistoryByID(ctx context.Context, params GetAccountJettonHistoryByIDParams) (*AccountEvents, error)

GetAccountJettonHistoryByID invokes getAccountJettonHistoryByID operation.

Get the transfer jetton history for account and jetton.

GET /v2/accounts/{account_id}/jettons/{jetton_id}/history

func (*Client) GetAccountJettonsBalances

func (c *Client) GetAccountJettonsBalances(ctx context.Context, params GetAccountJettonsBalancesParams) (*JettonsBalances, error)

GetAccountJettonsBalances invokes getAccountJettonsBalances operation.

Get all Jettons balances by owner address.

GET /v2/accounts/{account_id}/jettons

func (*Client) GetAccountJettonsHistory

func (c *Client) GetAccountJettonsHistory(ctx context.Context, params GetAccountJettonsHistoryParams) (*AccountEvents, error)

GetAccountJettonsHistory invokes getAccountJettonsHistory operation.

Get the transfer jettons history for account.

GET /v2/accounts/{account_id}/jettons/history

func (*Client) GetAccountNftHistory

func (c *Client) GetAccountNftHistory(ctx context.Context, params GetAccountNftHistoryParams) (*AccountEvents, error)

GetAccountNftHistory invokes getAccountNftHistory operation.

Get the transfer nft history.

GET /v2/accounts/{account_id}/nfts/history

func (*Client) GetAccountNftItems

func (c *Client) GetAccountNftItems(ctx context.Context, params GetAccountNftItemsParams) (*NftItems, error)

GetAccountNftItems invokes getAccountNftItems operation.

Get all NFT items by owner address.

GET /v2/accounts/{account_id}/nfts

func (*Client) GetAccountNominatorsPools

func (c *Client) GetAccountNominatorsPools(ctx context.Context, params GetAccountNominatorsPoolsParams) (*AccountStaking, error)

GetAccountNominatorsPools invokes getAccountNominatorsPools operation.

All pools where account participates.

GET /v2/staking/nominator/{account_id}/pools

func (*Client) GetAccountPublicKey

func (c *Client) GetAccountPublicKey(ctx context.Context, params GetAccountPublicKeyParams) (*GetAccountPublicKeyOK, error)

GetAccountPublicKey invokes getAccountPublicKey operation.

Get public key by account id.

GET /v2/accounts/{account_id}/publickey

func (*Client) GetAccountSeqno

func (c *Client) GetAccountSeqno(ctx context.Context, params GetAccountSeqnoParams) (*Seqno, error)

GetAccountSeqno invokes getAccountSeqno operation.

Get account seqno.

GET /v2/wallet/{account_id}/seqno

func (*Client) GetAccountState

func (c *Client) GetAccountState(ctx context.Context, accountID tongo.AccountID) (tlb.ShardAccount, error)

func (*Client) GetAccountSubscriptions

func (c *Client) GetAccountSubscriptions(ctx context.Context, params GetAccountSubscriptionsParams) (*Subscriptions, error)

GetAccountSubscriptions invokes getAccountSubscriptions operation.

Get all subscriptions by wallet address.

GET /v2/accounts/{account_id}/subscriptions

func (*Client) GetAccountTraces

func (c *Client) GetAccountTraces(ctx context.Context, params GetAccountTracesParams) (*TraceIDs, error)

GetAccountTraces invokes getAccountTraces operation.

Get traces for account.

GET /v2/accounts/{account_id}/traces

func (*Client) GetAccounts

func (c *Client) GetAccounts(ctx context.Context, request OptGetAccountsReq) (*Accounts, error)

GetAccounts invokes getAccounts operation.

Get human-friendly information about several accounts without low-level details.

POST /v2/accounts/_bulk

func (*Client) GetAllAuctions

func (c *Client) GetAllAuctions(ctx context.Context, params GetAllAuctionsParams) (*Auctions, error)

GetAllAuctions invokes getAllAuctions operation.

Get all auctions.

GET /v2/dns/auctions

func (*Client) GetAllRawShardsInfo

func (c *Client) GetAllRawShardsInfo(ctx context.Context, params GetAllRawShardsInfoParams) (*GetAllRawShardsInfoOK, error)

GetAllRawShardsInfo invokes getAllRawShardsInfo operation.

Get all raw shards info.

GET /v2/liteserver/get_all_shards_info/{block_id}

func (*Client) GetBlockchainAccountTransactions

func (c *Client) GetBlockchainAccountTransactions(ctx context.Context, params GetBlockchainAccountTransactionsParams) (*Transactions, error)

GetBlockchainAccountTransactions invokes getBlockchainAccountTransactions operation.

Get account transactions.

GET /v2/blockchain/accounts/{account_id}/transactions

func (*Client) GetBlockchainBlock

func (c *Client) GetBlockchainBlock(ctx context.Context, params GetBlockchainBlockParams) (*BlockchainBlock, error)

GetBlockchainBlock invokes getBlockchainBlock operation.

Get blockchain block data.

GET /v2/blockchain/blocks/{block_id}

func (*Client) GetBlockchainBlockTransactions

func (c *Client) GetBlockchainBlockTransactions(ctx context.Context, params GetBlockchainBlockTransactionsParams) (*Transactions, error)

GetBlockchainBlockTransactions invokes getBlockchainBlockTransactions operation.

Get transactions from block.

GET /v2/blockchain/blocks/{block_id}/transactions

func (*Client) GetBlockchainConfig

func (c *Client) GetBlockchainConfig(ctx context.Context) (*BlockchainConfig, error)

GetBlockchainConfig invokes getBlockchainConfig operation.

Get blockchain config.

GET /v2/blockchain/config

func (*Client) GetBlockchainMasterchainHead

func (c *Client) GetBlockchainMasterchainHead(ctx context.Context) (*BlockchainBlock, error)

GetBlockchainMasterchainHead invokes getBlockchainMasterchainHead operation.

Get last known masterchain block.

GET /v2/blockchain/masterchain-head

func (*Client) GetBlockchainRawAccount

func (c *Client) GetBlockchainRawAccount(ctx context.Context, params GetBlockchainRawAccountParams) (*BlockchainRawAccount, error)

GetBlockchainRawAccount invokes getBlockchainRawAccount operation.

Get low-level information about an account taken directly from the blockchain.

GET /v2/blockchain/accounts/{account_id}

func (*Client) GetBlockchainTransaction

func (c *Client) GetBlockchainTransaction(ctx context.Context, params GetBlockchainTransactionParams) (*Transaction, error)

GetBlockchainTransaction invokes getBlockchainTransaction operation.

Get transaction data.

GET /v2/blockchain/transactions/{transaction_id}

func (*Client) GetBlockchainTransactionByMessageHash

func (c *Client) GetBlockchainTransactionByMessageHash(ctx context.Context, params GetBlockchainTransactionByMessageHashParams) (*Transaction, error)

GetBlockchainTransactionByMessageHash invokes getBlockchainTransactionByMessageHash operation.

Get transaction data by message hash.

GET /v2/blockchain/messages/{msg_id}/transaction

func (*Client) GetBlockchainValidators

func (c *Client) GetBlockchainValidators(ctx context.Context) (*Validators, error)

GetBlockchainValidators invokes getBlockchainValidators operation.

Get blockchain validators.

GET /v2/blockchain/validators

func (*Client) GetChartRates

func (c *Client) GetChartRates(ctx context.Context, params GetChartRatesParams) (*GetChartRatesOK, error)

GetChartRates invokes getChartRates operation.

Get chart by token.

GET /v2/rates/chart

func (*Client) GetDnsInfo

func (c *Client) GetDnsInfo(ctx context.Context, params GetDnsInfoParams) (*DomainInfo, error)

GetDnsInfo invokes getDnsInfo operation.

Get full information about domain name.

GET /v2/dns/{domain_name}

func (*Client) GetDomainBids

func (c *Client) GetDomainBids(ctx context.Context, params GetDomainBidsParams) (*DomainBids, error)

GetDomainBids invokes getDomainBids operation.

Get domain bids.

GET /v2/dns/{domain_name}/bids

func (*Client) GetEvent

func (c *Client) GetEvent(ctx context.Context, params GetEventParams) (*Event, error)

GetEvent invokes getEvent operation.

Get an event either by event ID or a hash of any transaction in a trace. An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time.

GET /v2/events/{event_id}

func (*Client) GetItemsFromCollection

func (c *Client) GetItemsFromCollection(ctx context.Context, params GetItemsFromCollectionParams) (*NftItems, error)

GetItemsFromCollection invokes getItemsFromCollection operation.

Get NFT items from collection by collection address.

GET /v2/nfts/collections/{account_id}/items

func (*Client) GetJettonHolders

func (c *Client) GetJettonHolders(ctx context.Context, params GetJettonHoldersParams) (*JettonHolders, error)

GetJettonHolders invokes getJettonHolders operation.

Get jetton's holders.

GET /v2/jettons/{account_id}/holders

func (*Client) GetJettonInfo

func (c *Client) GetJettonInfo(ctx context.Context, params GetJettonInfoParams) (*JettonInfo, error)

GetJettonInfo invokes getJettonInfo operation.

Get jetton metadata by jetton master address.

GET /v2/jettons/{account_id}

func (*Client) GetJettons

func (c *Client) GetJettons(ctx context.Context, params GetJettonsParams) (*Jettons, error)

GetJettons invokes getJettons operation.

Get a list of all indexed jetton masters in the blockchain.

GET /v2/jettons

func (*Client) GetJettonsEvents

func (c *Client) GetJettonsEvents(ctx context.Context, params GetJettonsEventsParams) (*Event, error)

GetJettonsEvents invokes getJettonsEvents operation.

Get only jetton transfers in the event.

GET /v2/events/{event_id}/jettons

func (*Client) GetNftCollection

func (c *Client) GetNftCollection(ctx context.Context, params GetNftCollectionParams) (*NftCollection, error)

GetNftCollection invokes getNftCollection operation.

Get NFT collection by collection address.

GET /v2/nfts/collections/{account_id}

func (*Client) GetNftCollections

func (c *Client) GetNftCollections(ctx context.Context, params GetNftCollectionsParams) (*NftCollections, error)

GetNftCollections invokes getNftCollections operation.

Get NFT collections.

GET /v2/nfts/collections

func (*Client) GetNftHistoryByID

func (c *Client) GetNftHistoryByID(ctx context.Context, params GetNftHistoryByIDParams) (*AccountEvents, error)

GetNftHistoryByID invokes getNftHistoryByID operation.

Get the transfer nfts history for account.

GET /v2/nfts/{account_id}/history

func (*Client) GetNftItemByAddress

func (c *Client) GetNftItemByAddress(ctx context.Context, params GetNftItemByAddressParams) (*NftItem, error)

GetNftItemByAddress invokes getNftItemByAddress operation.

Get NFT item by its address.

GET /v2/nfts/{account_id}

func (*Client) GetNftItemsByAddresses

func (c *Client) GetNftItemsByAddresses(ctx context.Context, request OptGetNftItemsByAddressesReq) (*NftItems, error)

GetNftItemsByAddresses invokes getNftItemsByAddresses operation.

Get NFT items by their addresses.

POST /v2/nfts/_bulk

func (*Client) GetRates

func (c *Client) GetRates(ctx context.Context, params GetRatesParams) (*GetRatesOK, error)

GetRates invokes getRates operation.

Get the token price to the currency.

GET /v2/rates

func (*Client) GetRawAccountState

func (c *Client) GetRawAccountState(ctx context.Context, params GetRawAccountStateParams) (*GetRawAccountStateOK, error)

GetRawAccountState invokes getRawAccountState operation.

Get raw account state.

GET /v2/liteserver/get_account_state/{account_id}

func (*Client) GetRawBlockProof

func (c *Client) GetRawBlockProof(ctx context.Context, params GetRawBlockProofParams) (*GetRawBlockProofOK, error)

GetRawBlockProof invokes getRawBlockProof operation.

Get raw block proof.

GET /v2/liteserver/get_block_proof

func (*Client) GetRawBlockchainBlock

func (c *Client) GetRawBlockchainBlock(ctx context.Context, params GetRawBlockchainBlockParams) (*GetRawBlockchainBlockOK, error)

GetRawBlockchainBlock invokes getRawBlockchainBlock operation.

Get raw blockchain block.

GET /v2/liteserver/get_block/{block_id}

func (*Client) GetRawBlockchainBlockHeader

func (c *Client) GetRawBlockchainBlockHeader(ctx context.Context, params GetRawBlockchainBlockHeaderParams) (*GetRawBlockchainBlockHeaderOK, error)

GetRawBlockchainBlockHeader invokes getRawBlockchainBlockHeader operation.

Get raw blockchain block header.

GET /v2/liteserver/get_block_header/{block_id}

func (*Client) GetRawBlockchainBlockState

func (c *Client) GetRawBlockchainBlockState(ctx context.Context, params GetRawBlockchainBlockStateParams) (*GetRawBlockchainBlockStateOK, error)

GetRawBlockchainBlockState invokes getRawBlockchainBlockState operation.

Get raw blockchain block state.

GET /v2/liteserver/get_state/{block_id}

func (*Client) GetRawConfig

func (c *Client) GetRawConfig(ctx context.Context, params GetRawConfigParams) (*GetRawConfigOK, error)

GetRawConfig invokes getRawConfig operation.

Get raw config.

GET /v2/liteserver/get_config_all/{block_id}

func (*Client) GetRawListBlockTransactions

func (c *Client) GetRawListBlockTransactions(ctx context.Context, params GetRawListBlockTransactionsParams) (*GetRawListBlockTransactionsOK, error)

GetRawListBlockTransactions invokes getRawListBlockTransactions operation.

Get raw list block transactions.

GET /v2/liteserver/list_block_transactions/{block_id}

func (*Client) GetRawMasterchainInfo

func (c *Client) GetRawMasterchainInfo(ctx context.Context) (*GetRawMasterchainInfoOK, error)

GetRawMasterchainInfo invokes getRawMasterchainInfo operation.

Get raw masterchain info.

GET /v2/liteserver/get_masterchain_info

func (*Client) GetRawMasterchainInfoExt

func (c *Client) GetRawMasterchainInfoExt(ctx context.Context, params GetRawMasterchainInfoExtParams) (*GetRawMasterchainInfoExtOK, error)

GetRawMasterchainInfoExt invokes getRawMasterchainInfoExt operation.

Get raw masterchain info ext.

GET /v2/liteserver/get_masterchain_info_ext

func (*Client) GetRawShardBlockProof

func (c *Client) GetRawShardBlockProof(ctx context.Context, params GetRawShardBlockProofParams) (*GetRawShardBlockProofOK, error)

GetRawShardBlockProof invokes getRawShardBlockProof operation.

Get raw shard block proof.

GET /v2/liteserver/get_shard_block_proof/{block_id}

func (*Client) GetRawShardInfo

func (c *Client) GetRawShardInfo(ctx context.Context, params GetRawShardInfoParams) (*GetRawShardInfoOK, error)

GetRawShardInfo invokes getRawShardInfo operation.

Get raw shard info.

GET /v2/liteserver/get_shard_info/{block_id}

func (*Client) GetRawTime

func (c *Client) GetRawTime(ctx context.Context) (*GetRawTimeOK, error)

GetRawTime invokes getRawTime operation.

Get raw time.

GET /v2/liteserver/get_time

func (*Client) GetRawTransactions

func (c *Client) GetRawTransactions(ctx context.Context, params GetRawTransactionsParams) (*GetRawTransactionsOK, error)

GetRawTransactions invokes getRawTransactions operation.

Get raw transactions.

GET /v2/liteserver/get_transactions/{account_id}

func (*Client) GetSeqno

func (c *Client) GetSeqno(ctx context.Context, account tongo.AccountID) (uint32, error)

func (*Client) GetStakingPoolHistory

func (c *Client) GetStakingPoolHistory(ctx context.Context, params GetStakingPoolHistoryParams) (*GetStakingPoolHistoryOK, error)

GetStakingPoolHistory invokes getStakingPoolHistory operation.

Pool history.

GET /v2/staking/pool/{account_id}/history

func (*Client) GetStakingPoolInfo

func (c *Client) GetStakingPoolInfo(ctx context.Context, params GetStakingPoolInfoParams) (*GetStakingPoolInfoOK, error)

GetStakingPoolInfo invokes getStakingPoolInfo operation.

Stacking pool info.

GET /v2/staking/pool/{account_id}

func (*Client) GetStakingPools

func (c *Client) GetStakingPools(ctx context.Context, params GetStakingPoolsParams) (*GetStakingPoolsOK, error)

GetStakingPools invokes getStakingPools operation.

All pools available in network.

GET /v2/staking/pools

func (*Client) GetStorageProviders

func (c *Client) GetStorageProviders(ctx context.Context) (*GetStorageProvidersOK, error)

GetStorageProviders invokes getStorageProviders operation.

Get TON storage providers deployed to the blockchain.

GET /v2/storage/providers

func (*Client) GetTonConnectPayload

func (c *Client) GetTonConnectPayload(ctx context.Context) (*GetTonConnectPayloadOK, error)

GetTonConnectPayload invokes getTonConnectPayload operation.

Get a payload for further token receipt.

GET /v2/tonconnect/payload

func (*Client) GetTrace

func (c *Client) GetTrace(ctx context.Context, params GetTraceParams) (*Trace, error)

GetTrace invokes getTrace operation.

Get the trace by trace ID or hash of any transaction in trace.

GET /v2/traces/{trace_id}

func (*Client) GetWalletBackup

func (c *Client) GetWalletBackup(ctx context.Context, params GetWalletBackupParams) (*GetWalletBackupOK, error)

GetWalletBackup invokes getWalletBackup operation.

Get backup info.

GET /v2/wallet/backup

func (*Client) GetWalletsByPublicKey

func (c *Client) GetWalletsByPublicKey(ctx context.Context, params GetWalletsByPublicKeyParams) (*Accounts, error)

GetWalletsByPublicKey invokes getWalletsByPublicKey operation.

Get wallets by public key.

GET /v2/pubkeys/{public_key}/wallets

func (*Client) ReindexAccount

func (c *Client) ReindexAccount(ctx context.Context, params ReindexAccountParams) error

ReindexAccount invokes reindexAccount operation.

Update internal cache for a particular account.

POST /v2/accounts/{account_id}/reindex

func (*Client) SearchAccounts

func (c *Client) SearchAccounts(ctx context.Context, params SearchAccountsParams) (*FoundAccounts, error)

SearchAccounts invokes searchAccounts operation.

Search by account domain name.

GET /v2/accounts/search

func (*Client) SendBlockchainMessage

func (c *Client) SendBlockchainMessage(ctx context.Context, request *SendBlockchainMessageReq) error

SendBlockchainMessage invokes sendBlockchainMessage operation.

Send message to blockchain.

POST /v2/blockchain/message

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Context, payload []byte) (uint32, error)

func (*Client) SendRawMessage

func (c *Client) SendRawMessage(ctx context.Context, request *SendRawMessageReq) (*SendRawMessageOK, error)

SendRawMessage invokes sendRawMessage operation.

Send raw message to blockchain.

POST /v2/liteserver/send_message

func (*Client) SetWalletBackup

func (c *Client) SetWalletBackup(ctx context.Context, request SetWalletBackupReq, params SetWalletBackupParams) error

SetWalletBackup invokes setWalletBackup operation.

Set backup info.

PUT /v2/wallet/backup

func (*Client) TonConnectProof

func (c *Client) TonConnectProof(ctx context.Context, request *TonConnectProofReq) (*TonConnectProofOK, error)

TonConnectProof invokes tonConnectProof operation.

Account verification and token issuance.

POST /v2/wallet/auth/proof

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

func WithTonApiKey added in v1.1.2

func WithTonApiKey(tonApiKey string) ClientOption

WithTonApiKey configures client to use tonApiKey for authorization. When working with tonapi.io, you should consider getting an API key at https://tonconsole.com/.

Example:

import (

tonapiClient "github.com/tonkeeper/opentonapi/client"

)

func main() {
   cli, _ := tonapiClient.NewClient("https://tonapi.io", tonapiClient.WithTonApiKey(tonapiKey))
}

type ComputePhase

type ComputePhase struct {
	Skipped    bool                 `json:"skipped"`
	SkipReason OptComputeSkipReason `json:"skip_reason"`
	Success    OptBool              `json:"success"`
	GasFees    OptInt64             `json:"gas_fees"`
	GasUsed    OptInt64             `json:"gas_used"`
	VMSteps    OptUint32            `json:"vm_steps"`
	ExitCode   OptInt32             `json:"exit_code"`
}

Ref: #/components/schemas/ComputePhase

func (*ComputePhase) Decode

func (s *ComputePhase) Decode(d *jx.Decoder) error

Decode decodes ComputePhase from json.

func (*ComputePhase) Encode

func (s *ComputePhase) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ComputePhase) GetExitCode

func (s *ComputePhase) GetExitCode() OptInt32

GetExitCode returns the value of ExitCode.

func (*ComputePhase) GetGasFees

func (s *ComputePhase) GetGasFees() OptInt64

GetGasFees returns the value of GasFees.

func (*ComputePhase) GetGasUsed

func (s *ComputePhase) GetGasUsed() OptInt64

GetGasUsed returns the value of GasUsed.

func (*ComputePhase) GetSkipReason

func (s *ComputePhase) GetSkipReason() OptComputeSkipReason

GetSkipReason returns the value of SkipReason.

func (*ComputePhase) GetSkipped

func (s *ComputePhase) GetSkipped() bool

GetSkipped returns the value of Skipped.

func (*ComputePhase) GetSuccess

func (s *ComputePhase) GetSuccess() OptBool

GetSuccess returns the value of Success.

func (*ComputePhase) GetVMSteps

func (s *ComputePhase) GetVMSteps() OptUint32

GetVMSteps returns the value of VMSteps.

func (*ComputePhase) MarshalJSON

func (s *ComputePhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComputePhase) SetExitCode

func (s *ComputePhase) SetExitCode(val OptInt32)

SetExitCode sets the value of ExitCode.

func (*ComputePhase) SetGasFees

func (s *ComputePhase) SetGasFees(val OptInt64)

SetGasFees sets the value of GasFees.

func (*ComputePhase) SetGasUsed

func (s *ComputePhase) SetGasUsed(val OptInt64)

SetGasUsed sets the value of GasUsed.

func (*ComputePhase) SetSkipReason

func (s *ComputePhase) SetSkipReason(val OptComputeSkipReason)

SetSkipReason sets the value of SkipReason.

func (*ComputePhase) SetSkipped

func (s *ComputePhase) SetSkipped(val bool)

SetSkipped sets the value of Skipped.

func (*ComputePhase) SetSuccess

func (s *ComputePhase) SetSuccess(val OptBool)

SetSuccess sets the value of Success.

func (*ComputePhase) SetVMSteps

func (s *ComputePhase) SetVMSteps(val OptUint32)

SetVMSteps sets the value of VMSteps.

func (*ComputePhase) UnmarshalJSON

func (s *ComputePhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComputePhase) Validate

func (s *ComputePhase) Validate() error

type ComputeSkipReason

type ComputeSkipReason string

Ref: #/components/schemas/ComputeSkipReason

const (
	ComputeSkipReasonCskipNoState  ComputeSkipReason = "cskip_no_state"
	ComputeSkipReasonCskipBadState ComputeSkipReason = "cskip_bad_state"
	ComputeSkipReasonCskipNoGas    ComputeSkipReason = "cskip_no_gas"
)

func (*ComputeSkipReason) Decode

func (s *ComputeSkipReason) Decode(d *jx.Decoder) error

Decode decodes ComputeSkipReason from json.

func (ComputeSkipReason) Encode

func (s ComputeSkipReason) Encode(e *jx.Encoder)

Encode encodes ComputeSkipReason as json.

func (ComputeSkipReason) MarshalJSON

func (s ComputeSkipReason) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ComputeSkipReason) MarshalText

func (s ComputeSkipReason) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ComputeSkipReason) UnmarshalJSON

func (s *ComputeSkipReason) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComputeSkipReason) UnmarshalText

func (s *ComputeSkipReason) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ComputeSkipReason) Validate

func (s ComputeSkipReason) Validate() error

type ContractDeployAction

type ContractDeployAction struct {
	Address    string   `json:"address"`
	Interfaces []string `json:"interfaces"`
}

Ref: #/components/schemas/ContractDeployAction

func (*ContractDeployAction) Decode

func (s *ContractDeployAction) Decode(d *jx.Decoder) error

Decode decodes ContractDeployAction from json.

func (*ContractDeployAction) Encode

func (s *ContractDeployAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ContractDeployAction) GetAddress

func (s *ContractDeployAction) GetAddress() string

GetAddress returns the value of Address.

func (*ContractDeployAction) GetInterfaces

func (s *ContractDeployAction) GetInterfaces() []string

GetInterfaces returns the value of Interfaces.

func (*ContractDeployAction) MarshalJSON

func (s *ContractDeployAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ContractDeployAction) SetAddress

func (s *ContractDeployAction) SetAddress(val string)

SetAddress sets the value of Address.

func (*ContractDeployAction) SetInterfaces

func (s *ContractDeployAction) SetInterfaces(val []string)

SetInterfaces sets the value of Interfaces.

func (*ContractDeployAction) UnmarshalJSON

func (s *ContractDeployAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ContractDeployAction) Validate

func (s *ContractDeployAction) Validate() error

type CreditPhase

type CreditPhase struct {
	FeesCollected int64 `json:"fees_collected"`
	Credit        int64 `json:"credit"`
}

Ref: #/components/schemas/CreditPhase

func (*CreditPhase) Decode

func (s *CreditPhase) Decode(d *jx.Decoder) error

Decode decodes CreditPhase from json.

func (*CreditPhase) Encode

func (s *CreditPhase) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreditPhase) GetCredit

func (s *CreditPhase) GetCredit() int64

GetCredit returns the value of Credit.

func (*CreditPhase) GetFeesCollected

func (s *CreditPhase) GetFeesCollected() int64

GetFeesCollected returns the value of FeesCollected.

func (*CreditPhase) MarshalJSON

func (s *CreditPhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreditPhase) SetCredit

func (s *CreditPhase) SetCredit(val int64)

SetCredit sets the value of Credit.

func (*CreditPhase) SetFeesCollected

func (s *CreditPhase) SetFeesCollected(val int64)

SetFeesCollected sets the value of FeesCollected.

func (*CreditPhase) UnmarshalJSON

func (s *CreditPhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DepositStakeAction

type DepositStakeAction struct {
	Amount         int64                  `json:"amount"`
	Staker         AccountAddress         `json:"staker"`
	Pool           AccountAddress         `json:"pool"`
	Implementation PoolImplementationType `json:"implementation"`
}

Validator's participation in elections. Ref: #/components/schemas/DepositStakeAction

func (*DepositStakeAction) Decode

func (s *DepositStakeAction) Decode(d *jx.Decoder) error

Decode decodes DepositStakeAction from json.

func (*DepositStakeAction) Encode

func (s *DepositStakeAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DepositStakeAction) GetAmount

func (s *DepositStakeAction) GetAmount() int64

GetAmount returns the value of Amount.

func (*DepositStakeAction) GetImplementation

func (s *DepositStakeAction) GetImplementation() PoolImplementationType

GetImplementation returns the value of Implementation.

func (*DepositStakeAction) GetPool

func (s *DepositStakeAction) GetPool() AccountAddress

GetPool returns the value of Pool.

func (*DepositStakeAction) GetStaker

func (s *DepositStakeAction) GetStaker() AccountAddress

GetStaker returns the value of Staker.

func (*DepositStakeAction) MarshalJSON

func (s *DepositStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DepositStakeAction) SetAmount

func (s *DepositStakeAction) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*DepositStakeAction) SetImplementation

func (s *DepositStakeAction) SetImplementation(val PoolImplementationType)

SetImplementation sets the value of Implementation.

func (*DepositStakeAction) SetPool

func (s *DepositStakeAction) SetPool(val AccountAddress)

SetPool sets the value of Pool.

func (*DepositStakeAction) SetStaker

func (s *DepositStakeAction) SetStaker(val AccountAddress)

SetStaker sets the value of Staker.

func (*DepositStakeAction) UnmarshalJSON

func (s *DepositStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DepositStakeAction) Validate

func (s *DepositStakeAction) Validate() error

type DnsExpiring

type DnsExpiring struct {
	Items []DnsExpiringItemsItem `json:"items"`
}

Ref: #/components/schemas/DnsExpiring

func (*DnsExpiring) Decode

func (s *DnsExpiring) Decode(d *jx.Decoder) error

Decode decodes DnsExpiring from json.

func (*DnsExpiring) Encode

func (s *DnsExpiring) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DnsExpiring) GetItems

func (s *DnsExpiring) GetItems() []DnsExpiringItemsItem

GetItems returns the value of Items.

func (*DnsExpiring) MarshalJSON

func (s *DnsExpiring) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DnsExpiring) SetItems

func (s *DnsExpiring) SetItems(val []DnsExpiringItemsItem)

SetItems sets the value of Items.

func (*DnsExpiring) UnmarshalJSON

func (s *DnsExpiring) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DnsExpiring) Validate

func (s *DnsExpiring) Validate() error

type DnsExpiringItemsItem

type DnsExpiringItemsItem struct {
	ExpiringAt int64      `json:"expiring_at"`
	Name       string     `json:"name"`
	DNSItem    OptNftItem `json:"dns_item"`
}

func (*DnsExpiringItemsItem) Decode

func (s *DnsExpiringItemsItem) Decode(d *jx.Decoder) error

Decode decodes DnsExpiringItemsItem from json.

func (*DnsExpiringItemsItem) Encode

func (s *DnsExpiringItemsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DnsExpiringItemsItem) GetDNSItem

func (s *DnsExpiringItemsItem) GetDNSItem() OptNftItem

GetDNSItem returns the value of DNSItem.

func (*DnsExpiringItemsItem) GetExpiringAt

func (s *DnsExpiringItemsItem) GetExpiringAt() int64

GetExpiringAt returns the value of ExpiringAt.

func (*DnsExpiringItemsItem) GetName

func (s *DnsExpiringItemsItem) GetName() string

GetName returns the value of Name.

func (*DnsExpiringItemsItem) MarshalJSON

func (s *DnsExpiringItemsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DnsExpiringItemsItem) SetDNSItem

func (s *DnsExpiringItemsItem) SetDNSItem(val OptNftItem)

SetDNSItem sets the value of DNSItem.

func (*DnsExpiringItemsItem) SetExpiringAt

func (s *DnsExpiringItemsItem) SetExpiringAt(val int64)

SetExpiringAt sets the value of ExpiringAt.

func (*DnsExpiringItemsItem) SetName

func (s *DnsExpiringItemsItem) SetName(val string)

SetName sets the value of Name.

func (*DnsExpiringItemsItem) UnmarshalJSON

func (s *DnsExpiringItemsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DnsExpiringItemsItem) Validate

func (s *DnsExpiringItemsItem) Validate() error

type DnsRecord

type DnsRecord struct {
	Wallet       OptWalletDNS `json:"wallet"`
	NextResolver OptString    `json:"next_resolver"`
	Sites        []string     `json:"sites"`
	// Tonstorage bag id.
	Storage OptString `json:"storage"`
}

Ref: #/components/schemas/DnsRecord

func (*DnsRecord) Decode

func (s *DnsRecord) Decode(d *jx.Decoder) error

Decode decodes DnsRecord from json.

func (*DnsRecord) Encode

func (s *DnsRecord) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DnsRecord) GetNextResolver

func (s *DnsRecord) GetNextResolver() OptString

GetNextResolver returns the value of NextResolver.

func (*DnsRecord) GetSites

func (s *DnsRecord) GetSites() []string

GetSites returns the value of Sites.

func (*DnsRecord) GetStorage

func (s *DnsRecord) GetStorage() OptString

GetStorage returns the value of Storage.

func (*DnsRecord) GetWallet

func (s *DnsRecord) GetWallet() OptWalletDNS

GetWallet returns the value of Wallet.

func (*DnsRecord) MarshalJSON

func (s *DnsRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DnsRecord) SetNextResolver

func (s *DnsRecord) SetNextResolver(val OptString)

SetNextResolver sets the value of NextResolver.

func (*DnsRecord) SetSites

func (s *DnsRecord) SetSites(val []string)

SetSites sets the value of Sites.

func (*DnsRecord) SetStorage

func (s *DnsRecord) SetStorage(val OptString)

SetStorage sets the value of Storage.

func (*DnsRecord) SetWallet

func (s *DnsRecord) SetWallet(val OptWalletDNS)

SetWallet sets the value of Wallet.

func (*DnsRecord) UnmarshalJSON

func (s *DnsRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DnsRecord) Validate

func (s *DnsRecord) Validate() error

type DnsResolveParams

type DnsResolveParams struct {
	// Domain name with .ton or .t.me.
	DomainName string
}

DnsResolveParams is parameters of dnsResolve operation.

type DomainBid

type DomainBid struct {
	Success bool           `json:"success"`
	Value   int64          `json:"value"`
	TxTime  int64          `json:"txTime"`
	TxHash  string         `json:"txHash"`
	Bidder  AccountAddress `json:"bidder"`
}

Ref: #/components/schemas/DomainBid

func (*DomainBid) Decode

func (s *DomainBid) Decode(d *jx.Decoder) error

Decode decodes DomainBid from json.

func (*DomainBid) Encode

func (s *DomainBid) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DomainBid) GetBidder

func (s *DomainBid) GetBidder() AccountAddress

GetBidder returns the value of Bidder.

func (*DomainBid) GetSuccess

func (s *DomainBid) GetSuccess() bool

GetSuccess returns the value of Success.

func (*DomainBid) GetTxHash

func (s *DomainBid) GetTxHash() string

GetTxHash returns the value of TxHash.

func (*DomainBid) GetTxTime

func (s *DomainBid) GetTxTime() int64

GetTxTime returns the value of TxTime.

func (*DomainBid) GetValue

func (s *DomainBid) GetValue() int64

GetValue returns the value of Value.

func (*DomainBid) MarshalJSON

func (s *DomainBid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainBid) SetBidder

func (s *DomainBid) SetBidder(val AccountAddress)

SetBidder sets the value of Bidder.

func (*DomainBid) SetSuccess

func (s *DomainBid) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*DomainBid) SetTxHash

func (s *DomainBid) SetTxHash(val string)

SetTxHash sets the value of TxHash.

func (*DomainBid) SetTxTime

func (s *DomainBid) SetTxTime(val int64)

SetTxTime sets the value of TxTime.

func (*DomainBid) SetValue

func (s *DomainBid) SetValue(val int64)

SetValue sets the value of Value.

func (*DomainBid) UnmarshalJSON

func (s *DomainBid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DomainBids

type DomainBids struct {
	Data []DomainBid `json:"data"`
}

Ref: #/components/schemas/DomainBids

func (*DomainBids) Decode

func (s *DomainBids) Decode(d *jx.Decoder) error

Decode decodes DomainBids from json.

func (*DomainBids) Encode

func (s *DomainBids) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DomainBids) GetData

func (s *DomainBids) GetData() []DomainBid

GetData returns the value of Data.

func (*DomainBids) MarshalJSON

func (s *DomainBids) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainBids) SetData

func (s *DomainBids) SetData(val []DomainBid)

SetData sets the value of Data.

func (*DomainBids) UnmarshalJSON

func (s *DomainBids) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DomainBids) Validate

func (s *DomainBids) Validate() error

type DomainInfo

type DomainInfo struct {
	Name string `json:"name"`
	// Date of expiring. optional. not all domain in ton has expiration date.
	ExpiringAt OptInt64   `json:"expiring_at"`
	Item       OptNftItem `json:"item"`
}

Ref: #/components/schemas/DomainInfo

func (*DomainInfo) Decode

func (s *DomainInfo) Decode(d *jx.Decoder) error

Decode decodes DomainInfo from json.

func (*DomainInfo) Encode

func (s *DomainInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DomainInfo) GetExpiringAt

func (s *DomainInfo) GetExpiringAt() OptInt64

GetExpiringAt returns the value of ExpiringAt.

func (*DomainInfo) GetItem

func (s *DomainInfo) GetItem() OptNftItem

GetItem returns the value of Item.

func (*DomainInfo) GetName

func (s *DomainInfo) GetName() string

GetName returns the value of Name.

func (*DomainInfo) MarshalJSON

func (s *DomainInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainInfo) SetExpiringAt

func (s *DomainInfo) SetExpiringAt(val OptInt64)

SetExpiringAt sets the value of ExpiringAt.

func (*DomainInfo) SetItem

func (s *DomainInfo) SetItem(val OptNftItem)

SetItem sets the value of Item.

func (*DomainInfo) SetName

func (s *DomainInfo) SetName(val string)

SetName sets the value of Name.

func (*DomainInfo) UnmarshalJSON

func (s *DomainInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DomainInfo) Validate

func (s *DomainInfo) Validate() error

type DomainNames

type DomainNames struct {
	Domains []string `json:"domains"`
}

Ref: #/components/schemas/DomainNames

func (*DomainNames) Decode

func (s *DomainNames) Decode(d *jx.Decoder) error

Decode decodes DomainNames from json.

func (*DomainNames) Encode

func (s *DomainNames) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DomainNames) GetDomains

func (s *DomainNames) GetDomains() []string

GetDomains returns the value of Domains.

func (*DomainNames) MarshalJSON

func (s *DomainNames) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainNames) SetDomains

func (s *DomainNames) SetDomains(val []string)

SetDomains sets the value of Domains.

func (*DomainNames) UnmarshalJSON

func (s *DomainNames) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DomainNames) Validate

func (s *DomainNames) Validate() error

type ElectionsDepositStakeAction

type ElectionsDepositStakeAction struct {
	Amount int64          `json:"amount"`
	Staker AccountAddress `json:"staker"`
}

Ref: #/components/schemas/ElectionsDepositStakeAction

func (*ElectionsDepositStakeAction) Decode

Decode decodes ElectionsDepositStakeAction from json.

func (*ElectionsDepositStakeAction) Encode

func (s *ElectionsDepositStakeAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ElectionsDepositStakeAction) GetAmount

func (s *ElectionsDepositStakeAction) GetAmount() int64

GetAmount returns the value of Amount.

func (*ElectionsDepositStakeAction) GetStaker

GetStaker returns the value of Staker.

func (*ElectionsDepositStakeAction) MarshalJSON

func (s *ElectionsDepositStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ElectionsDepositStakeAction) SetAmount

func (s *ElectionsDepositStakeAction) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*ElectionsDepositStakeAction) SetStaker

func (s *ElectionsDepositStakeAction) SetStaker(val AccountAddress)

SetStaker sets the value of Staker.

func (*ElectionsDepositStakeAction) UnmarshalJSON

func (s *ElectionsDepositStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ElectionsRecoverStakeAction

type ElectionsRecoverStakeAction struct {
	Amount int64          `json:"amount"`
	Staker AccountAddress `json:"staker"`
}

Ref: #/components/schemas/ElectionsRecoverStakeAction

func (*ElectionsRecoverStakeAction) Decode

Decode decodes ElectionsRecoverStakeAction from json.

func (*ElectionsRecoverStakeAction) Encode

func (s *ElectionsRecoverStakeAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ElectionsRecoverStakeAction) GetAmount

func (s *ElectionsRecoverStakeAction) GetAmount() int64

GetAmount returns the value of Amount.

func (*ElectionsRecoverStakeAction) GetStaker

GetStaker returns the value of Staker.

func (*ElectionsRecoverStakeAction) MarshalJSON

func (s *ElectionsRecoverStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ElectionsRecoverStakeAction) SetAmount

func (s *ElectionsRecoverStakeAction) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*ElectionsRecoverStakeAction) SetStaker

func (s *ElectionsRecoverStakeAction) SetStaker(val AccountAddress)

SetStaker sets the value of Staker.

func (*ElectionsRecoverStakeAction) UnmarshalJSON

func (s *ElectionsRecoverStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EmulateMessageToAccountEventParams

type EmulateMessageToAccountEventParams struct {
	AcceptLanguage OptString
	// Account ID.
	AccountID string
}

EmulateMessageToAccountEventParams is parameters of emulateMessageToAccountEvent operation.

type EmulateMessageToAccountEventReq

type EmulateMessageToAccountEventReq struct {
	Boc string `json:"boc"`
}

func (*EmulateMessageToAccountEventReq) Decode

Decode decodes EmulateMessageToAccountEventReq from json.

func (*EmulateMessageToAccountEventReq) Encode

Encode implements json.Marshaler.

func (*EmulateMessageToAccountEventReq) GetBoc

GetBoc returns the value of Boc.

func (*EmulateMessageToAccountEventReq) MarshalJSON

func (s *EmulateMessageToAccountEventReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmulateMessageToAccountEventReq) SetBoc

func (s *EmulateMessageToAccountEventReq) SetBoc(val string)

SetBoc sets the value of Boc.

func (*EmulateMessageToAccountEventReq) UnmarshalJSON

func (s *EmulateMessageToAccountEventReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EmulateMessageToEventParams

type EmulateMessageToEventParams struct {
	AcceptLanguage OptString
}

EmulateMessageToEventParams is parameters of emulateMessageToEvent operation.

type EmulateMessageToEventReq

type EmulateMessageToEventReq struct {
	Boc string `json:"boc"`
}

func (*EmulateMessageToEventReq) Decode

func (s *EmulateMessageToEventReq) Decode(d *jx.Decoder) error

Decode decodes EmulateMessageToEventReq from json.

func (*EmulateMessageToEventReq) Encode

func (s *EmulateMessageToEventReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EmulateMessageToEventReq) GetBoc

func (s *EmulateMessageToEventReq) GetBoc() string

GetBoc returns the value of Boc.

func (*EmulateMessageToEventReq) MarshalJSON

func (s *EmulateMessageToEventReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmulateMessageToEventReq) SetBoc

func (s *EmulateMessageToEventReq) SetBoc(val string)

SetBoc sets the value of Boc.

func (*EmulateMessageToEventReq) UnmarshalJSON

func (s *EmulateMessageToEventReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EmulateMessageToTraceReq

type EmulateMessageToTraceReq struct {
	Boc string `json:"boc"`
}

func (*EmulateMessageToTraceReq) Decode

func (s *EmulateMessageToTraceReq) Decode(d *jx.Decoder) error

Decode decodes EmulateMessageToTraceReq from json.

func (*EmulateMessageToTraceReq) Encode

func (s *EmulateMessageToTraceReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EmulateMessageToTraceReq) GetBoc

func (s *EmulateMessageToTraceReq) GetBoc() string

GetBoc returns the value of Boc.

func (*EmulateMessageToTraceReq) MarshalJSON

func (s *EmulateMessageToTraceReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmulateMessageToTraceReq) SetBoc

func (s *EmulateMessageToTraceReq) SetBoc(val string)

SetBoc sets the value of Boc.

func (*EmulateMessageToTraceReq) UnmarshalJSON

func (s *EmulateMessageToTraceReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EmulateMessageToWalletParams

type EmulateMessageToWalletParams struct {
	AcceptLanguage OptString
}

EmulateMessageToWalletParams is parameters of emulateMessageToWallet operation.

type EmulateMessageToWalletReq

type EmulateMessageToWalletReq struct {
	Boc string `json:"boc"`
}

func (*EmulateMessageToWalletReq) Decode

func (s *EmulateMessageToWalletReq) Decode(d *jx.Decoder) error

Decode decodes EmulateMessageToWalletReq from json.

func (*EmulateMessageToWalletReq) Encode

func (s *EmulateMessageToWalletReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EmulateMessageToWalletReq) GetBoc

func (s *EmulateMessageToWalletReq) GetBoc() string

GetBoc returns the value of Boc.

func (*EmulateMessageToWalletReq) MarshalJSON

func (s *EmulateMessageToWalletReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmulateMessageToWalletReq) SetBoc

func (s *EmulateMessageToWalletReq) SetBoc(val string)

SetBoc sets the value of Boc.

func (*EmulateMessageToWalletReq) UnmarshalJSON

func (s *EmulateMessageToWalletReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EncryptedComment

type EncryptedComment struct {
	EncryptionType string `json:"encryption_type"`
	CipherText     string `json:"cipher_text"`
}

Ref: #/components/schemas/EncryptedComment

func (*EncryptedComment) Decode

func (s *EncryptedComment) Decode(d *jx.Decoder) error

Decode decodes EncryptedComment from json.

func (*EncryptedComment) Encode

func (s *EncryptedComment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EncryptedComment) GetCipherText

func (s *EncryptedComment) GetCipherText() string

GetCipherText returns the value of CipherText.

func (*EncryptedComment) GetEncryptionType

func (s *EncryptedComment) GetEncryptionType() string

GetEncryptionType returns the value of EncryptionType.

func (*EncryptedComment) MarshalJSON

func (s *EncryptedComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EncryptedComment) SetCipherText

func (s *EncryptedComment) SetCipherText(val string)

SetCipherText sets the value of CipherText.

func (*EncryptedComment) SetEncryptionType

func (s *EncryptedComment) SetEncryptionType(val string)

SetEncryptionType sets the value of EncryptionType.

func (*EncryptedComment) UnmarshalJSON

func (s *EncryptedComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error struct {
	Error string `json:"error"`
}

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetError

func (s *Error) GetError() string

GetError returns the value of Error.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetError

func (s *Error) SetError(val string)

SetError sets the value of Error.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

ErrorStatusCode wraps Error with StatusCode.

func (*ErrorStatusCode) Error

func (s *ErrorStatusCode) Error() string

func (*ErrorStatusCode) GetResponse

func (s *ErrorStatusCode) GetResponse() Error

GetResponse returns the value of Response.

func (*ErrorStatusCode) GetStatusCode

func (s *ErrorStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorStatusCode) SetResponse

func (s *ErrorStatusCode) SetResponse(val Error)

SetResponse sets the value of Response.

func (*ErrorStatusCode) SetStatusCode

func (s *ErrorStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type Event

type Event struct {
	EventID   string      `json:"event_id"`
	Timestamp int64       `json:"timestamp"`
	Actions   []Action    `json:"actions"`
	ValueFlow []ValueFlow `json:"value_flow"`
	// Scam.
	IsScam bool  `json:"is_scam"`
	Lt     int64 `json:"lt"`
	// Event is not finished yet. Transactions still happening.
	InProgress bool `json:"in_progress"`
}

Ref: #/components/schemas/Event

func (*Event) Decode

func (s *Event) Decode(d *jx.Decoder) error

Decode decodes Event from json.

func (*Event) Encode

func (s *Event) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Event) GetActions

func (s *Event) GetActions() []Action

GetActions returns the value of Actions.

func (*Event) GetEventID

func (s *Event) GetEventID() string

GetEventID returns the value of EventID.

func (*Event) GetInProgress

func (s *Event) GetInProgress() bool

GetInProgress returns the value of InProgress.

func (*Event) GetIsScam

func (s *Event) GetIsScam() bool

GetIsScam returns the value of IsScam.

func (*Event) GetLt

func (s *Event) GetLt() int64

GetLt returns the value of Lt.

func (*Event) GetTimestamp

func (s *Event) GetTimestamp() int64

GetTimestamp returns the value of Timestamp.

func (*Event) GetValueFlow

func (s *Event) GetValueFlow() []ValueFlow

GetValueFlow returns the value of ValueFlow.

func (*Event) MarshalJSON

func (s *Event) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Event) SetActions

func (s *Event) SetActions(val []Action)

SetActions sets the value of Actions.

func (*Event) SetEventID

func (s *Event) SetEventID(val string)

SetEventID sets the value of EventID.

func (*Event) SetInProgress

func (s *Event) SetInProgress(val bool)

SetInProgress sets the value of InProgress.

func (*Event) SetIsScam

func (s *Event) SetIsScam(val bool)

SetIsScam sets the value of IsScam.

func (*Event) SetLt

func (s *Event) SetLt(val int64)

SetLt sets the value of Lt.

func (*Event) SetTimestamp

func (s *Event) SetTimestamp(val int64)

SetTimestamp sets the value of Timestamp.

func (*Event) SetValueFlow

func (s *Event) SetValueFlow(val []ValueFlow)

SetValueFlow sets the value of ValueFlow.

func (*Event) UnmarshalJSON

func (s *Event) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Event) Validate

func (s *Event) Validate() error

type ExecGetMethodForBlockchainAccountParams

type ExecGetMethodForBlockchainAccountParams struct {
	// Account ID.
	AccountID string
	// Contract get method name.
	MethodName string
	Args       []string
}

ExecGetMethodForBlockchainAccountParams is parameters of execGetMethodForBlockchainAccount operation.

type FoundAccounts

type FoundAccounts struct {
	Addresses []FoundAccountsAddressesItem `json:"addresses"`
}

Ref: #/components/schemas/FoundAccounts

func (*FoundAccounts) Decode

func (s *FoundAccounts) Decode(d *jx.Decoder) error

Decode decodes FoundAccounts from json.

func (*FoundAccounts) Encode

func (s *FoundAccounts) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FoundAccounts) GetAddresses

func (s *FoundAccounts) GetAddresses() []FoundAccountsAddressesItem

GetAddresses returns the value of Addresses.

func (*FoundAccounts) MarshalJSON

func (s *FoundAccounts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FoundAccounts) SetAddresses

func (s *FoundAccounts) SetAddresses(val []FoundAccountsAddressesItem)

SetAddresses sets the value of Addresses.

func (*FoundAccounts) UnmarshalJSON

func (s *FoundAccounts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FoundAccounts) Validate

func (s *FoundAccounts) Validate() error

type FoundAccountsAddressesItem

type FoundAccountsAddressesItem struct {
	Address string `json:"address"`
	Name    string `json:"name"`
	Preview string `json:"preview"`
}

func (*FoundAccountsAddressesItem) Decode

Decode decodes FoundAccountsAddressesItem from json.

func (*FoundAccountsAddressesItem) Encode

func (s *FoundAccountsAddressesItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FoundAccountsAddressesItem) GetAddress

func (s *FoundAccountsAddressesItem) GetAddress() string

GetAddress returns the value of Address.

func (*FoundAccountsAddressesItem) GetName

func (s *FoundAccountsAddressesItem) GetName() string

GetName returns the value of Name.

func (*FoundAccountsAddressesItem) GetPreview

func (s *FoundAccountsAddressesItem) GetPreview() string

GetPreview returns the value of Preview.

func (*FoundAccountsAddressesItem) MarshalJSON

func (s *FoundAccountsAddressesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FoundAccountsAddressesItem) SetAddress

func (s *FoundAccountsAddressesItem) SetAddress(val string)

SetAddress sets the value of Address.

func (*FoundAccountsAddressesItem) SetName

func (s *FoundAccountsAddressesItem) SetName(val string)

SetName sets the value of Name.

func (*FoundAccountsAddressesItem) SetPreview

func (s *FoundAccountsAddressesItem) SetPreview(val string)

SetPreview sets the value of Preview.

func (*FoundAccountsAddressesItem) UnmarshalJSON

func (s *FoundAccountsAddressesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAccountDiffOK

type GetAccountDiffOK struct {
	BalanceChange int64 `json:"balance_change"`
}

func (*GetAccountDiffOK) Decode

func (s *GetAccountDiffOK) Decode(d *jx.Decoder) error

Decode decodes GetAccountDiffOK from json.

func (*GetAccountDiffOK) Encode

func (s *GetAccountDiffOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAccountDiffOK) GetBalanceChange

func (s *GetAccountDiffOK) GetBalanceChange() int64

GetBalanceChange returns the value of BalanceChange.

func (*GetAccountDiffOK) MarshalJSON

func (s *GetAccountDiffOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountDiffOK) SetBalanceChange

func (s *GetAccountDiffOK) SetBalanceChange(val int64)

SetBalanceChange sets the value of BalanceChange.

func (*GetAccountDiffOK) UnmarshalJSON

func (s *GetAccountDiffOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAccountDiffParams

type GetAccountDiffParams struct {
	// Account ID.
	AccountID string
	StartDate int64
	EndDate   int64
}

GetAccountDiffParams is parameters of getAccountDiff operation.

type GetAccountDnsExpiringParams

type GetAccountDnsExpiringParams struct {
	// Account ID.
	AccountID string
	// Number of days before expiration.
	Period OptInt
}

GetAccountDnsExpiringParams is parameters of getAccountDnsExpiring operation.

type GetAccountEventParams

type GetAccountEventParams struct {
	// Account ID.
	AccountID string
	// Event ID or transaction hash in hex (without 0x) or base64url format.
	EventID        string
	AcceptLanguage OptString
	// Filter actions where requested account is not real subject (for example sender or receiver jettons).
	SubjectOnly OptBool
}

GetAccountEventParams is parameters of getAccountEvent operation.

type GetAccountEventsParams

type GetAccountEventsParams struct {
	// Account ID.
	AccountID      string
	AcceptLanguage OptString
	// Show only events that are initiated by this account.
	Initiator OptBool
	// Filter actions where requested account is not real subject (for example sender or receiver jettons).
	SubjectOnly OptBool
	// Omit this parameter to get last events.
	BeforeLt  OptInt64
	Limit     int
	StartDate OptInt64
	EndDate   OptInt64
}

GetAccountEventsParams is parameters of getAccountEvents operation.

type GetAccountInfoByStateInitReq

type GetAccountInfoByStateInitReq struct {
	StateInit string `json:"state_init"`
}

func (*GetAccountInfoByStateInitReq) Decode

Decode decodes GetAccountInfoByStateInitReq from json.

func (*GetAccountInfoByStateInitReq) Encode

func (s *GetAccountInfoByStateInitReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAccountInfoByStateInitReq) GetStateInit

func (s *GetAccountInfoByStateInitReq) GetStateInit() string

GetStateInit returns the value of StateInit.

func (*GetAccountInfoByStateInitReq) MarshalJSON

func (s *GetAccountInfoByStateInitReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountInfoByStateInitReq) SetStateInit

func (s *GetAccountInfoByStateInitReq) SetStateInit(val string)

SetStateInit sets the value of StateInit.

func (*GetAccountInfoByStateInitReq) UnmarshalJSON

func (s *GetAccountInfoByStateInitReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAccountJettonHistoryByIDParams

type GetAccountJettonHistoryByIDParams struct {
	// Account ID.
	AccountID string
	// Jetton ID.
	JettonID       string
	AcceptLanguage OptString
	// Omit this parameter to get last events.
	BeforeLt  OptInt64
	Limit     int
	StartDate OptInt64
	EndDate   OptInt64
}

GetAccountJettonHistoryByIDParams is parameters of getAccountJettonHistoryByID operation.

type GetAccountJettonsBalancesParams

type GetAccountJettonsBalancesParams struct {
	// Account ID.
	AccountID string
}

GetAccountJettonsBalancesParams is parameters of getAccountJettonsBalances operation.

type GetAccountJettonsHistoryParams

type GetAccountJettonsHistoryParams struct {
	// Account ID.
	AccountID      string
	AcceptLanguage OptString
	// Omit this parameter to get last events.
	BeforeLt  OptInt64
	Limit     int
	StartDate OptInt64
	EndDate   OptInt64
}

GetAccountJettonsHistoryParams is parameters of getAccountJettonsHistory operation.

type GetAccountNftHistoryParams

type GetAccountNftHistoryParams struct {
	// Account ID.
	AccountID      string
	AcceptLanguage OptString
	// Omit this parameter to get last events.
	BeforeLt  OptInt64
	Limit     int
	StartDate OptInt64
	EndDate   OptInt64
}

GetAccountNftHistoryParams is parameters of getAccountNftHistory operation.

type GetAccountNftItemsParams

type GetAccountNftItemsParams struct {
	// Account ID.
	AccountID string
	// Nft collection.
	Collection OptString
	Limit      OptInt
	Offset     OptInt
	// Selling nft items in ton implemented usually via transfer items to special selling account. This
	// option enables including items which owned not directly.
	IndirectOwnership OptBool
}

GetAccountNftItemsParams is parameters of getAccountNftItems operation.

type GetAccountNominatorsPoolsParams

type GetAccountNominatorsPoolsParams struct {
	// Account ID.
	AccountID string
}

GetAccountNominatorsPoolsParams is parameters of getAccountNominatorsPools operation.

type GetAccountParams

type GetAccountParams struct {
	// Account ID.
	AccountID string
}

GetAccountParams is parameters of getAccount operation.

type GetAccountPublicKeyOK

type GetAccountPublicKeyOK struct {
	PublicKey string `json:"public_key"`
}

func (*GetAccountPublicKeyOK) Decode

func (s *GetAccountPublicKeyOK) Decode(d *jx.Decoder) error

Decode decodes GetAccountPublicKeyOK from json.

func (*GetAccountPublicKeyOK) Encode

func (s *GetAccountPublicKeyOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAccountPublicKeyOK) GetPublicKey

func (s *GetAccountPublicKeyOK) GetPublicKey() string

GetPublicKey returns the value of PublicKey.

func (*GetAccountPublicKeyOK) MarshalJSON

func (s *GetAccountPublicKeyOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountPublicKeyOK) SetPublicKey

func (s *GetAccountPublicKeyOK) SetPublicKey(val string)

SetPublicKey sets the value of PublicKey.

func (*GetAccountPublicKeyOK) UnmarshalJSON

func (s *GetAccountPublicKeyOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAccountPublicKeyParams

type GetAccountPublicKeyParams struct {
	// Account ID.
	AccountID string
}

GetAccountPublicKeyParams is parameters of getAccountPublicKey operation.

type GetAccountSeqnoParams

type GetAccountSeqnoParams struct {
	// Account ID.
	AccountID string
}

GetAccountSeqnoParams is parameters of getAccountSeqno operation.

type GetAccountSubscriptionsParams

type GetAccountSubscriptionsParams struct {
	// Account ID.
	AccountID string
}

GetAccountSubscriptionsParams is parameters of getAccountSubscriptions operation.

type GetAccountTracesParams

type GetAccountTracesParams struct {
	// Account ID.
	AccountID string
	Limit     OptInt
}

GetAccountTracesParams is parameters of getAccountTraces operation.

type GetAccountsReq

type GetAccountsReq struct {
	AccountIds []string `json:"account_ids"`
}

func (*GetAccountsReq) Decode

func (s *GetAccountsReq) Decode(d *jx.Decoder) error

Decode decodes GetAccountsReq from json.

func (*GetAccountsReq) Encode

func (s *GetAccountsReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAccountsReq) GetAccountIds

func (s *GetAccountsReq) GetAccountIds() []string

GetAccountIds returns the value of AccountIds.

func (*GetAccountsReq) MarshalJSON

func (s *GetAccountsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountsReq) SetAccountIds

func (s *GetAccountsReq) SetAccountIds(val []string)

SetAccountIds sets the value of AccountIds.

func (*GetAccountsReq) UnmarshalJSON

func (s *GetAccountsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAccountsReq) Validate

func (s *GetAccountsReq) Validate() error

type GetAllAuctionsParams

type GetAllAuctionsParams struct {
	// Domain filter for current auctions "ton" or "t.me".
	Tld OptString
}

GetAllAuctionsParams is parameters of getAllAuctions operation.

type GetAllRawShardsInfoOK

type GetAllRawShardsInfoOK struct {
	ID    BlockRaw `json:"id"`
	Proof string   `json:"proof"`
	Data  string   `json:"data"`
}

func (*GetAllRawShardsInfoOK) Decode

func (s *GetAllRawShardsInfoOK) Decode(d *jx.Decoder) error

Decode decodes GetAllRawShardsInfoOK from json.

func (*GetAllRawShardsInfoOK) Encode

func (s *GetAllRawShardsInfoOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAllRawShardsInfoOK) GetData

func (s *GetAllRawShardsInfoOK) GetData() string

GetData returns the value of Data.

func (*GetAllRawShardsInfoOK) GetID

func (s *GetAllRawShardsInfoOK) GetID() BlockRaw

GetID returns the value of ID.

func (*GetAllRawShardsInfoOK) GetProof

func (s *GetAllRawShardsInfoOK) GetProof() string

GetProof returns the value of Proof.

func (*GetAllRawShardsInfoOK) MarshalJSON

func (s *GetAllRawShardsInfoOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllRawShardsInfoOK) SetData

func (s *GetAllRawShardsInfoOK) SetData(val string)

SetData sets the value of Data.

func (*GetAllRawShardsInfoOK) SetID

func (s *GetAllRawShardsInfoOK) SetID(val BlockRaw)

SetID sets the value of ID.

func (*GetAllRawShardsInfoOK) SetProof

func (s *GetAllRawShardsInfoOK) SetProof(val string)

SetProof sets the value of Proof.

func (*GetAllRawShardsInfoOK) UnmarshalJSON

func (s *GetAllRawShardsInfoOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllRawShardsInfoParams

type GetAllRawShardsInfoParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
}

GetAllRawShardsInfoParams is parameters of getAllRawShardsInfo operation.

type GetBlockchainAccountTransactionsParams

type GetBlockchainAccountTransactionsParams struct {
	// Account ID.
	AccountID string
	// Omit this parameter to get last transactions.
	AfterLt OptInt64
	// Omit this parameter to get last transactions.
	BeforeLt OptInt64
	Limit    OptInt32
}

GetBlockchainAccountTransactionsParams is parameters of getBlockchainAccountTransactions operation.

type GetBlockchainBlockParams

type GetBlockchainBlockParams struct {
	// Block ID.
	BlockID string
}

GetBlockchainBlockParams is parameters of getBlockchainBlock operation.

type GetBlockchainBlockTransactionsParams

type GetBlockchainBlockTransactionsParams struct {
	// Block ID.
	BlockID string
}

GetBlockchainBlockTransactionsParams is parameters of getBlockchainBlockTransactions operation.

type GetBlockchainRawAccountParams

type GetBlockchainRawAccountParams struct {
	// Account ID.
	AccountID string
}

GetBlockchainRawAccountParams is parameters of getBlockchainRawAccount operation.

type GetBlockchainTransactionByMessageHashParams

type GetBlockchainTransactionByMessageHashParams struct {
	// Message ID.
	MsgID string
}

GetBlockchainTransactionByMessageHashParams is parameters of getBlockchainTransactionByMessageHash operation.

type GetBlockchainTransactionParams

type GetBlockchainTransactionParams struct {
	// Transaction ID.
	TransactionID string
}

GetBlockchainTransactionParams is parameters of getBlockchainTransaction operation.

type GetChartRatesOK

type GetChartRatesOK struct {
	Points jx.Raw `json:"points"`
}

func (*GetChartRatesOK) Decode

func (s *GetChartRatesOK) Decode(d *jx.Decoder) error

Decode decodes GetChartRatesOK from json.

func (*GetChartRatesOK) Encode

func (s *GetChartRatesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetChartRatesOK) GetPoints

func (s *GetChartRatesOK) GetPoints() jx.Raw

GetPoints returns the value of Points.

func (*GetChartRatesOK) MarshalJSON

func (s *GetChartRatesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetChartRatesOK) SetPoints

func (s *GetChartRatesOK) SetPoints(val jx.Raw)

SetPoints sets the value of Points.

func (*GetChartRatesOK) UnmarshalJSON

func (s *GetChartRatesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetChartRatesParams

type GetChartRatesParams struct {
	// Accept jetton master address.
	Token     string
	Currency  OptString
	StartDate OptInt64
	EndDate   OptInt64
}

GetChartRatesParams is parameters of getChartRates operation.

type GetDnsInfoParams

type GetDnsInfoParams struct {
	// Domain name with .ton or .t.me.
	DomainName string
}

GetDnsInfoParams is parameters of getDnsInfo operation.

type GetDomainBidsParams

type GetDomainBidsParams struct {
	// Domain name with .ton or .t.me.
	DomainName string
}

GetDomainBidsParams is parameters of getDomainBids operation.

type GetEventParams

type GetEventParams struct {
	// Event ID or transaction hash in hex (without 0x) or base64url format.
	EventID        string
	AcceptLanguage OptString
}

GetEventParams is parameters of getEvent operation.

type GetItemsFromCollectionParams

type GetItemsFromCollectionParams struct {
	// Account ID.
	AccountID string
	Limit     OptInt
	Offset    OptInt
}

GetItemsFromCollectionParams is parameters of getItemsFromCollection operation.

type GetJettonHoldersParams

type GetJettonHoldersParams struct {
	// Account ID.
	AccountID string
	Limit     OptInt
	Offset    OptInt
}

GetJettonHoldersParams is parameters of getJettonHolders operation.

type GetJettonInfoParams

type GetJettonInfoParams struct {
	// Account ID.
	AccountID string
}

GetJettonInfoParams is parameters of getJettonInfo operation.

type GetJettonsEventsParams

type GetJettonsEventsParams struct {
	// Event ID or transaction hash in hex (without 0x) or base64url format.
	EventID        string
	AcceptLanguage OptString
}

GetJettonsEventsParams is parameters of getJettonsEvents operation.

type GetJettonsParams

type GetJettonsParams struct {
	Limit  OptInt32
	Offset OptInt32
}

GetJettonsParams is parameters of getJettons operation.

type GetNftCollectionParams

type GetNftCollectionParams struct {
	// Account ID.
	AccountID string
}

GetNftCollectionParams is parameters of getNftCollection operation.

type GetNftCollectionsParams

type GetNftCollectionsParams struct {
	Limit  OptInt32
	Offset OptInt32
}

GetNftCollectionsParams is parameters of getNftCollections operation.

type GetNftHistoryByIDParams

type GetNftHistoryByIDParams struct {
	// Account ID.
	AccountID      string
	AcceptLanguage OptString
	// Omit this parameter to get last events.
	BeforeLt  OptInt64
	Limit     int
	StartDate OptInt64
	EndDate   OptInt64
}

GetNftHistoryByIDParams is parameters of getNftHistoryByID operation.

type GetNftItemByAddressParams

type GetNftItemByAddressParams struct {
	// Account ID.
	AccountID string
}

GetNftItemByAddressParams is parameters of getNftItemByAddress operation.

type GetNftItemsByAddressesReq

type GetNftItemsByAddressesReq struct {
	AccountIds []string `json:"account_ids"`
}

func (*GetNftItemsByAddressesReq) Decode

func (s *GetNftItemsByAddressesReq) Decode(d *jx.Decoder) error

Decode decodes GetNftItemsByAddressesReq from json.

func (*GetNftItemsByAddressesReq) Encode

func (s *GetNftItemsByAddressesReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetNftItemsByAddressesReq) GetAccountIds

func (s *GetNftItemsByAddressesReq) GetAccountIds() []string

GetAccountIds returns the value of AccountIds.

func (*GetNftItemsByAddressesReq) MarshalJSON

func (s *GetNftItemsByAddressesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetNftItemsByAddressesReq) SetAccountIds

func (s *GetNftItemsByAddressesReq) SetAccountIds(val []string)

SetAccountIds sets the value of AccountIds.

func (*GetNftItemsByAddressesReq) UnmarshalJSON

func (s *GetNftItemsByAddressesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetNftItemsByAddressesReq) Validate

func (s *GetNftItemsByAddressesReq) Validate() error

type GetRatesOK

type GetRatesOK struct {
	Rates jx.Raw `json:"rates"`
}

func (*GetRatesOK) Decode

func (s *GetRatesOK) Decode(d *jx.Decoder) error

Decode decodes GetRatesOK from json.

func (*GetRatesOK) Encode

func (s *GetRatesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRatesOK) GetRates

func (s *GetRatesOK) GetRates() jx.Raw

GetRates returns the value of Rates.

func (*GetRatesOK) MarshalJSON

func (s *GetRatesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRatesOK) SetRates

func (s *GetRatesOK) SetRates(val jx.Raw)

SetRates sets the value of Rates.

func (*GetRatesOK) UnmarshalJSON

func (s *GetRatesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRatesParams

type GetRatesParams struct {
	// Accept ton and jetton master addresses, separated by commas.
	Tokens string
	// Accept ton and all possible fiat currencies, separated by commas.
	Currencies string
}

GetRatesParams is parameters of getRates operation.

type GetRawAccountStateOK

type GetRawAccountStateOK struct {
	ID         BlockRaw `json:"id"`
	Shardblk   BlockRaw `json:"shardblk"`
	ShardProof string   `json:"shard_proof"`
	Proof      string   `json:"proof"`
	State      string   `json:"state"`
}

func (*GetRawAccountStateOK) Decode

func (s *GetRawAccountStateOK) Decode(d *jx.Decoder) error

Decode decodes GetRawAccountStateOK from json.

func (*GetRawAccountStateOK) Encode

func (s *GetRawAccountStateOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawAccountStateOK) GetID

func (s *GetRawAccountStateOK) GetID() BlockRaw

GetID returns the value of ID.

func (*GetRawAccountStateOK) GetProof

func (s *GetRawAccountStateOK) GetProof() string

GetProof returns the value of Proof.

func (*GetRawAccountStateOK) GetShardProof

func (s *GetRawAccountStateOK) GetShardProof() string

GetShardProof returns the value of ShardProof.

func (*GetRawAccountStateOK) GetShardblk

func (s *GetRawAccountStateOK) GetShardblk() BlockRaw

GetShardblk returns the value of Shardblk.

func (*GetRawAccountStateOK) GetState

func (s *GetRawAccountStateOK) GetState() string

GetState returns the value of State.

func (*GetRawAccountStateOK) MarshalJSON

func (s *GetRawAccountStateOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawAccountStateOK) SetID

func (s *GetRawAccountStateOK) SetID(val BlockRaw)

SetID sets the value of ID.

func (*GetRawAccountStateOK) SetProof

func (s *GetRawAccountStateOK) SetProof(val string)

SetProof sets the value of Proof.

func (*GetRawAccountStateOK) SetShardProof

func (s *GetRawAccountStateOK) SetShardProof(val string)

SetShardProof sets the value of ShardProof.

func (*GetRawAccountStateOK) SetShardblk

func (s *GetRawAccountStateOK) SetShardblk(val BlockRaw)

SetShardblk sets the value of Shardblk.

func (*GetRawAccountStateOK) SetState

func (s *GetRawAccountStateOK) SetState(val string)

SetState sets the value of State.

func (*GetRawAccountStateOK) UnmarshalJSON

func (s *GetRawAccountStateOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawAccountStateParams

type GetRawAccountStateParams struct {
	// Account ID.
	AccountID string
}

GetRawAccountStateParams is parameters of getRawAccountState operation.

type GetRawBlockProofOK

type GetRawBlockProofOK struct {
	Complete bool                          `json:"complete"`
	From     BlockRaw                      `json:"from"`
	To       BlockRaw                      `json:"to"`
	Steps    []GetRawBlockProofOKStepsItem `json:"steps"`
}

func (*GetRawBlockProofOK) Decode

func (s *GetRawBlockProofOK) Decode(d *jx.Decoder) error

Decode decodes GetRawBlockProofOK from json.

func (*GetRawBlockProofOK) Encode

func (s *GetRawBlockProofOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawBlockProofOK) GetComplete

func (s *GetRawBlockProofOK) GetComplete() bool

GetComplete returns the value of Complete.

func (*GetRawBlockProofOK) GetFrom

func (s *GetRawBlockProofOK) GetFrom() BlockRaw

GetFrom returns the value of From.

func (*GetRawBlockProofOK) GetSteps

GetSteps returns the value of Steps.

func (*GetRawBlockProofOK) GetTo

func (s *GetRawBlockProofOK) GetTo() BlockRaw

GetTo returns the value of To.

func (*GetRawBlockProofOK) MarshalJSON

func (s *GetRawBlockProofOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockProofOK) SetComplete

func (s *GetRawBlockProofOK) SetComplete(val bool)

SetComplete sets the value of Complete.

func (*GetRawBlockProofOK) SetFrom

func (s *GetRawBlockProofOK) SetFrom(val BlockRaw)

SetFrom sets the value of From.

func (*GetRawBlockProofOK) SetSteps

SetSteps sets the value of Steps.

func (*GetRawBlockProofOK) SetTo

func (s *GetRawBlockProofOK) SetTo(val BlockRaw)

SetTo sets the value of To.

func (*GetRawBlockProofOK) UnmarshalJSON

func (s *GetRawBlockProofOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawBlockProofOK) Validate

func (s *GetRawBlockProofOK) Validate() error

type GetRawBlockProofOKStepsItem

type GetRawBlockProofOKStepsItem struct {
	LiteServerBlockLinkBack    GetRawBlockProofOKStepsItemLiteServerBlockLinkBack    `json:"lite_server_block_link_back"`
	LiteServerBlockLinkForward GetRawBlockProofOKStepsItemLiteServerBlockLinkForward `json:"lite_server_block_link_forward"`
}

func (*GetRawBlockProofOKStepsItem) Decode

Decode decodes GetRawBlockProofOKStepsItem from json.

func (*GetRawBlockProofOKStepsItem) Encode

func (s *GetRawBlockProofOKStepsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawBlockProofOKStepsItem) GetLiteServerBlockLinkBack

GetLiteServerBlockLinkBack returns the value of LiteServerBlockLinkBack.

func (*GetRawBlockProofOKStepsItem) GetLiteServerBlockLinkForward

GetLiteServerBlockLinkForward returns the value of LiteServerBlockLinkForward.

func (*GetRawBlockProofOKStepsItem) MarshalJSON

func (s *GetRawBlockProofOKStepsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockProofOKStepsItem) SetLiteServerBlockLinkBack

SetLiteServerBlockLinkBack sets the value of LiteServerBlockLinkBack.

func (*GetRawBlockProofOKStepsItem) SetLiteServerBlockLinkForward

SetLiteServerBlockLinkForward sets the value of LiteServerBlockLinkForward.

func (*GetRawBlockProofOKStepsItem) UnmarshalJSON

func (s *GetRawBlockProofOKStepsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawBlockProofOKStepsItem) Validate

func (s *GetRawBlockProofOKStepsItem) Validate() error

type GetRawBlockProofOKStepsItemLiteServerBlockLinkBack

type GetRawBlockProofOKStepsItemLiteServerBlockLinkBack struct {
	ToKeyBlock bool     `json:"to_key_block"`
	From       BlockRaw `json:"from"`
	To         BlockRaw `json:"to"`
	DestProof  string   `json:"dest_proof"`
	Proof      string   `json:"proof"`
	StateProof string   `json:"state_proof"`
}

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) Decode

Decode decodes GetRawBlockProofOKStepsItemLiteServerBlockLinkBack from json.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) Encode

Encode implements json.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) GetDestProof

GetDestProof returns the value of DestProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) GetFrom

GetFrom returns the value of From.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) GetProof

GetProof returns the value of Proof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) GetStateProof

GetStateProof returns the value of StateProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) GetTo

GetTo returns the value of To.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) GetToKeyBlock

GetToKeyBlock returns the value of ToKeyBlock.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) SetDestProof

SetDestProof sets the value of DestProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) SetFrom

SetFrom sets the value of From.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) SetProof

SetProof sets the value of Proof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) SetStateProof

SetStateProof sets the value of StateProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) SetTo

SetTo sets the value of To.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) SetToKeyBlock

SetToKeyBlock sets the value of ToKeyBlock.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkBack) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawBlockProofOKStepsItemLiteServerBlockLinkForward

type GetRawBlockProofOKStepsItemLiteServerBlockLinkForward struct {
	ToKeyBlock  bool                                                            `json:"to_key_block"`
	From        BlockRaw                                                        `json:"from"`
	To          BlockRaw                                                        `json:"to"`
	DestProof   string                                                          `json:"dest_proof"`
	ConfigProof string                                                          `json:"config_proof"`
	Signatures  GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures `json:"signatures"`
}

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) Decode

Decode decodes GetRawBlockProofOKStepsItemLiteServerBlockLinkForward from json.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) Encode

Encode implements json.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) GetConfigProof

GetConfigProof returns the value of ConfigProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) GetDestProof

GetDestProof returns the value of DestProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) GetFrom

GetFrom returns the value of From.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) GetSignatures

GetSignatures returns the value of Signatures.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) GetTo

GetTo returns the value of To.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) GetToKeyBlock

GetToKeyBlock returns the value of ToKeyBlock.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) SetConfigProof

SetConfigProof sets the value of ConfigProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) SetDestProof

SetDestProof sets the value of DestProof.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) SetFrom

SetFrom sets the value of From.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) SetSignatures

SetSignatures sets the value of Signatures.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) SetTo

SetTo sets the value of To.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) SetToKeyBlock

SetToKeyBlock sets the value of ToKeyBlock.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForward) Validate

type GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures

type GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures struct {
	ValidatorSetHash uint32                                                                          `json:"validator_set_hash"`
	CatchainSeqno    uint32                                                                          `json:"catchain_seqno"`
	Signatures       []GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem `json:"signatures"`
}

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) Decode

Decode decodes GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures from json.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) Encode

Encode implements json.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) GetCatchainSeqno

GetCatchainSeqno returns the value of CatchainSeqno.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) GetSignatures

GetSignatures returns the value of Signatures.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) GetValidatorSetHash

GetValidatorSetHash returns the value of ValidatorSetHash.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) SetCatchainSeqno

SetCatchainSeqno sets the value of CatchainSeqno.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) SetSignatures

SetSignatures sets the value of Signatures.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) SetValidatorSetHash

SetValidatorSetHash sets the value of ValidatorSetHash.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignatures) Validate

type GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem

type GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem struct {
	NodeIDShort string `json:"node_id_short"`
	Signature   string `json:"signature"`
}

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) Decode

Decode decodes GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem from json.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) Encode

Encode implements json.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) GetNodeIDShort

GetNodeIDShort returns the value of NodeIDShort.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) GetSignature

GetSignature returns the value of Signature.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) SetNodeIDShort

SetNodeIDShort sets the value of NodeIDShort.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) SetSignature

SetSignature sets the value of Signature.

func (*GetRawBlockProofOKStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawBlockProofParams

type GetRawBlockProofParams struct {
	// Known block: (workchain,shard,seqno,root_hash,file_hash).
	KnownBlock string
	// Target block: (workchain,shard,seqno,root_hash,file_hash).
	TargetBlock OptString
	// Mode.
	Mode uint32
}

GetRawBlockProofParams is parameters of getRawBlockProof operation.

type GetRawBlockchainBlockHeaderOK

type GetRawBlockchainBlockHeaderOK struct {
	ID          BlockRaw `json:"id"`
	Mode        uint32   `json:"mode"`
	HeaderProof string   `json:"header_proof"`
}

func (*GetRawBlockchainBlockHeaderOK) Decode

Decode decodes GetRawBlockchainBlockHeaderOK from json.

func (*GetRawBlockchainBlockHeaderOK) Encode

Encode implements json.Marshaler.

func (*GetRawBlockchainBlockHeaderOK) GetHeaderProof

func (s *GetRawBlockchainBlockHeaderOK) GetHeaderProof() string

GetHeaderProof returns the value of HeaderProof.

func (*GetRawBlockchainBlockHeaderOK) GetID

GetID returns the value of ID.

func (*GetRawBlockchainBlockHeaderOK) GetMode

GetMode returns the value of Mode.

func (*GetRawBlockchainBlockHeaderOK) MarshalJSON

func (s *GetRawBlockchainBlockHeaderOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockchainBlockHeaderOK) SetHeaderProof

func (s *GetRawBlockchainBlockHeaderOK) SetHeaderProof(val string)

SetHeaderProof sets the value of HeaderProof.

func (*GetRawBlockchainBlockHeaderOK) SetID

SetID sets the value of ID.

func (*GetRawBlockchainBlockHeaderOK) SetMode

func (s *GetRawBlockchainBlockHeaderOK) SetMode(val uint32)

SetMode sets the value of Mode.

func (*GetRawBlockchainBlockHeaderOK) UnmarshalJSON

func (s *GetRawBlockchainBlockHeaderOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawBlockchainBlockHeaderParams

type GetRawBlockchainBlockHeaderParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
	// Mode.
	Mode uint32
}

GetRawBlockchainBlockHeaderParams is parameters of getRawBlockchainBlockHeader operation.

type GetRawBlockchainBlockOK

type GetRawBlockchainBlockOK struct {
	ID   BlockRaw `json:"id"`
	Data string   `json:"data"`
}

func (*GetRawBlockchainBlockOK) Decode

func (s *GetRawBlockchainBlockOK) Decode(d *jx.Decoder) error

Decode decodes GetRawBlockchainBlockOK from json.

func (*GetRawBlockchainBlockOK) Encode

func (s *GetRawBlockchainBlockOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawBlockchainBlockOK) GetData

func (s *GetRawBlockchainBlockOK) GetData() string

GetData returns the value of Data.

func (*GetRawBlockchainBlockOK) GetID

func (s *GetRawBlockchainBlockOK) GetID() BlockRaw

GetID returns the value of ID.

func (*GetRawBlockchainBlockOK) MarshalJSON

func (s *GetRawBlockchainBlockOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockchainBlockOK) SetData

func (s *GetRawBlockchainBlockOK) SetData(val string)

SetData sets the value of Data.

func (*GetRawBlockchainBlockOK) SetID

func (s *GetRawBlockchainBlockOK) SetID(val BlockRaw)

SetID sets the value of ID.

func (*GetRawBlockchainBlockOK) UnmarshalJSON

func (s *GetRawBlockchainBlockOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawBlockchainBlockParams

type GetRawBlockchainBlockParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
}

GetRawBlockchainBlockParams is parameters of getRawBlockchainBlock operation.

type GetRawBlockchainBlockStateOK

type GetRawBlockchainBlockStateOK struct {
	ID       BlockRaw `json:"id"`
	RootHash string   `json:"root_hash"`
	FileHash string   `json:"file_hash"`
	Data     string   `json:"data"`
}

func (*GetRawBlockchainBlockStateOK) Decode

Decode decodes GetRawBlockchainBlockStateOK from json.

func (*GetRawBlockchainBlockStateOK) Encode

func (s *GetRawBlockchainBlockStateOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawBlockchainBlockStateOK) GetData

func (s *GetRawBlockchainBlockStateOK) GetData() string

GetData returns the value of Data.

func (*GetRawBlockchainBlockStateOK) GetFileHash

func (s *GetRawBlockchainBlockStateOK) GetFileHash() string

GetFileHash returns the value of FileHash.

func (*GetRawBlockchainBlockStateOK) GetID

GetID returns the value of ID.

func (*GetRawBlockchainBlockStateOK) GetRootHash

func (s *GetRawBlockchainBlockStateOK) GetRootHash() string

GetRootHash returns the value of RootHash.

func (*GetRawBlockchainBlockStateOK) MarshalJSON

func (s *GetRawBlockchainBlockStateOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawBlockchainBlockStateOK) SetData

func (s *GetRawBlockchainBlockStateOK) SetData(val string)

SetData sets the value of Data.

func (*GetRawBlockchainBlockStateOK) SetFileHash

func (s *GetRawBlockchainBlockStateOK) SetFileHash(val string)

SetFileHash sets the value of FileHash.

func (*GetRawBlockchainBlockStateOK) SetID

func (s *GetRawBlockchainBlockStateOK) SetID(val BlockRaw)

SetID sets the value of ID.

func (*GetRawBlockchainBlockStateOK) SetRootHash

func (s *GetRawBlockchainBlockStateOK) SetRootHash(val string)

SetRootHash sets the value of RootHash.

func (*GetRawBlockchainBlockStateOK) UnmarshalJSON

func (s *GetRawBlockchainBlockStateOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawBlockchainBlockStateParams

type GetRawBlockchainBlockStateParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
}

GetRawBlockchainBlockStateParams is parameters of getRawBlockchainBlockState operation.

type GetRawConfigOK

type GetRawConfigOK struct {
	Mode        uint32   `json:"mode"`
	ID          BlockRaw `json:"id"`
	StateProof  string   `json:"state_proof"`
	ConfigProof string   `json:"config_proof"`
}

func (*GetRawConfigOK) Decode

func (s *GetRawConfigOK) Decode(d *jx.Decoder) error

Decode decodes GetRawConfigOK from json.

func (*GetRawConfigOK) Encode

func (s *GetRawConfigOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawConfigOK) GetConfigProof

func (s *GetRawConfigOK) GetConfigProof() string

GetConfigProof returns the value of ConfigProof.

func (*GetRawConfigOK) GetID

func (s *GetRawConfigOK) GetID() BlockRaw

GetID returns the value of ID.

func (*GetRawConfigOK) GetMode

func (s *GetRawConfigOK) GetMode() uint32

GetMode returns the value of Mode.

func (*GetRawConfigOK) GetStateProof

func (s *GetRawConfigOK) GetStateProof() string

GetStateProof returns the value of StateProof.

func (*GetRawConfigOK) MarshalJSON

func (s *GetRawConfigOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawConfigOK) SetConfigProof

func (s *GetRawConfigOK) SetConfigProof(val string)

SetConfigProof sets the value of ConfigProof.

func (*GetRawConfigOK) SetID

func (s *GetRawConfigOK) SetID(val BlockRaw)

SetID sets the value of ID.

func (*GetRawConfigOK) SetMode

func (s *GetRawConfigOK) SetMode(val uint32)

SetMode sets the value of Mode.

func (*GetRawConfigOK) SetStateProof

func (s *GetRawConfigOK) SetStateProof(val string)

SetStateProof sets the value of StateProof.

func (*GetRawConfigOK) UnmarshalJSON

func (s *GetRawConfigOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawConfigParams

type GetRawConfigParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
	// Mode.
	Mode uint32
}

GetRawConfigParams is parameters of getRawConfig operation.

type GetRawListBlockTransactionsOK

type GetRawListBlockTransactionsOK struct {
	ID         BlockRaw                               `json:"id"`
	ReqCount   uint32                                 `json:"req_count"`
	Incomplete bool                                   `json:"incomplete"`
	Ids        []GetRawListBlockTransactionsOKIdsItem `json:"ids"`
	Proof      string                                 `json:"proof"`
}

func (*GetRawListBlockTransactionsOK) Decode

Decode decodes GetRawListBlockTransactionsOK from json.

func (*GetRawListBlockTransactionsOK) Encode

Encode implements json.Marshaler.

func (*GetRawListBlockTransactionsOK) GetID

GetID returns the value of ID.

func (*GetRawListBlockTransactionsOK) GetIds

GetIds returns the value of Ids.

func (*GetRawListBlockTransactionsOK) GetIncomplete

func (s *GetRawListBlockTransactionsOK) GetIncomplete() bool

GetIncomplete returns the value of Incomplete.

func (*GetRawListBlockTransactionsOK) GetProof

func (s *GetRawListBlockTransactionsOK) GetProof() string

GetProof returns the value of Proof.

func (*GetRawListBlockTransactionsOK) GetReqCount

func (s *GetRawListBlockTransactionsOK) GetReqCount() uint32

GetReqCount returns the value of ReqCount.

func (*GetRawListBlockTransactionsOK) MarshalJSON

func (s *GetRawListBlockTransactionsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawListBlockTransactionsOK) SetID

SetID sets the value of ID.

func (*GetRawListBlockTransactionsOK) SetIds

SetIds sets the value of Ids.

func (*GetRawListBlockTransactionsOK) SetIncomplete

func (s *GetRawListBlockTransactionsOK) SetIncomplete(val bool)

SetIncomplete sets the value of Incomplete.

func (*GetRawListBlockTransactionsOK) SetProof

func (s *GetRawListBlockTransactionsOK) SetProof(val string)

SetProof sets the value of Proof.

func (*GetRawListBlockTransactionsOK) SetReqCount

func (s *GetRawListBlockTransactionsOK) SetReqCount(val uint32)

SetReqCount sets the value of ReqCount.

func (*GetRawListBlockTransactionsOK) UnmarshalJSON

func (s *GetRawListBlockTransactionsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawListBlockTransactionsOK) Validate

func (s *GetRawListBlockTransactionsOK) Validate() error

type GetRawListBlockTransactionsOKIdsItem

type GetRawListBlockTransactionsOKIdsItem struct {
	Mode    uint32    `json:"mode"`
	Account OptString `json:"account"`
	Lt      OptUint64 `json:"lt"`
	Hash    OptString `json:"hash"`
}

func (*GetRawListBlockTransactionsOKIdsItem) Decode

Decode decodes GetRawListBlockTransactionsOKIdsItem from json.

func (*GetRawListBlockTransactionsOKIdsItem) Encode

Encode implements json.Marshaler.

func (*GetRawListBlockTransactionsOKIdsItem) GetAccount

GetAccount returns the value of Account.

func (*GetRawListBlockTransactionsOKIdsItem) GetHash

GetHash returns the value of Hash.

func (*GetRawListBlockTransactionsOKIdsItem) GetLt

GetLt returns the value of Lt.

func (*GetRawListBlockTransactionsOKIdsItem) GetMode

GetMode returns the value of Mode.

func (*GetRawListBlockTransactionsOKIdsItem) MarshalJSON

func (s *GetRawListBlockTransactionsOKIdsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawListBlockTransactionsOKIdsItem) SetAccount

SetAccount sets the value of Account.

func (*GetRawListBlockTransactionsOKIdsItem) SetHash

SetHash sets the value of Hash.

func (*GetRawListBlockTransactionsOKIdsItem) SetLt

SetLt sets the value of Lt.

func (*GetRawListBlockTransactionsOKIdsItem) SetMode

SetMode sets the value of Mode.

func (*GetRawListBlockTransactionsOKIdsItem) UnmarshalJSON

func (s *GetRawListBlockTransactionsOKIdsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawListBlockTransactionsParams

type GetRawListBlockTransactionsParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
	// Mode.
	Mode uint32
	// Count.
	Count uint32
	// Account ID.
	AccountID OptString
	// Lt.
	Lt OptUint64
}

GetRawListBlockTransactionsParams is parameters of getRawListBlockTransactions operation.

type GetRawMasterchainInfoExtOK

type GetRawMasterchainInfoExtOK struct {
	Mode          uint32       `json:"mode"`
	Version       uint32       `json:"version"`
	Capabilities  uint64       `json:"capabilities"`
	Last          BlockRaw     `json:"last"`
	LastUtime     uint32       `json:"last_utime"`
	Now           uint32       `json:"now"`
	StateRootHash string       `json:"state_root_hash"`
	Init          InitStateRaw `json:"init"`
}

func (*GetRawMasterchainInfoExtOK) Decode

Decode decodes GetRawMasterchainInfoExtOK from json.

func (*GetRawMasterchainInfoExtOK) Encode

func (s *GetRawMasterchainInfoExtOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawMasterchainInfoExtOK) GetCapabilities

func (s *GetRawMasterchainInfoExtOK) GetCapabilities() uint64

GetCapabilities returns the value of Capabilities.

func (*GetRawMasterchainInfoExtOK) GetInit

GetInit returns the value of Init.

func (*GetRawMasterchainInfoExtOK) GetLast

func (s *GetRawMasterchainInfoExtOK) GetLast() BlockRaw

GetLast returns the value of Last.

func (*GetRawMasterchainInfoExtOK) GetLastUtime

func (s *GetRawMasterchainInfoExtOK) GetLastUtime() uint32

GetLastUtime returns the value of LastUtime.

func (*GetRawMasterchainInfoExtOK) GetMode

func (s *GetRawMasterchainInfoExtOK) GetMode() uint32

GetMode returns the value of Mode.

func (*GetRawMasterchainInfoExtOK) GetNow

func (s *GetRawMasterchainInfoExtOK) GetNow() uint32

GetNow returns the value of Now.

func (*GetRawMasterchainInfoExtOK) GetStateRootHash

func (s *GetRawMasterchainInfoExtOK) GetStateRootHash() string

GetStateRootHash returns the value of StateRootHash.

func (*GetRawMasterchainInfoExtOK) GetVersion

func (s *GetRawMasterchainInfoExtOK) GetVersion() uint32

GetVersion returns the value of Version.

func (*GetRawMasterchainInfoExtOK) MarshalJSON

func (s *GetRawMasterchainInfoExtOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawMasterchainInfoExtOK) SetCapabilities

func (s *GetRawMasterchainInfoExtOK) SetCapabilities(val uint64)

SetCapabilities sets the value of Capabilities.

func (*GetRawMasterchainInfoExtOK) SetInit

func (s *GetRawMasterchainInfoExtOK) SetInit(val InitStateRaw)

SetInit sets the value of Init.

func (*GetRawMasterchainInfoExtOK) SetLast

func (s *GetRawMasterchainInfoExtOK) SetLast(val BlockRaw)

SetLast sets the value of Last.

func (*GetRawMasterchainInfoExtOK) SetLastUtime

func (s *GetRawMasterchainInfoExtOK) SetLastUtime(val uint32)

SetLastUtime sets the value of LastUtime.

func (*GetRawMasterchainInfoExtOK) SetMode

func (s *GetRawMasterchainInfoExtOK) SetMode(val uint32)

SetMode sets the value of Mode.

func (*GetRawMasterchainInfoExtOK) SetNow

func (s *GetRawMasterchainInfoExtOK) SetNow(val uint32)

SetNow sets the value of Now.

func (*GetRawMasterchainInfoExtOK) SetStateRootHash

func (s *GetRawMasterchainInfoExtOK) SetStateRootHash(val string)

SetStateRootHash sets the value of StateRootHash.

func (*GetRawMasterchainInfoExtOK) SetVersion

func (s *GetRawMasterchainInfoExtOK) SetVersion(val uint32)

SetVersion sets the value of Version.

func (*GetRawMasterchainInfoExtOK) UnmarshalJSON

func (s *GetRawMasterchainInfoExtOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawMasterchainInfoExtParams

type GetRawMasterchainInfoExtParams struct {
	// Mode.
	Mode uint32
}

GetRawMasterchainInfoExtParams is parameters of getRawMasterchainInfoExt operation.

type GetRawMasterchainInfoOK

type GetRawMasterchainInfoOK struct {
	Last          BlockRaw     `json:"last"`
	StateRootHash string       `json:"state_root_hash"`
	Init          InitStateRaw `json:"init"`
}

func (*GetRawMasterchainInfoOK) Decode

func (s *GetRawMasterchainInfoOK) Decode(d *jx.Decoder) error

Decode decodes GetRawMasterchainInfoOK from json.

func (*GetRawMasterchainInfoOK) Encode

func (s *GetRawMasterchainInfoOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawMasterchainInfoOK) GetInit

GetInit returns the value of Init.

func (*GetRawMasterchainInfoOK) GetLast

func (s *GetRawMasterchainInfoOK) GetLast() BlockRaw

GetLast returns the value of Last.

func (*GetRawMasterchainInfoOK) GetStateRootHash

func (s *GetRawMasterchainInfoOK) GetStateRootHash() string

GetStateRootHash returns the value of StateRootHash.

func (*GetRawMasterchainInfoOK) MarshalJSON

func (s *GetRawMasterchainInfoOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawMasterchainInfoOK) SetInit

func (s *GetRawMasterchainInfoOK) SetInit(val InitStateRaw)

SetInit sets the value of Init.

func (*GetRawMasterchainInfoOK) SetLast

func (s *GetRawMasterchainInfoOK) SetLast(val BlockRaw)

SetLast sets the value of Last.

func (*GetRawMasterchainInfoOK) SetStateRootHash

func (s *GetRawMasterchainInfoOK) SetStateRootHash(val string)

SetStateRootHash sets the value of StateRootHash.

func (*GetRawMasterchainInfoOK) UnmarshalJSON

func (s *GetRawMasterchainInfoOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawShardBlockProofOK

type GetRawShardBlockProofOK struct {
	MasterchainID BlockRaw                           `json:"masterchain_id"`
	Links         []GetRawShardBlockProofOKLinksItem `json:"links"`
}

func (*GetRawShardBlockProofOK) Decode

func (s *GetRawShardBlockProofOK) Decode(d *jx.Decoder) error

Decode decodes GetRawShardBlockProofOK from json.

func (*GetRawShardBlockProofOK) Encode

func (s *GetRawShardBlockProofOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

GetLinks returns the value of Links.

func (*GetRawShardBlockProofOK) GetMasterchainID

func (s *GetRawShardBlockProofOK) GetMasterchainID() BlockRaw

GetMasterchainID returns the value of MasterchainID.

func (*GetRawShardBlockProofOK) MarshalJSON

func (s *GetRawShardBlockProofOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

SetLinks sets the value of Links.

func (*GetRawShardBlockProofOK) SetMasterchainID

func (s *GetRawShardBlockProofOK) SetMasterchainID(val BlockRaw)

SetMasterchainID sets the value of MasterchainID.

func (*GetRawShardBlockProofOK) UnmarshalJSON

func (s *GetRawShardBlockProofOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawShardBlockProofOK) Validate

func (s *GetRawShardBlockProofOK) Validate() error

type GetRawShardBlockProofOKLinksItem

type GetRawShardBlockProofOKLinksItem struct {
	ID    BlockRaw `json:"id"`
	Proof string   `json:"proof"`
}

func (*GetRawShardBlockProofOKLinksItem) Decode

Decode decodes GetRawShardBlockProofOKLinksItem from json.

func (*GetRawShardBlockProofOKLinksItem) Encode

Encode implements json.Marshaler.

func (*GetRawShardBlockProofOKLinksItem) GetID

GetID returns the value of ID.

func (*GetRawShardBlockProofOKLinksItem) GetProof

GetProof returns the value of Proof.

func (*GetRawShardBlockProofOKLinksItem) MarshalJSON

func (s *GetRawShardBlockProofOKLinksItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawShardBlockProofOKLinksItem) SetID

SetID sets the value of ID.

func (*GetRawShardBlockProofOKLinksItem) SetProof

func (s *GetRawShardBlockProofOKLinksItem) SetProof(val string)

SetProof sets the value of Proof.

func (*GetRawShardBlockProofOKLinksItem) UnmarshalJSON

func (s *GetRawShardBlockProofOKLinksItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawShardBlockProofParams

type GetRawShardBlockProofParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
}

GetRawShardBlockProofParams is parameters of getRawShardBlockProof operation.

type GetRawShardInfoOK

type GetRawShardInfoOK struct {
	ID         BlockRaw `json:"id"`
	Shardblk   BlockRaw `json:"shardblk"`
	ShardProof string   `json:"shard_proof"`
	ShardDescr string   `json:"shard_descr"`
}

func (*GetRawShardInfoOK) Decode

func (s *GetRawShardInfoOK) Decode(d *jx.Decoder) error

Decode decodes GetRawShardInfoOK from json.

func (*GetRawShardInfoOK) Encode

func (s *GetRawShardInfoOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawShardInfoOK) GetID

func (s *GetRawShardInfoOK) GetID() BlockRaw

GetID returns the value of ID.

func (*GetRawShardInfoOK) GetShardDescr

func (s *GetRawShardInfoOK) GetShardDescr() string

GetShardDescr returns the value of ShardDescr.

func (*GetRawShardInfoOK) GetShardProof

func (s *GetRawShardInfoOK) GetShardProof() string

GetShardProof returns the value of ShardProof.

func (*GetRawShardInfoOK) GetShardblk

func (s *GetRawShardInfoOK) GetShardblk() BlockRaw

GetShardblk returns the value of Shardblk.

func (*GetRawShardInfoOK) MarshalJSON

func (s *GetRawShardInfoOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawShardInfoOK) SetID

func (s *GetRawShardInfoOK) SetID(val BlockRaw)

SetID sets the value of ID.

func (*GetRawShardInfoOK) SetShardDescr

func (s *GetRawShardInfoOK) SetShardDescr(val string)

SetShardDescr sets the value of ShardDescr.

func (*GetRawShardInfoOK) SetShardProof

func (s *GetRawShardInfoOK) SetShardProof(val string)

SetShardProof sets the value of ShardProof.

func (*GetRawShardInfoOK) SetShardblk

func (s *GetRawShardInfoOK) SetShardblk(val BlockRaw)

SetShardblk sets the value of Shardblk.

func (*GetRawShardInfoOK) UnmarshalJSON

func (s *GetRawShardInfoOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawShardInfoParams

type GetRawShardInfoParams struct {
	// Block ID: (workchain,shard,seqno,root_hash,file_hash).
	BlockID string
	// Workchain.
	Workchain uint32
	// Shard.
	Shard uint64
	// Exact.
	Exact bool
}

GetRawShardInfoParams is parameters of getRawShardInfo operation.

type GetRawTimeOK

type GetRawTimeOK struct {
	Time uint32 `json:"time"`
}

func (*GetRawTimeOK) Decode

func (s *GetRawTimeOK) Decode(d *jx.Decoder) error

Decode decodes GetRawTimeOK from json.

func (*GetRawTimeOK) Encode

func (s *GetRawTimeOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawTimeOK) GetTime

func (s *GetRawTimeOK) GetTime() uint32

GetTime returns the value of Time.

func (*GetRawTimeOK) MarshalJSON

func (s *GetRawTimeOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawTimeOK) SetTime

func (s *GetRawTimeOK) SetTime(val uint32)

SetTime sets the value of Time.

func (*GetRawTimeOK) UnmarshalJSON

func (s *GetRawTimeOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetRawTransactionsOK

type GetRawTransactionsOK struct {
	Ids          []BlockRaw `json:"ids"`
	Transactions string     `json:"transactions"`
}

func (*GetRawTransactionsOK) Decode

func (s *GetRawTransactionsOK) Decode(d *jx.Decoder) error

Decode decodes GetRawTransactionsOK from json.

func (*GetRawTransactionsOK) Encode

func (s *GetRawTransactionsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRawTransactionsOK) GetIds

func (s *GetRawTransactionsOK) GetIds() []BlockRaw

GetIds returns the value of Ids.

func (*GetRawTransactionsOK) GetTransactions

func (s *GetRawTransactionsOK) GetTransactions() string

GetTransactions returns the value of Transactions.

func (*GetRawTransactionsOK) MarshalJSON

func (s *GetRawTransactionsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRawTransactionsOK) SetIds

func (s *GetRawTransactionsOK) SetIds(val []BlockRaw)

SetIds sets the value of Ids.

func (*GetRawTransactionsOK) SetTransactions

func (s *GetRawTransactionsOK) SetTransactions(val string)

SetTransactions sets the value of Transactions.

func (*GetRawTransactionsOK) UnmarshalJSON

func (s *GetRawTransactionsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRawTransactionsOK) Validate

func (s *GetRawTransactionsOK) Validate() error

type GetRawTransactionsParams

type GetRawTransactionsParams struct {
	// Account ID.
	AccountID string
	// Count.
	Count uint32
	// Lt.
	Lt uint64
	// Hash.
	Hash string
}

GetRawTransactionsParams is parameters of getRawTransactions operation.

type GetStakingPoolHistoryOK

type GetStakingPoolHistoryOK struct {
	Apy []ApyHistory `json:"apy"`
}

func (*GetStakingPoolHistoryOK) Decode

func (s *GetStakingPoolHistoryOK) Decode(d *jx.Decoder) error

Decode decodes GetStakingPoolHistoryOK from json.

func (*GetStakingPoolHistoryOK) Encode

func (s *GetStakingPoolHistoryOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetStakingPoolHistoryOK) GetApy

func (s *GetStakingPoolHistoryOK) GetApy() []ApyHistory

GetApy returns the value of Apy.

func (*GetStakingPoolHistoryOK) MarshalJSON

func (s *GetStakingPoolHistoryOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStakingPoolHistoryOK) SetApy

func (s *GetStakingPoolHistoryOK) SetApy(val []ApyHistory)

SetApy sets the value of Apy.

func (*GetStakingPoolHistoryOK) UnmarshalJSON

func (s *GetStakingPoolHistoryOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStakingPoolHistoryOK) Validate

func (s *GetStakingPoolHistoryOK) Validate() error

type GetStakingPoolHistoryParams

type GetStakingPoolHistoryParams struct {
	// Account ID.
	AccountID string
}

GetStakingPoolHistoryParams is parameters of getStakingPoolHistory operation.

type GetStakingPoolInfoOK

type GetStakingPoolInfoOK struct {
	Implementation PoolImplementation `json:"implementation"`
	Pool           PoolInfo           `json:"pool"`
}

func (*GetStakingPoolInfoOK) Decode

func (s *GetStakingPoolInfoOK) Decode(d *jx.Decoder) error

Decode decodes GetStakingPoolInfoOK from json.

func (*GetStakingPoolInfoOK) Encode

func (s *GetStakingPoolInfoOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetStakingPoolInfoOK) GetImplementation

func (s *GetStakingPoolInfoOK) GetImplementation() PoolImplementation

GetImplementation returns the value of Implementation.

func (*GetStakingPoolInfoOK) GetPool

func (s *GetStakingPoolInfoOK) GetPool() PoolInfo

GetPool returns the value of Pool.

func (*GetStakingPoolInfoOK) MarshalJSON

func (s *GetStakingPoolInfoOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStakingPoolInfoOK) SetImplementation

func (s *GetStakingPoolInfoOK) SetImplementation(val PoolImplementation)

SetImplementation sets the value of Implementation.

func (*GetStakingPoolInfoOK) SetPool

func (s *GetStakingPoolInfoOK) SetPool(val PoolInfo)

SetPool sets the value of Pool.

func (*GetStakingPoolInfoOK) UnmarshalJSON

func (s *GetStakingPoolInfoOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStakingPoolInfoOK) Validate

func (s *GetStakingPoolInfoOK) Validate() error

type GetStakingPoolInfoParams

type GetStakingPoolInfoParams struct {
	// Account ID.
	AccountID      string
	AcceptLanguage OptString
}

GetStakingPoolInfoParams is parameters of getStakingPoolInfo operation.

type GetStakingPoolsOK

type GetStakingPoolsOK struct {
	Pools           []PoolInfo                       `json:"pools"`
	Implementations GetStakingPoolsOKImplementations `json:"implementations"`
}

func (*GetStakingPoolsOK) Decode

func (s *GetStakingPoolsOK) Decode(d *jx.Decoder) error

Decode decodes GetStakingPoolsOK from json.

func (*GetStakingPoolsOK) Encode

func (s *GetStakingPoolsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetStakingPoolsOK) GetImplementations

func (s *GetStakingPoolsOK) GetImplementations() GetStakingPoolsOKImplementations

GetImplementations returns the value of Implementations.

func (*GetStakingPoolsOK) GetPools

func (s *GetStakingPoolsOK) GetPools() []PoolInfo

GetPools returns the value of Pools.

func (*GetStakingPoolsOK) MarshalJSON

func (s *GetStakingPoolsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStakingPoolsOK) SetImplementations

func (s *GetStakingPoolsOK) SetImplementations(val GetStakingPoolsOKImplementations)

SetImplementations sets the value of Implementations.

func (*GetStakingPoolsOK) SetPools

func (s *GetStakingPoolsOK) SetPools(val []PoolInfo)

SetPools sets the value of Pools.

func (*GetStakingPoolsOK) UnmarshalJSON

func (s *GetStakingPoolsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStakingPoolsOK) Validate

func (s *GetStakingPoolsOK) Validate() error

type GetStakingPoolsOKImplementations

type GetStakingPoolsOKImplementations map[string]PoolImplementation

func (*GetStakingPoolsOKImplementations) Decode

Decode decodes GetStakingPoolsOKImplementations from json.

func (GetStakingPoolsOKImplementations) Encode

Encode implements json.Marshaler.

func (GetStakingPoolsOKImplementations) MarshalJSON

func (s GetStakingPoolsOKImplementations) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStakingPoolsOKImplementations) UnmarshalJSON

func (s *GetStakingPoolsOKImplementations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetStakingPoolsOKImplementations) Validate

type GetStakingPoolsParams

type GetStakingPoolsParams struct {
	// Account ID.
	AvailableFor OptString
	// Return also pools not from white list - just compatible by interfaces (maybe dangerous!).
	IncludeUnverified OptBool
	AcceptLanguage    OptString
}

GetStakingPoolsParams is parameters of getStakingPools operation.

type GetStorageProvidersOK

type GetStorageProvidersOK struct {
	Providers []StorageProvider `json:"providers"`
}

func (*GetStorageProvidersOK) Decode

func (s *GetStorageProvidersOK) Decode(d *jx.Decoder) error

Decode decodes GetStorageProvidersOK from json.

func (*GetStorageProvidersOK) Encode

func (s *GetStorageProvidersOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetStorageProvidersOK) GetProviders

func (s *GetStorageProvidersOK) GetProviders() []StorageProvider

GetProviders returns the value of Providers.

func (*GetStorageProvidersOK) MarshalJSON

func (s *GetStorageProvidersOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStorageProvidersOK) SetProviders

func (s *GetStorageProvidersOK) SetProviders(val []StorageProvider)

SetProviders sets the value of Providers.

func (*GetStorageProvidersOK) UnmarshalJSON

func (s *GetStorageProvidersOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStorageProvidersOK) Validate

func (s *GetStorageProvidersOK) Validate() error

type GetTonConnectPayloadOK

type GetTonConnectPayloadOK struct {
	Payload string `json:"payload"`
}

func (*GetTonConnectPayloadOK) Decode

func (s *GetTonConnectPayloadOK) Decode(d *jx.Decoder) error

Decode decodes GetTonConnectPayloadOK from json.

func (*GetTonConnectPayloadOK) Encode

func (s *GetTonConnectPayloadOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetTonConnectPayloadOK) GetPayload

func (s *GetTonConnectPayloadOK) GetPayload() string

GetPayload returns the value of Payload.

func (*GetTonConnectPayloadOK) MarshalJSON

func (s *GetTonConnectPayloadOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTonConnectPayloadOK) SetPayload

func (s *GetTonConnectPayloadOK) SetPayload(val string)

SetPayload sets the value of Payload.

func (*GetTonConnectPayloadOK) UnmarshalJSON

func (s *GetTonConnectPayloadOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTraceParams

type GetTraceParams struct {
	// Trace ID or transaction hash in hex (without 0x) or base64url format.
	TraceID string
}

GetTraceParams is parameters of getTrace operation.

type GetWalletBackupOK

type GetWalletBackupOK struct {
	Dump string `json:"dump"`
}

func (*GetWalletBackupOK) Decode

func (s *GetWalletBackupOK) Decode(d *jx.Decoder) error

Decode decodes GetWalletBackupOK from json.

func (*GetWalletBackupOK) Encode

func (s *GetWalletBackupOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetWalletBackupOK) GetDump

func (s *GetWalletBackupOK) GetDump() string

GetDump returns the value of Dump.

func (*GetWalletBackupOK) MarshalJSON

func (s *GetWalletBackupOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetWalletBackupOK) SetDump

func (s *GetWalletBackupOK) SetDump(val string)

SetDump sets the value of Dump.

func (*GetWalletBackupOK) UnmarshalJSON

func (s *GetWalletBackupOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetWalletBackupParams

type GetWalletBackupParams struct {
	XTonConnectAuth string
}

GetWalletBackupParams is parameters of getWalletBackup operation.

type GetWalletsByPublicKeyParams

type GetWalletsByPublicKeyParams struct {
	PublicKey string
}

GetWalletsByPublicKeyParams is parameters of getWalletsByPublicKey operation.

type ImagePreview

type ImagePreview struct {
	Resolution string `json:"resolution"`
	URL        string `json:"url"`
}

Ref: #/components/schemas/ImagePreview

func (*ImagePreview) Decode

func (s *ImagePreview) Decode(d *jx.Decoder) error

Decode decodes ImagePreview from json.

func (*ImagePreview) Encode

func (s *ImagePreview) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ImagePreview) GetResolution

func (s *ImagePreview) GetResolution() string

GetResolution returns the value of Resolution.

func (*ImagePreview) GetURL

func (s *ImagePreview) GetURL() string

GetURL returns the value of URL.

func (*ImagePreview) MarshalJSON

func (s *ImagePreview) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ImagePreview) SetResolution

func (s *ImagePreview) SetResolution(val string)

SetResolution sets the value of Resolution.

func (*ImagePreview) SetURL

func (s *ImagePreview) SetURL(val string)

SetURL sets the value of URL.

func (*ImagePreview) UnmarshalJSON

func (s *ImagePreview) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InitStateRaw

type InitStateRaw struct {
	Workchain uint32 `json:"workchain"`
	RootHash  string `json:"root_hash"`
	FileHash  string `json:"file_hash"`
}

Ref: #/components/schemas/InitStateRaw

func (*InitStateRaw) Decode

func (s *InitStateRaw) Decode(d *jx.Decoder) error

Decode decodes InitStateRaw from json.

func (*InitStateRaw) Encode

func (s *InitStateRaw) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InitStateRaw) GetFileHash

func (s *InitStateRaw) GetFileHash() string

GetFileHash returns the value of FileHash.

func (*InitStateRaw) GetRootHash

func (s *InitStateRaw) GetRootHash() string

GetRootHash returns the value of RootHash.

func (*InitStateRaw) GetWorkchain

func (s *InitStateRaw) GetWorkchain() uint32

GetWorkchain returns the value of Workchain.

func (*InitStateRaw) MarshalJSON

func (s *InitStateRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InitStateRaw) SetFileHash

func (s *InitStateRaw) SetFileHash(val string)

SetFileHash sets the value of FileHash.

func (*InitStateRaw) SetRootHash

func (s *InitStateRaw) SetRootHash(val string)

SetRootHash sets the value of RootHash.

func (*InitStateRaw) SetWorkchain

func (s *InitStateRaw) SetWorkchain(val uint32)

SetWorkchain sets the value of Workchain.

func (*InitStateRaw) UnmarshalJSON

func (s *InitStateRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type JettonBalance

type JettonBalance struct {
	Balance       string         `json:"balance"`
	WalletAddress AccountAddress `json:"wallet_address"`
	Jetton        JettonPreview  `json:"jetton"`
}

Ref: #/components/schemas/JettonBalance

func (*JettonBalance) Decode

func (s *JettonBalance) Decode(d *jx.Decoder) error

Decode decodes JettonBalance from json.

func (*JettonBalance) Encode

func (s *JettonBalance) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonBalance) GetBalance

func (s *JettonBalance) GetBalance() string

GetBalance returns the value of Balance.

func (*JettonBalance) GetJetton

func (s *JettonBalance) GetJetton() JettonPreview

GetJetton returns the value of Jetton.

func (*JettonBalance) GetWalletAddress

func (s *JettonBalance) GetWalletAddress() AccountAddress

GetWalletAddress returns the value of WalletAddress.

func (*JettonBalance) MarshalJSON

func (s *JettonBalance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonBalance) SetBalance

func (s *JettonBalance) SetBalance(val string)

SetBalance sets the value of Balance.

func (*JettonBalance) SetJetton

func (s *JettonBalance) SetJetton(val JettonPreview)

SetJetton sets the value of Jetton.

func (*JettonBalance) SetWalletAddress

func (s *JettonBalance) SetWalletAddress(val AccountAddress)

SetWalletAddress sets the value of WalletAddress.

func (*JettonBalance) UnmarshalJSON

func (s *JettonBalance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonBalance) Validate

func (s *JettonBalance) Validate() error

type JettonBurnAction

type JettonBurnAction struct {
	Sender        AccountAddress `json:"sender"`
	SendersWallet string         `json:"senders_wallet"`
	// Amount in quanta of tokens.
	Amount string        `json:"amount"`
	Jetton JettonPreview `json:"jetton"`
}

Ref: #/components/schemas/JettonBurnAction

func (*JettonBurnAction) Decode

func (s *JettonBurnAction) Decode(d *jx.Decoder) error

Decode decodes JettonBurnAction from json.

func (*JettonBurnAction) Encode

func (s *JettonBurnAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonBurnAction) GetAmount

func (s *JettonBurnAction) GetAmount() string

GetAmount returns the value of Amount.

func (*JettonBurnAction) GetJetton

func (s *JettonBurnAction) GetJetton() JettonPreview

GetJetton returns the value of Jetton.

func (*JettonBurnAction) GetSender

func (s *JettonBurnAction) GetSender() AccountAddress

GetSender returns the value of Sender.

func (*JettonBurnAction) GetSendersWallet

func (s *JettonBurnAction) GetSendersWallet() string

GetSendersWallet returns the value of SendersWallet.

func (*JettonBurnAction) MarshalJSON

func (s *JettonBurnAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonBurnAction) SetAmount

func (s *JettonBurnAction) SetAmount(val string)

SetAmount sets the value of Amount.

func (*JettonBurnAction) SetJetton

func (s *JettonBurnAction) SetJetton(val JettonPreview)

SetJetton sets the value of Jetton.

func (*JettonBurnAction) SetSender

func (s *JettonBurnAction) SetSender(val AccountAddress)

SetSender sets the value of Sender.

func (*JettonBurnAction) SetSendersWallet

func (s *JettonBurnAction) SetSendersWallet(val string)

SetSendersWallet sets the value of SendersWallet.

func (*JettonBurnAction) UnmarshalJSON

func (s *JettonBurnAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonBurnAction) Validate

func (s *JettonBurnAction) Validate() error

type JettonHolders

type JettonHolders struct {
	Addresses []JettonHoldersAddressesItem `json:"addresses"`
}

Ref: #/components/schemas/JettonHolders

func (*JettonHolders) Decode

func (s *JettonHolders) Decode(d *jx.Decoder) error

Decode decodes JettonHolders from json.

func (*JettonHolders) Encode

func (s *JettonHolders) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonHolders) GetAddresses

func (s *JettonHolders) GetAddresses() []JettonHoldersAddressesItem

GetAddresses returns the value of Addresses.

func (*JettonHolders) MarshalJSON

func (s *JettonHolders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonHolders) SetAddresses

func (s *JettonHolders) SetAddresses(val []JettonHoldersAddressesItem)

SetAddresses sets the value of Addresses.

func (*JettonHolders) UnmarshalJSON

func (s *JettonHolders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonHolders) Validate

func (s *JettonHolders) Validate() error

type JettonHoldersAddressesItem

type JettonHoldersAddressesItem struct {
	Address string         `json:"address"`
	Owner   AccountAddress `json:"owner"`
	Balance string         `json:"balance"`
}

func (*JettonHoldersAddressesItem) Decode

Decode decodes JettonHoldersAddressesItem from json.

func (*JettonHoldersAddressesItem) Encode

func (s *JettonHoldersAddressesItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonHoldersAddressesItem) GetAddress

func (s *JettonHoldersAddressesItem) GetAddress() string

GetAddress returns the value of Address.

func (*JettonHoldersAddressesItem) GetBalance

func (s *JettonHoldersAddressesItem) GetBalance() string

GetBalance returns the value of Balance.

func (*JettonHoldersAddressesItem) GetOwner added in v1.1.2

GetOwner returns the value of Owner.

func (*JettonHoldersAddressesItem) MarshalJSON

func (s *JettonHoldersAddressesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonHoldersAddressesItem) SetAddress

func (s *JettonHoldersAddressesItem) SetAddress(val string)

SetAddress sets the value of Address.

func (*JettonHoldersAddressesItem) SetBalance

func (s *JettonHoldersAddressesItem) SetBalance(val string)

SetBalance sets the value of Balance.

func (*JettonHoldersAddressesItem) SetOwner added in v1.1.2

func (s *JettonHoldersAddressesItem) SetOwner(val AccountAddress)

SetOwner sets the value of Owner.

func (*JettonHoldersAddressesItem) UnmarshalJSON

func (s *JettonHoldersAddressesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type JettonInfo

type JettonInfo struct {
	Mintable     bool                   `json:"mintable"`
	TotalSupply  string                 `json:"total_supply"`
	Metadata     JettonMetadata         `json:"metadata"`
	Verification JettonVerificationType `json:"verification"`
	HoldersCount int32                  `json:"holders_count"`
}

Ref: #/components/schemas/JettonInfo

func (*JettonInfo) Decode

func (s *JettonInfo) Decode(d *jx.Decoder) error

Decode decodes JettonInfo from json.

func (*JettonInfo) Encode

func (s *JettonInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonInfo) GetHoldersCount

func (s *JettonInfo) GetHoldersCount() int32

GetHoldersCount returns the value of HoldersCount.

func (*JettonInfo) GetMetadata

func (s *JettonInfo) GetMetadata() JettonMetadata

GetMetadata returns the value of Metadata.

func (*JettonInfo) GetMintable

func (s *JettonInfo) GetMintable() bool

GetMintable returns the value of Mintable.

func (*JettonInfo) GetTotalSupply

func (s *JettonInfo) GetTotalSupply() string

GetTotalSupply returns the value of TotalSupply.

func (*JettonInfo) GetVerification

func (s *JettonInfo) GetVerification() JettonVerificationType

GetVerification returns the value of Verification.

func (*JettonInfo) MarshalJSON

func (s *JettonInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonInfo) SetHoldersCount

func (s *JettonInfo) SetHoldersCount(val int32)

SetHoldersCount sets the value of HoldersCount.

func (*JettonInfo) SetMetadata

func (s *JettonInfo) SetMetadata(val JettonMetadata)

SetMetadata sets the value of Metadata.

func (*JettonInfo) SetMintable

func (s *JettonInfo) SetMintable(val bool)

SetMintable sets the value of Mintable.

func (*JettonInfo) SetTotalSupply

func (s *JettonInfo) SetTotalSupply(val string)

SetTotalSupply sets the value of TotalSupply.

func (*JettonInfo) SetVerification

func (s *JettonInfo) SetVerification(val JettonVerificationType)

SetVerification sets the value of Verification.

func (*JettonInfo) UnmarshalJSON

func (s *JettonInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonInfo) Validate

func (s *JettonInfo) Validate() error

type JettonMetadata

type JettonMetadata struct {
	Address     string    `json:"address"`
	Name        string    `json:"name"`
	Symbol      string    `json:"symbol"`
	Decimals    string    `json:"decimals"`
	Image       OptString `json:"image"`
	Description OptString `json:"description"`
	Social      []string  `json:"social"`
	Websites    []string  `json:"websites"`
	Catalogs    []string  `json:"catalogs"`
}

Ref: #/components/schemas/JettonMetadata

func (*JettonMetadata) Decode

func (s *JettonMetadata) Decode(d *jx.Decoder) error

Decode decodes JettonMetadata from json.

func (*JettonMetadata) Encode

func (s *JettonMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonMetadata) GetAddress

func (s *JettonMetadata) GetAddress() string

GetAddress returns the value of Address.

func (*JettonMetadata) GetCatalogs

func (s *JettonMetadata) GetCatalogs() []string

GetCatalogs returns the value of Catalogs.

func (*JettonMetadata) GetDecimals

func (s *JettonMetadata) GetDecimals() string

GetDecimals returns the value of Decimals.

func (*JettonMetadata) GetDescription

func (s *JettonMetadata) GetDescription() OptString

GetDescription returns the value of Description.

func (*JettonMetadata) GetImage

func (s *JettonMetadata) GetImage() OptString

GetImage returns the value of Image.

func (*JettonMetadata) GetName

func (s *JettonMetadata) GetName() string

GetName returns the value of Name.

func (*JettonMetadata) GetSocial

func (s *JettonMetadata) GetSocial() []string

GetSocial returns the value of Social.

func (*JettonMetadata) GetSymbol

func (s *JettonMetadata) GetSymbol() string

GetSymbol returns the value of Symbol.

func (*JettonMetadata) GetWebsites

func (s *JettonMetadata) GetWebsites() []string

GetWebsites returns the value of Websites.

func (*JettonMetadata) MarshalJSON

func (s *JettonMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonMetadata) SetAddress

func (s *JettonMetadata) SetAddress(val string)

SetAddress sets the value of Address.

func (*JettonMetadata) SetCatalogs

func (s *JettonMetadata) SetCatalogs(val []string)

SetCatalogs sets the value of Catalogs.

func (*JettonMetadata) SetDecimals

func (s *JettonMetadata) SetDecimals(val string)

SetDecimals sets the value of Decimals.

func (*JettonMetadata) SetDescription

func (s *JettonMetadata) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*JettonMetadata) SetImage

func (s *JettonMetadata) SetImage(val OptString)

SetImage sets the value of Image.

func (*JettonMetadata) SetName

func (s *JettonMetadata) SetName(val string)

SetName sets the value of Name.

func (*JettonMetadata) SetSocial

func (s *JettonMetadata) SetSocial(val []string)

SetSocial sets the value of Social.

func (*JettonMetadata) SetSymbol

func (s *JettonMetadata) SetSymbol(val string)

SetSymbol sets the value of Symbol.

func (*JettonMetadata) SetWebsites

func (s *JettonMetadata) SetWebsites(val []string)

SetWebsites sets the value of Websites.

func (*JettonMetadata) UnmarshalJSON

func (s *JettonMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type JettonMintAction

type JettonMintAction struct {
	Recipient        AccountAddress `json:"recipient"`
	RecipientsWallet string         `json:"recipients_wallet"`
	// Amount in quanta of tokens.
	Amount string        `json:"amount"`
	Jetton JettonPreview `json:"jetton"`
}

Ref: #/components/schemas/JettonMintAction

func (*JettonMintAction) Decode

func (s *JettonMintAction) Decode(d *jx.Decoder) error

Decode decodes JettonMintAction from json.

func (*JettonMintAction) Encode

func (s *JettonMintAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonMintAction) GetAmount

func (s *JettonMintAction) GetAmount() string

GetAmount returns the value of Amount.

func (*JettonMintAction) GetJetton

func (s *JettonMintAction) GetJetton() JettonPreview

GetJetton returns the value of Jetton.

func (*JettonMintAction) GetRecipient

func (s *JettonMintAction) GetRecipient() AccountAddress

GetRecipient returns the value of Recipient.

func (*JettonMintAction) GetRecipientsWallet

func (s *JettonMintAction) GetRecipientsWallet() string

GetRecipientsWallet returns the value of RecipientsWallet.

func (*JettonMintAction) MarshalJSON

func (s *JettonMintAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonMintAction) SetAmount

func (s *JettonMintAction) SetAmount(val string)

SetAmount sets the value of Amount.

func (*JettonMintAction) SetJetton

func (s *JettonMintAction) SetJetton(val JettonPreview)

SetJetton sets the value of Jetton.

func (*JettonMintAction) SetRecipient

func (s *JettonMintAction) SetRecipient(val AccountAddress)

SetRecipient sets the value of Recipient.

func (*JettonMintAction) SetRecipientsWallet

func (s *JettonMintAction) SetRecipientsWallet(val string)

SetRecipientsWallet sets the value of RecipientsWallet.

func (*JettonMintAction) UnmarshalJSON

func (s *JettonMintAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonMintAction) Validate

func (s *JettonMintAction) Validate() error

type JettonPreview

type JettonPreview struct {
	Address      string                 `json:"address"`
	Name         string                 `json:"name"`
	Symbol       string                 `json:"symbol"`
	Decimals     int                    `json:"decimals"`
	Image        string                 `json:"image"`
	Verification JettonVerificationType `json:"verification"`
}

Ref: #/components/schemas/JettonPreview

func (*JettonPreview) Decode

func (s *JettonPreview) Decode(d *jx.Decoder) error

Decode decodes JettonPreview from json.

func (*JettonPreview) Encode

func (s *JettonPreview) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonPreview) GetAddress

func (s *JettonPreview) GetAddress() string

GetAddress returns the value of Address.

func (*JettonPreview) GetDecimals

func (s *JettonPreview) GetDecimals() int

GetDecimals returns the value of Decimals.

func (*JettonPreview) GetImage

func (s *JettonPreview) GetImage() string

GetImage returns the value of Image.

func (*JettonPreview) GetName

func (s *JettonPreview) GetName() string

GetName returns the value of Name.

func (*JettonPreview) GetSymbol

func (s *JettonPreview) GetSymbol() string

GetSymbol returns the value of Symbol.

func (*JettonPreview) GetVerification

func (s *JettonPreview) GetVerification() JettonVerificationType

GetVerification returns the value of Verification.

func (*JettonPreview) MarshalJSON

func (s *JettonPreview) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonPreview) SetAddress

func (s *JettonPreview) SetAddress(val string)

SetAddress sets the value of Address.

func (*JettonPreview) SetDecimals

func (s *JettonPreview) SetDecimals(val int)

SetDecimals sets the value of Decimals.

func (*JettonPreview) SetImage

func (s *JettonPreview) SetImage(val string)

SetImage sets the value of Image.

func (*JettonPreview) SetName

func (s *JettonPreview) SetName(val string)

SetName sets the value of Name.

func (*JettonPreview) SetSymbol

func (s *JettonPreview) SetSymbol(val string)

SetSymbol sets the value of Symbol.

func (*JettonPreview) SetVerification

func (s *JettonPreview) SetVerification(val JettonVerificationType)

SetVerification sets the value of Verification.

func (*JettonPreview) UnmarshalJSON

func (s *JettonPreview) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonPreview) Validate

func (s *JettonPreview) Validate() error

type JettonQuantity

type JettonQuantity struct {
	Quantity      string         `json:"quantity"`
	WalletAddress AccountAddress `json:"wallet_address"`
	Jetton        JettonPreview  `json:"jetton"`
}

Ref: #/components/schemas/JettonQuantity

func (*JettonQuantity) Decode

func (s *JettonQuantity) Decode(d *jx.Decoder) error

Decode decodes JettonQuantity from json.

func (*JettonQuantity) Encode

func (s *JettonQuantity) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonQuantity) GetJetton

func (s *JettonQuantity) GetJetton() JettonPreview

GetJetton returns the value of Jetton.

func (*JettonQuantity) GetQuantity

func (s *JettonQuantity) GetQuantity() string

GetQuantity returns the value of Quantity.

func (*JettonQuantity) GetWalletAddress

func (s *JettonQuantity) GetWalletAddress() AccountAddress

GetWalletAddress returns the value of WalletAddress.

func (*JettonQuantity) MarshalJSON

func (s *JettonQuantity) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonQuantity) SetJetton

func (s *JettonQuantity) SetJetton(val JettonPreview)

SetJetton sets the value of Jetton.

func (*JettonQuantity) SetQuantity

func (s *JettonQuantity) SetQuantity(val string)

SetQuantity sets the value of Quantity.

func (*JettonQuantity) SetWalletAddress

func (s *JettonQuantity) SetWalletAddress(val AccountAddress)

SetWalletAddress sets the value of WalletAddress.

func (*JettonQuantity) UnmarshalJSON

func (s *JettonQuantity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonQuantity) Validate

func (s *JettonQuantity) Validate() error

type JettonSwapAction

type JettonSwapAction struct {
	Dex             JettonSwapActionDex `json:"dex"`
	AmountIn        string              `json:"amount_in"`
	AmountOut       string              `json:"amount_out"`
	TonIn           OptInt64            `json:"ton_in"`
	TonOut          OptInt64            `json:"ton_out"`
	UserWallet      AccountAddress      `json:"user_wallet"`
	Router          AccountAddress      `json:"router"`
	JettonMasterIn  OptJettonPreview    `json:"jetton_master_in"`
	JettonMasterOut OptJettonPreview    `json:"jetton_master_out"`
}

Ref: #/components/schemas/JettonSwapAction

func (*JettonSwapAction) Decode

func (s *JettonSwapAction) Decode(d *jx.Decoder) error

Decode decodes JettonSwapAction from json.

func (*JettonSwapAction) Encode

func (s *JettonSwapAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonSwapAction) GetAmountIn

func (s *JettonSwapAction) GetAmountIn() string

GetAmountIn returns the value of AmountIn.

func (*JettonSwapAction) GetAmountOut

func (s *JettonSwapAction) GetAmountOut() string

GetAmountOut returns the value of AmountOut.

func (*JettonSwapAction) GetDex

GetDex returns the value of Dex.

func (*JettonSwapAction) GetJettonMasterIn

func (s *JettonSwapAction) GetJettonMasterIn() OptJettonPreview

GetJettonMasterIn returns the value of JettonMasterIn.

func (*JettonSwapAction) GetJettonMasterOut

func (s *JettonSwapAction) GetJettonMasterOut() OptJettonPreview

GetJettonMasterOut returns the value of JettonMasterOut.

func (*JettonSwapAction) GetRouter

func (s *JettonSwapAction) GetRouter() AccountAddress

GetRouter returns the value of Router.

func (*JettonSwapAction) GetTonIn

func (s *JettonSwapAction) GetTonIn() OptInt64

GetTonIn returns the value of TonIn.

func (*JettonSwapAction) GetTonOut

func (s *JettonSwapAction) GetTonOut() OptInt64

GetTonOut returns the value of TonOut.

func (*JettonSwapAction) GetUserWallet

func (s *JettonSwapAction) GetUserWallet() AccountAddress

GetUserWallet returns the value of UserWallet.

func (*JettonSwapAction) MarshalJSON

func (s *JettonSwapAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonSwapAction) SetAmountIn

func (s *JettonSwapAction) SetAmountIn(val string)

SetAmountIn sets the value of AmountIn.

func (*JettonSwapAction) SetAmountOut

func (s *JettonSwapAction) SetAmountOut(val string)

SetAmountOut sets the value of AmountOut.

func (*JettonSwapAction) SetDex

func (s *JettonSwapAction) SetDex(val JettonSwapActionDex)

SetDex sets the value of Dex.

func (*JettonSwapAction) SetJettonMasterIn

func (s *JettonSwapAction) SetJettonMasterIn(val OptJettonPreview)

SetJettonMasterIn sets the value of JettonMasterIn.

func (*JettonSwapAction) SetJettonMasterOut

func (s *JettonSwapAction) SetJettonMasterOut(val OptJettonPreview)

SetJettonMasterOut sets the value of JettonMasterOut.

func (*JettonSwapAction) SetRouter

func (s *JettonSwapAction) SetRouter(val AccountAddress)

SetRouter sets the value of Router.

func (*JettonSwapAction) SetTonIn

func (s *JettonSwapAction) SetTonIn(val OptInt64)

SetTonIn sets the value of TonIn.

func (*JettonSwapAction) SetTonOut

func (s *JettonSwapAction) SetTonOut(val OptInt64)

SetTonOut sets the value of TonOut.

func (*JettonSwapAction) SetUserWallet

func (s *JettonSwapAction) SetUserWallet(val AccountAddress)

SetUserWallet sets the value of UserWallet.

func (*JettonSwapAction) UnmarshalJSON

func (s *JettonSwapAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonSwapAction) Validate

func (s *JettonSwapAction) Validate() error

type JettonSwapActionDex

type JettonSwapActionDex string
const (
	JettonSwapActionDexStonfi    JettonSwapActionDex = "stonfi"
	JettonSwapActionDexDedust    JettonSwapActionDex = "dedust"
	JettonSwapActionDexMegatonfi JettonSwapActionDex = "megatonfi"
)

func (*JettonSwapActionDex) Decode

func (s *JettonSwapActionDex) Decode(d *jx.Decoder) error

Decode decodes JettonSwapActionDex from json.

func (JettonSwapActionDex) Encode

func (s JettonSwapActionDex) Encode(e *jx.Encoder)

Encode encodes JettonSwapActionDex as json.

func (JettonSwapActionDex) MarshalJSON

func (s JettonSwapActionDex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (JettonSwapActionDex) MarshalText

func (s JettonSwapActionDex) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*JettonSwapActionDex) UnmarshalJSON

func (s *JettonSwapActionDex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonSwapActionDex) UnmarshalText

func (s *JettonSwapActionDex) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (JettonSwapActionDex) Validate

func (s JettonSwapActionDex) Validate() error

type JettonTransferAction

type JettonTransferAction struct {
	Sender           OptAccountAddress `json:"sender"`
	Recipient        OptAccountAddress `json:"recipient"`
	SendersWallet    string            `json:"senders_wallet"`
	RecipientsWallet string            `json:"recipients_wallet"`
	// Amount in quanta of tokens.
	Amount           string              `json:"amount"`
	Comment          OptString           `json:"comment"`
	EncryptedComment OptEncryptedComment `json:"encrypted_comment"`
	Refund           OptRefund           `json:"refund"`
	Jetton           JettonPreview       `json:"jetton"`
}

Ref: #/components/schemas/JettonTransferAction

func (*JettonTransferAction) Decode

func (s *JettonTransferAction) Decode(d *jx.Decoder) error

Decode decodes JettonTransferAction from json.

func (*JettonTransferAction) Encode

func (s *JettonTransferAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonTransferAction) GetAmount

func (s *JettonTransferAction) GetAmount() string

GetAmount returns the value of Amount.

func (*JettonTransferAction) GetComment

func (s *JettonTransferAction) GetComment() OptString

GetComment returns the value of Comment.

func (*JettonTransferAction) GetEncryptedComment

func (s *JettonTransferAction) GetEncryptedComment() OptEncryptedComment

GetEncryptedComment returns the value of EncryptedComment.

func (*JettonTransferAction) GetJetton

func (s *JettonTransferAction) GetJetton() JettonPreview

GetJetton returns the value of Jetton.

func (*JettonTransferAction) GetRecipient

func (s *JettonTransferAction) GetRecipient() OptAccountAddress

GetRecipient returns the value of Recipient.

func (*JettonTransferAction) GetRecipientsWallet

func (s *JettonTransferAction) GetRecipientsWallet() string

GetRecipientsWallet returns the value of RecipientsWallet.

func (*JettonTransferAction) GetRefund

func (s *JettonTransferAction) GetRefund() OptRefund

GetRefund returns the value of Refund.

func (*JettonTransferAction) GetSender

func (s *JettonTransferAction) GetSender() OptAccountAddress

GetSender returns the value of Sender.

func (*JettonTransferAction) GetSendersWallet

func (s *JettonTransferAction) GetSendersWallet() string

GetSendersWallet returns the value of SendersWallet.

func (*JettonTransferAction) MarshalJSON

func (s *JettonTransferAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonTransferAction) SetAmount

func (s *JettonTransferAction) SetAmount(val string)

SetAmount sets the value of Amount.

func (*JettonTransferAction) SetComment

func (s *JettonTransferAction) SetComment(val OptString)

SetComment sets the value of Comment.

func (*JettonTransferAction) SetEncryptedComment

func (s *JettonTransferAction) SetEncryptedComment(val OptEncryptedComment)

SetEncryptedComment sets the value of EncryptedComment.

func (*JettonTransferAction) SetJetton

func (s *JettonTransferAction) SetJetton(val JettonPreview)

SetJetton sets the value of Jetton.

func (*JettonTransferAction) SetRecipient

func (s *JettonTransferAction) SetRecipient(val OptAccountAddress)

SetRecipient sets the value of Recipient.

func (*JettonTransferAction) SetRecipientsWallet

func (s *JettonTransferAction) SetRecipientsWallet(val string)

SetRecipientsWallet sets the value of RecipientsWallet.

func (*JettonTransferAction) SetRefund

func (s *JettonTransferAction) SetRefund(val OptRefund)

SetRefund sets the value of Refund.

func (*JettonTransferAction) SetSender

func (s *JettonTransferAction) SetSender(val OptAccountAddress)

SetSender sets the value of Sender.

func (*JettonTransferAction) SetSendersWallet

func (s *JettonTransferAction) SetSendersWallet(val string)

SetSendersWallet sets the value of SendersWallet.

func (*JettonTransferAction) UnmarshalJSON

func (s *JettonTransferAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonTransferAction) Validate

func (s *JettonTransferAction) Validate() error

type JettonVerificationType

type JettonVerificationType string

Ref: #/components/schemas/JettonVerificationType

const (
	JettonVerificationTypeWhitelist JettonVerificationType = "whitelist"
	JettonVerificationTypeBlacklist JettonVerificationType = "blacklist"
	JettonVerificationTypeNone      JettonVerificationType = "none"
)

func (*JettonVerificationType) Decode

func (s *JettonVerificationType) Decode(d *jx.Decoder) error

Decode decodes JettonVerificationType from json.

func (JettonVerificationType) Encode

func (s JettonVerificationType) Encode(e *jx.Encoder)

Encode encodes JettonVerificationType as json.

func (JettonVerificationType) MarshalJSON

func (s JettonVerificationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (JettonVerificationType) MarshalText

func (s JettonVerificationType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*JettonVerificationType) UnmarshalJSON

func (s *JettonVerificationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonVerificationType) UnmarshalText

func (s *JettonVerificationType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (JettonVerificationType) Validate

func (s JettonVerificationType) Validate() error

type Jettons

type Jettons struct {
	Jettons []JettonInfo `json:"jettons"`
}

Ref: #/components/schemas/Jettons

func (*Jettons) Decode

func (s *Jettons) Decode(d *jx.Decoder) error

Decode decodes Jettons from json.

func (*Jettons) Encode

func (s *Jettons) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Jettons) GetJettons

func (s *Jettons) GetJettons() []JettonInfo

GetJettons returns the value of Jettons.

func (*Jettons) MarshalJSON

func (s *Jettons) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Jettons) SetJettons

func (s *Jettons) SetJettons(val []JettonInfo)

SetJettons sets the value of Jettons.

func (*Jettons) UnmarshalJSON

func (s *Jettons) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Jettons) Validate

func (s *Jettons) Validate() error

type JettonsBalances

type JettonsBalances struct {
	Balances []JettonBalance `json:"balances"`
}

Ref: #/components/schemas/JettonsBalances

func (*JettonsBalances) Decode

func (s *JettonsBalances) Decode(d *jx.Decoder) error

Decode decodes JettonsBalances from json.

func (*JettonsBalances) Encode

func (s *JettonsBalances) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*JettonsBalances) GetBalances

func (s *JettonsBalances) GetBalances() []JettonBalance

GetBalances returns the value of Balances.

func (*JettonsBalances) MarshalJSON

func (s *JettonsBalances) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*JettonsBalances) SetBalances

func (s *JettonsBalances) SetBalances(val []JettonBalance)

SetBalances sets the value of Balances.

func (*JettonsBalances) UnmarshalJSON

func (s *JettonsBalances) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*JettonsBalances) Validate

func (s *JettonsBalances) Validate() error

type Message

type Message struct {
	CreatedLt   int64             `json:"created_lt"`
	IhrDisabled bool              `json:"ihr_disabled"`
	Bounce      bool              `json:"bounce"`
	Bounced     bool              `json:"bounced"`
	Value       int64             `json:"value"`
	FwdFee      int64             `json:"fwd_fee"`
	IhrFee      int64             `json:"ihr_fee"`
	Destination OptAccountAddress `json:"destination"`
	Source      OptAccountAddress `json:"source"`
	ImportFee   int64             `json:"import_fee"`
	CreatedAt   int64             `json:"created_at"`
	OpCode      OptString         `json:"op_code"`
	Init        OptStateInit      `json:"init"`
	// Hex-encoded BoC with raw message body.
	RawBody       OptString `json:"raw_body"`
	DecodedOpName OptString `json:"decoded_op_name"`
	DecodedBody   jx.Raw    `json:"decoded_body"`
}

Ref: #/components/schemas/Message

func (*Message) Decode

func (s *Message) Decode(d *jx.Decoder) error

Decode decodes Message from json.

func (*Message) Encode

func (s *Message) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Message) GetBounce

func (s *Message) GetBounce() bool

GetBounce returns the value of Bounce.

func (*Message) GetBounced

func (s *Message) GetBounced() bool

GetBounced returns the value of Bounced.

func (*Message) GetCreatedAt

func (s *Message) GetCreatedAt() int64

GetCreatedAt returns the value of CreatedAt.

func (*Message) GetCreatedLt

func (s *Message) GetCreatedLt() int64

GetCreatedLt returns the value of CreatedLt.

func (*Message) GetDecodedBody

func (s *Message) GetDecodedBody() jx.Raw

GetDecodedBody returns the value of DecodedBody.

func (*Message) GetDecodedOpName

func (s *Message) GetDecodedOpName() OptString

GetDecodedOpName returns the value of DecodedOpName.

func (*Message) GetDestination

func (s *Message) GetDestination() OptAccountAddress

GetDestination returns the value of Destination.

func (*Message) GetFwdFee

func (s *Message) GetFwdFee() int64

GetFwdFee returns the value of FwdFee.

func (*Message) GetIhrDisabled

func (s *Message) GetIhrDisabled() bool

GetIhrDisabled returns the value of IhrDisabled.

func (*Message) GetIhrFee

func (s *Message) GetIhrFee() int64

GetIhrFee returns the value of IhrFee.

func (*Message) GetImportFee

func (s *Message) GetImportFee() int64

GetImportFee returns the value of ImportFee.

func (*Message) GetInit

func (s *Message) GetInit() OptStateInit

GetInit returns the value of Init.

func (*Message) GetOpCode

func (s *Message) GetOpCode() OptString

GetOpCode returns the value of OpCode.

func (*Message) GetRawBody

func (s *Message) GetRawBody() OptString

GetRawBody returns the value of RawBody.

func (*Message) GetSource

func (s *Message) GetSource() OptAccountAddress

GetSource returns the value of Source.

func (*Message) GetValue

func (s *Message) GetValue() int64

GetValue returns the value of Value.

func (*Message) MarshalJSON

func (s *Message) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Message) SetBounce

func (s *Message) SetBounce(val bool)

SetBounce sets the value of Bounce.

func (*Message) SetBounced

func (s *Message) SetBounced(val bool)

SetBounced sets the value of Bounced.

func (*Message) SetCreatedAt

func (s *Message) SetCreatedAt(val int64)

SetCreatedAt sets the value of CreatedAt.

func (*Message) SetCreatedLt

func (s *Message) SetCreatedLt(val int64)

SetCreatedLt sets the value of CreatedLt.

func (*Message) SetDecodedBody

func (s *Message) SetDecodedBody(val jx.Raw)

SetDecodedBody sets the value of DecodedBody.

func (*Message) SetDecodedOpName

func (s *Message) SetDecodedOpName(val OptString)

SetDecodedOpName sets the value of DecodedOpName.

func (*Message) SetDestination

func (s *Message) SetDestination(val OptAccountAddress)

SetDestination sets the value of Destination.

func (*Message) SetFwdFee

func (s *Message) SetFwdFee(val int64)

SetFwdFee sets the value of FwdFee.

func (*Message) SetIhrDisabled

func (s *Message) SetIhrDisabled(val bool)

SetIhrDisabled sets the value of IhrDisabled.

func (*Message) SetIhrFee

func (s *Message) SetIhrFee(val int64)

SetIhrFee sets the value of IhrFee.

func (*Message) SetImportFee

func (s *Message) SetImportFee(val int64)

SetImportFee sets the value of ImportFee.

func (*Message) SetInit

func (s *Message) SetInit(val OptStateInit)

SetInit sets the value of Init.

func (*Message) SetOpCode

func (s *Message) SetOpCode(val OptString)

SetOpCode sets the value of OpCode.

func (*Message) SetRawBody

func (s *Message) SetRawBody(val OptString)

SetRawBody sets the value of RawBody.

func (*Message) SetSource

func (s *Message) SetSource(val OptAccountAddress)

SetSource sets the value of Source.

func (*Message) SetValue

func (s *Message) SetValue(val int64)

SetValue sets the value of Value.

func (*Message) UnmarshalJSON

func (s *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MessageConsequences

type MessageConsequences struct {
	Trace Trace        `json:"trace"`
	Risk  Risk         `json:"risk"`
	Event AccountEvent `json:"event"`
}

Ref: #/components/schemas/MessageConsequences

func (*MessageConsequences) Decode

func (s *MessageConsequences) Decode(d *jx.Decoder) error

Decode decodes MessageConsequences from json.

func (*MessageConsequences) Encode

func (s *MessageConsequences) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MessageConsequences) GetEvent

func (s *MessageConsequences) GetEvent() AccountEvent

GetEvent returns the value of Event.

func (*MessageConsequences) GetRisk

func (s *MessageConsequences) GetRisk() Risk

GetRisk returns the value of Risk.

func (*MessageConsequences) GetTrace

func (s *MessageConsequences) GetTrace() Trace

GetTrace returns the value of Trace.

func (*MessageConsequences) MarshalJSON

func (s *MessageConsequences) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessageConsequences) SetEvent

func (s *MessageConsequences) SetEvent(val AccountEvent)

SetEvent sets the value of Event.

func (*MessageConsequences) SetRisk

func (s *MessageConsequences) SetRisk(val Risk)

SetRisk sets the value of Risk.

func (*MessageConsequences) SetTrace

func (s *MessageConsequences) SetTrace(val Trace)

SetTrace sets the value of Trace.

func (*MessageConsequences) UnmarshalJSON

func (s *MessageConsequences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MessageConsequences) Validate

func (s *MessageConsequences) Validate() error

type MethodExecutionResult

type MethodExecutionResult struct {
	Success bool `json:"success"`
	// Tvm exit code.
	ExitCode int              `json:"exit_code"`
	Stack    []TvmStackRecord `json:"stack"`
	Decoded  jx.Raw           `json:"decoded"`
}

Ref: #/components/schemas/MethodExecutionResult

func (*MethodExecutionResult) Decode

func (s *MethodExecutionResult) Decode(d *jx.Decoder) error

Decode decodes MethodExecutionResult from json.

func (*MethodExecutionResult) Encode

func (s *MethodExecutionResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MethodExecutionResult) GetDecoded

func (s *MethodExecutionResult) GetDecoded() jx.Raw

GetDecoded returns the value of Decoded.

func (*MethodExecutionResult) GetExitCode

func (s *MethodExecutionResult) GetExitCode() int

GetExitCode returns the value of ExitCode.

func (*MethodExecutionResult) GetStack

func (s *MethodExecutionResult) GetStack() []TvmStackRecord

GetStack returns the value of Stack.

func (*MethodExecutionResult) GetSuccess

func (s *MethodExecutionResult) GetSuccess() bool

GetSuccess returns the value of Success.

func (*MethodExecutionResult) MarshalJSON

func (s *MethodExecutionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MethodExecutionResult) SetDecoded

func (s *MethodExecutionResult) SetDecoded(val jx.Raw)

SetDecoded sets the value of Decoded.

func (*MethodExecutionResult) SetExitCode

func (s *MethodExecutionResult) SetExitCode(val int)

SetExitCode sets the value of ExitCode.

func (*MethodExecutionResult) SetStack

func (s *MethodExecutionResult) SetStack(val []TvmStackRecord)

SetStack sets the value of Stack.

func (*MethodExecutionResult) SetSuccess

func (s *MethodExecutionResult) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*MethodExecutionResult) UnmarshalJSON

func (s *MethodExecutionResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MethodExecutionResult) Validate

func (s *MethodExecutionResult) Validate() error

type NftCollection

type NftCollection struct {
	Address              string                   `json:"address"`
	NextItemIndex        int64                    `json:"next_item_index"`
	Owner                OptAccountAddress        `json:"owner"`
	RawCollectionContent string                   `json:"raw_collection_content"`
	Metadata             OptNftCollectionMetadata `json:"metadata"`
	Previews             []ImagePreview           `json:"previews"`
}

Ref: #/components/schemas/NftCollection

func (*NftCollection) Decode

func (s *NftCollection) Decode(d *jx.Decoder) error

Decode decodes NftCollection from json.

func (*NftCollection) Encode

func (s *NftCollection) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftCollection) GetAddress

func (s *NftCollection) GetAddress() string

GetAddress returns the value of Address.

func (*NftCollection) GetMetadata

func (s *NftCollection) GetMetadata() OptNftCollectionMetadata

GetMetadata returns the value of Metadata.

func (*NftCollection) GetNextItemIndex

func (s *NftCollection) GetNextItemIndex() int64

GetNextItemIndex returns the value of NextItemIndex.

func (*NftCollection) GetOwner

func (s *NftCollection) GetOwner() OptAccountAddress

GetOwner returns the value of Owner.

func (*NftCollection) GetPreviews

func (s *NftCollection) GetPreviews() []ImagePreview

GetPreviews returns the value of Previews.

func (*NftCollection) GetRawCollectionContent

func (s *NftCollection) GetRawCollectionContent() string

GetRawCollectionContent returns the value of RawCollectionContent.

func (*NftCollection) MarshalJSON

func (s *NftCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftCollection) SetAddress

func (s *NftCollection) SetAddress(val string)

SetAddress sets the value of Address.

func (*NftCollection) SetMetadata

func (s *NftCollection) SetMetadata(val OptNftCollectionMetadata)

SetMetadata sets the value of Metadata.

func (*NftCollection) SetNextItemIndex

func (s *NftCollection) SetNextItemIndex(val int64)

SetNextItemIndex sets the value of NextItemIndex.

func (*NftCollection) SetOwner

func (s *NftCollection) SetOwner(val OptAccountAddress)

SetOwner sets the value of Owner.

func (*NftCollection) SetPreviews

func (s *NftCollection) SetPreviews(val []ImagePreview)

SetPreviews sets the value of Previews.

func (*NftCollection) SetRawCollectionContent

func (s *NftCollection) SetRawCollectionContent(val string)

SetRawCollectionContent sets the value of RawCollectionContent.

func (*NftCollection) UnmarshalJSON

func (s *NftCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NftCollectionMetadata

type NftCollectionMetadata map[string]jx.Raw

func (*NftCollectionMetadata) Decode

func (s *NftCollectionMetadata) Decode(d *jx.Decoder) error

Decode decodes NftCollectionMetadata from json.

func (NftCollectionMetadata) Encode

func (s NftCollectionMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (NftCollectionMetadata) MarshalJSON

func (s NftCollectionMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftCollectionMetadata) UnmarshalJSON

func (s *NftCollectionMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NftCollections

type NftCollections struct {
	NftCollections []NftCollection `json:"nft_collections"`
}

Ref: #/components/schemas/NftCollections

func (*NftCollections) Decode

func (s *NftCollections) Decode(d *jx.Decoder) error

Decode decodes NftCollections from json.

func (*NftCollections) Encode

func (s *NftCollections) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftCollections) GetNftCollections

func (s *NftCollections) GetNftCollections() []NftCollection

GetNftCollections returns the value of NftCollections.

func (*NftCollections) MarshalJSON

func (s *NftCollections) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftCollections) SetNftCollections

func (s *NftCollections) SetNftCollections(val []NftCollection)

SetNftCollections sets the value of NftCollections.

func (*NftCollections) UnmarshalJSON

func (s *NftCollections) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftCollections) Validate

func (s *NftCollections) Validate() error

type NftItem

type NftItem struct {
	Address    string                  `json:"address"`
	Index      int64                   `json:"index"`
	Owner      OptAccountAddress       `json:"owner"`
	Collection OptNftItemCollection    `json:"collection"`
	Verified   bool                    `json:"verified"`
	Metadata   NftItemMetadata         `json:"metadata"`
	Sale       OptSale                 `json:"sale"`
	Previews   []ImagePreview          `json:"previews"`
	DNS        OptString               `json:"dns"`
	ApprovedBy []NftItemApprovedByItem `json:"approved_by"`
}

Ref: #/components/schemas/NftItem

func (*NftItem) Decode

func (s *NftItem) Decode(d *jx.Decoder) error

Decode decodes NftItem from json.

func (*NftItem) Encode

func (s *NftItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftItem) GetAddress

func (s *NftItem) GetAddress() string

GetAddress returns the value of Address.

func (*NftItem) GetApprovedBy

func (s *NftItem) GetApprovedBy() []NftItemApprovedByItem

GetApprovedBy returns the value of ApprovedBy.

func (*NftItem) GetCollection

func (s *NftItem) GetCollection() OptNftItemCollection

GetCollection returns the value of Collection.

func (*NftItem) GetDNS

func (s *NftItem) GetDNS() OptString

GetDNS returns the value of DNS.

func (*NftItem) GetIndex

func (s *NftItem) GetIndex() int64

GetIndex returns the value of Index.

func (*NftItem) GetMetadata

func (s *NftItem) GetMetadata() NftItemMetadata

GetMetadata returns the value of Metadata.

func (*NftItem) GetOwner

func (s *NftItem) GetOwner() OptAccountAddress

GetOwner returns the value of Owner.

func (*NftItem) GetPreviews

func (s *NftItem) GetPreviews() []ImagePreview

GetPreviews returns the value of Previews.

func (*NftItem) GetSale

func (s *NftItem) GetSale() OptSale

GetSale returns the value of Sale.

func (*NftItem) GetVerified

func (s *NftItem) GetVerified() bool

GetVerified returns the value of Verified.

func (*NftItem) MarshalJSON

func (s *NftItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftItem) SetAddress

func (s *NftItem) SetAddress(val string)

SetAddress sets the value of Address.

func (*NftItem) SetApprovedBy

func (s *NftItem) SetApprovedBy(val []NftItemApprovedByItem)

SetApprovedBy sets the value of ApprovedBy.

func (*NftItem) SetCollection

func (s *NftItem) SetCollection(val OptNftItemCollection)

SetCollection sets the value of Collection.

func (*NftItem) SetDNS

func (s *NftItem) SetDNS(val OptString)

SetDNS sets the value of DNS.

func (*NftItem) SetIndex

func (s *NftItem) SetIndex(val int64)

SetIndex sets the value of Index.

func (*NftItem) SetMetadata

func (s *NftItem) SetMetadata(val NftItemMetadata)

SetMetadata sets the value of Metadata.

func (*NftItem) SetOwner

func (s *NftItem) SetOwner(val OptAccountAddress)

SetOwner sets the value of Owner.

func (*NftItem) SetPreviews

func (s *NftItem) SetPreviews(val []ImagePreview)

SetPreviews sets the value of Previews.

func (*NftItem) SetSale

func (s *NftItem) SetSale(val OptSale)

SetSale sets the value of Sale.

func (*NftItem) SetVerified

func (s *NftItem) SetVerified(val bool)

SetVerified sets the value of Verified.

func (*NftItem) UnmarshalJSON

func (s *NftItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftItem) Validate

func (s *NftItem) Validate() error

type NftItemApprovedByItem

type NftItemApprovedByItem string
const (
	NftItemApprovedByItemGetgems     NftItemApprovedByItem = "getgems"
	NftItemApprovedByItemTonkeeper   NftItemApprovedByItem = "tonkeeper"
	NftItemApprovedByItemTonDiamonds NftItemApprovedByItem = "ton.diamonds"
)

func (*NftItemApprovedByItem) Decode

func (s *NftItemApprovedByItem) Decode(d *jx.Decoder) error

Decode decodes NftItemApprovedByItem from json.

func (NftItemApprovedByItem) Encode

func (s NftItemApprovedByItem) Encode(e *jx.Encoder)

Encode encodes NftItemApprovedByItem as json.

func (NftItemApprovedByItem) MarshalJSON

func (s NftItemApprovedByItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NftItemApprovedByItem) MarshalText

func (s NftItemApprovedByItem) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NftItemApprovedByItem) UnmarshalJSON

func (s *NftItemApprovedByItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftItemApprovedByItem) UnmarshalText

func (s *NftItemApprovedByItem) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NftItemApprovedByItem) Validate

func (s NftItemApprovedByItem) Validate() error

type NftItemCollection

type NftItemCollection struct {
	Address     string `json:"address"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

func (*NftItemCollection) Decode

func (s *NftItemCollection) Decode(d *jx.Decoder) error

Decode decodes NftItemCollection from json.

func (*NftItemCollection) Encode

func (s *NftItemCollection) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftItemCollection) GetAddress

func (s *NftItemCollection) GetAddress() string

GetAddress returns the value of Address.

func (*NftItemCollection) GetDescription

func (s *NftItemCollection) GetDescription() string

GetDescription returns the value of Description.

func (*NftItemCollection) GetName

func (s *NftItemCollection) GetName() string

GetName returns the value of Name.

func (*NftItemCollection) MarshalJSON

func (s *NftItemCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftItemCollection) SetAddress

func (s *NftItemCollection) SetAddress(val string)

SetAddress sets the value of Address.

func (*NftItemCollection) SetDescription

func (s *NftItemCollection) SetDescription(val string)

SetDescription sets the value of Description.

func (*NftItemCollection) SetName

func (s *NftItemCollection) SetName(val string)

SetName sets the value of Name.

func (*NftItemCollection) UnmarshalJSON

func (s *NftItemCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NftItemMetadata

type NftItemMetadata map[string]jx.Raw

func (*NftItemMetadata) Decode

func (s *NftItemMetadata) Decode(d *jx.Decoder) error

Decode decodes NftItemMetadata from json.

func (NftItemMetadata) Encode

func (s NftItemMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (NftItemMetadata) MarshalJSON

func (s NftItemMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftItemMetadata) UnmarshalJSON

func (s *NftItemMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NftItemTransferAction

type NftItemTransferAction struct {
	Sender           OptAccountAddress   `json:"sender"`
	Recipient        OptAccountAddress   `json:"recipient"`
	Nft              string              `json:"nft"`
	Comment          OptString           `json:"comment"`
	EncryptedComment OptEncryptedComment `json:"encrypted_comment"`
	// Raw hex encoded payload.
	Payload OptString `json:"payload"`
	Refund  OptRefund `json:"refund"`
}

Ref: #/components/schemas/NftItemTransferAction

func (*NftItemTransferAction) Decode

func (s *NftItemTransferAction) Decode(d *jx.Decoder) error

Decode decodes NftItemTransferAction from json.

func (*NftItemTransferAction) Encode

func (s *NftItemTransferAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftItemTransferAction) GetComment

func (s *NftItemTransferAction) GetComment() OptString

GetComment returns the value of Comment.

func (*NftItemTransferAction) GetEncryptedComment

func (s *NftItemTransferAction) GetEncryptedComment() OptEncryptedComment

GetEncryptedComment returns the value of EncryptedComment.

func (*NftItemTransferAction) GetNft

func (s *NftItemTransferAction) GetNft() string

GetNft returns the value of Nft.

func (*NftItemTransferAction) GetPayload

func (s *NftItemTransferAction) GetPayload() OptString

GetPayload returns the value of Payload.

func (*NftItemTransferAction) GetRecipient

func (s *NftItemTransferAction) GetRecipient() OptAccountAddress

GetRecipient returns the value of Recipient.

func (*NftItemTransferAction) GetRefund

func (s *NftItemTransferAction) GetRefund() OptRefund

GetRefund returns the value of Refund.

func (*NftItemTransferAction) GetSender

GetSender returns the value of Sender.

func (*NftItemTransferAction) MarshalJSON

func (s *NftItemTransferAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftItemTransferAction) SetComment

func (s *NftItemTransferAction) SetComment(val OptString)

SetComment sets the value of Comment.

func (*NftItemTransferAction) SetEncryptedComment

func (s *NftItemTransferAction) SetEncryptedComment(val OptEncryptedComment)

SetEncryptedComment sets the value of EncryptedComment.

func (*NftItemTransferAction) SetNft

func (s *NftItemTransferAction) SetNft(val string)

SetNft sets the value of Nft.

func (*NftItemTransferAction) SetPayload

func (s *NftItemTransferAction) SetPayload(val OptString)

SetPayload sets the value of Payload.

func (*NftItemTransferAction) SetRecipient

func (s *NftItemTransferAction) SetRecipient(val OptAccountAddress)

SetRecipient sets the value of Recipient.

func (*NftItemTransferAction) SetRefund

func (s *NftItemTransferAction) SetRefund(val OptRefund)

SetRefund sets the value of Refund.

func (*NftItemTransferAction) SetSender

func (s *NftItemTransferAction) SetSender(val OptAccountAddress)

SetSender sets the value of Sender.

func (*NftItemTransferAction) UnmarshalJSON

func (s *NftItemTransferAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftItemTransferAction) Validate

func (s *NftItemTransferAction) Validate() error

type NftItems

type NftItems struct {
	NftItems []NftItem `json:"nft_items"`
}

Ref: #/components/schemas/NftItems

func (*NftItems) Decode

func (s *NftItems) Decode(d *jx.Decoder) error

Decode decodes NftItems from json.

func (*NftItems) Encode

func (s *NftItems) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftItems) GetNftItems

func (s *NftItems) GetNftItems() []NftItem

GetNftItems returns the value of NftItems.

func (*NftItems) MarshalJSON

func (s *NftItems) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftItems) SetNftItems

func (s *NftItems) SetNftItems(val []NftItem)

SetNftItems sets the value of NftItems.

func (*NftItems) UnmarshalJSON

func (s *NftItems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftItems) Validate

func (s *NftItems) Validate() error

type NftPurchaseAction

type NftPurchaseAction struct {
	AuctionType NftPurchaseActionAuctionType `json:"auction_type"`
	Amount      Price                        `json:"amount"`
	Nft         NftItem                      `json:"nft"`
	Seller      AccountAddress               `json:"seller"`
	Buyer       AccountAddress               `json:"buyer"`
}

Ref: #/components/schemas/NftPurchaseAction

func (*NftPurchaseAction) Decode

func (s *NftPurchaseAction) Decode(d *jx.Decoder) error

Decode decodes NftPurchaseAction from json.

func (*NftPurchaseAction) Encode

func (s *NftPurchaseAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NftPurchaseAction) GetAmount

func (s *NftPurchaseAction) GetAmount() Price

GetAmount returns the value of Amount.

func (*NftPurchaseAction) GetAuctionType

func (s *NftPurchaseAction) GetAuctionType() NftPurchaseActionAuctionType

GetAuctionType returns the value of AuctionType.

func (*NftPurchaseAction) GetBuyer

func (s *NftPurchaseAction) GetBuyer() AccountAddress

GetBuyer returns the value of Buyer.

func (*NftPurchaseAction) GetNft

func (s *NftPurchaseAction) GetNft() NftItem

GetNft returns the value of Nft.

func (*NftPurchaseAction) GetSeller

func (s *NftPurchaseAction) GetSeller() AccountAddress

GetSeller returns the value of Seller.

func (*NftPurchaseAction) MarshalJSON

func (s *NftPurchaseAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NftPurchaseAction) SetAmount

func (s *NftPurchaseAction) SetAmount(val Price)

SetAmount sets the value of Amount.

func (*NftPurchaseAction) SetAuctionType

func (s *NftPurchaseAction) SetAuctionType(val NftPurchaseActionAuctionType)

SetAuctionType sets the value of AuctionType.

func (*NftPurchaseAction) SetBuyer

func (s *NftPurchaseAction) SetBuyer(val AccountAddress)

SetBuyer sets the value of Buyer.

func (*NftPurchaseAction) SetNft

func (s *NftPurchaseAction) SetNft(val NftItem)

SetNft sets the value of Nft.

func (*NftPurchaseAction) SetSeller

func (s *NftPurchaseAction) SetSeller(val AccountAddress)

SetSeller sets the value of Seller.

func (*NftPurchaseAction) UnmarshalJSON

func (s *NftPurchaseAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftPurchaseAction) Validate

func (s *NftPurchaseAction) Validate() error

type NftPurchaseActionAuctionType

type NftPurchaseActionAuctionType string
const (
	NftPurchaseActionAuctionTypeDNSTg   NftPurchaseActionAuctionType = "DNS.tg"
	NftPurchaseActionAuctionTypeGetgems NftPurchaseActionAuctionType = "getgems"
	NftPurchaseActionAuctionTypeBasic   NftPurchaseActionAuctionType = "basic"
)

func (*NftPurchaseActionAuctionType) Decode

Decode decodes NftPurchaseActionAuctionType from json.

func (NftPurchaseActionAuctionType) Encode

Encode encodes NftPurchaseActionAuctionType as json.

func (NftPurchaseActionAuctionType) MarshalJSON

func (s NftPurchaseActionAuctionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NftPurchaseActionAuctionType) MarshalText

func (s NftPurchaseActionAuctionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NftPurchaseActionAuctionType) UnmarshalJSON

func (s *NftPurchaseActionAuctionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NftPurchaseActionAuctionType) UnmarshalText

func (s *NftPurchaseActionAuctionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NftPurchaseActionAuctionType) Validate

func (s NftPurchaseActionAuctionType) Validate() error

type OptAccountAddress

type OptAccountAddress struct {
	Value AccountAddress
	Set   bool
}

OptAccountAddress is optional AccountAddress.

func NewOptAccountAddress

func NewOptAccountAddress(v AccountAddress) OptAccountAddress

NewOptAccountAddress returns new OptAccountAddress with value set to v.

func (*OptAccountAddress) Decode

func (o *OptAccountAddress) Decode(d *jx.Decoder) error

Decode decodes AccountAddress from json.

func (OptAccountAddress) Encode

func (o OptAccountAddress) Encode(e *jx.Encoder)

Encode encodes AccountAddress as json.

func (OptAccountAddress) Get

func (o OptAccountAddress) Get() (v AccountAddress, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAccountAddress) IsSet

func (o OptAccountAddress) IsSet() bool

IsSet returns true if OptAccountAddress was set.

func (OptAccountAddress) MarshalJSON

func (s OptAccountAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAccountAddress) Or

Or returns value if set, or given parameter if does not.

func (*OptAccountAddress) Reset

func (o *OptAccountAddress) Reset()

Reset unsets value.

func (*OptAccountAddress) SetTo

func (o *OptAccountAddress) SetTo(v AccountAddress)

SetTo sets value to v.

func (*OptAccountAddress) UnmarshalJSON

func (s *OptAccountAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptActionPhase

type OptActionPhase struct {
	Value ActionPhase
	Set   bool
}

OptActionPhase is optional ActionPhase.

func NewOptActionPhase

func NewOptActionPhase(v ActionPhase) OptActionPhase

NewOptActionPhase returns new OptActionPhase with value set to v.

func (*OptActionPhase) Decode

func (o *OptActionPhase) Decode(d *jx.Decoder) error

Decode decodes ActionPhase from json.

func (OptActionPhase) Encode

func (o OptActionPhase) Encode(e *jx.Encoder)

Encode encodes ActionPhase as json.

func (OptActionPhase) Get

func (o OptActionPhase) Get() (v ActionPhase, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptActionPhase) IsSet

func (o OptActionPhase) IsSet() bool

IsSet returns true if OptActionPhase was set.

func (OptActionPhase) MarshalJSON

func (s OptActionPhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptActionPhase) Or

Or returns value if set, or given parameter if does not.

func (*OptActionPhase) Reset

func (o *OptActionPhase) Reset()

Reset unsets value.

func (*OptActionPhase) SetTo

func (o *OptActionPhase) SetTo(v ActionPhase)

SetTo sets value to v.

func (*OptActionPhase) UnmarshalJSON

func (s *OptActionPhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAuctionBidAction

type OptAuctionBidAction struct {
	Value AuctionBidAction
	Set   bool
}

OptAuctionBidAction is optional AuctionBidAction.

func NewOptAuctionBidAction

func NewOptAuctionBidAction(v AuctionBidAction) OptAuctionBidAction

NewOptAuctionBidAction returns new OptAuctionBidAction with value set to v.

func (*OptAuctionBidAction) Decode

func (o *OptAuctionBidAction) Decode(d *jx.Decoder) error

Decode decodes AuctionBidAction from json.

func (OptAuctionBidAction) Encode

func (o OptAuctionBidAction) Encode(e *jx.Encoder)

Encode encodes AuctionBidAction as json.

func (OptAuctionBidAction) Get

func (o OptAuctionBidAction) Get() (v AuctionBidAction, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAuctionBidAction) IsSet

func (o OptAuctionBidAction) IsSet() bool

IsSet returns true if OptAuctionBidAction was set.

func (OptAuctionBidAction) MarshalJSON

func (s OptAuctionBidAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAuctionBidAction) Or

Or returns value if set, or given parameter if does not.

func (*OptAuctionBidAction) Reset

func (o *OptAuctionBidAction) Reset()

Reset unsets value.

func (*OptAuctionBidAction) SetTo

SetTo sets value to v.

func (*OptAuctionBidAction) UnmarshalJSON

func (s *OptAuctionBidAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBlockchainAccountInspectCompiler

type OptBlockchainAccountInspectCompiler struct {
	Value BlockchainAccountInspectCompiler
	Set   bool
}

OptBlockchainAccountInspectCompiler is optional BlockchainAccountInspectCompiler.

func NewOptBlockchainAccountInspectCompiler

func NewOptBlockchainAccountInspectCompiler(v BlockchainAccountInspectCompiler) OptBlockchainAccountInspectCompiler

NewOptBlockchainAccountInspectCompiler returns new OptBlockchainAccountInspectCompiler with value set to v.

func (*OptBlockchainAccountInspectCompiler) Decode

Decode decodes BlockchainAccountInspectCompiler from json.

func (OptBlockchainAccountInspectCompiler) Encode

Encode encodes BlockchainAccountInspectCompiler as json.

func (OptBlockchainAccountInspectCompiler) Get

Get returns value and boolean that denotes whether value was set.

func (OptBlockchainAccountInspectCompiler) IsSet

IsSet returns true if OptBlockchainAccountInspectCompiler was set.

func (OptBlockchainAccountInspectCompiler) MarshalJSON

func (s OptBlockchainAccountInspectCompiler) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBlockchainAccountInspectCompiler) Or

Or returns value if set, or given parameter if does not.

func (*OptBlockchainAccountInspectCompiler) Reset

Reset unsets value.

func (*OptBlockchainAccountInspectCompiler) SetTo

SetTo sets value to v.

func (*OptBlockchainAccountInspectCompiler) UnmarshalJSON

func (s *OptBlockchainAccountInspectCompiler) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBlockchainRawAccountExtraBalance

type OptBlockchainRawAccountExtraBalance struct {
	Value BlockchainRawAccountExtraBalance
	Set   bool
}

OptBlockchainRawAccountExtraBalance is optional BlockchainRawAccountExtraBalance.

func NewOptBlockchainRawAccountExtraBalance

func NewOptBlockchainRawAccountExtraBalance(v BlockchainRawAccountExtraBalance) OptBlockchainRawAccountExtraBalance

NewOptBlockchainRawAccountExtraBalance returns new OptBlockchainRawAccountExtraBalance with value set to v.

func (*OptBlockchainRawAccountExtraBalance) Decode

Decode decodes BlockchainRawAccountExtraBalance from json.

func (OptBlockchainRawAccountExtraBalance) Encode

Encode encodes BlockchainRawAccountExtraBalance as json.

func (OptBlockchainRawAccountExtraBalance) Get

Get returns value and boolean that denotes whether value was set.

func (OptBlockchainRawAccountExtraBalance) IsSet

IsSet returns true if OptBlockchainRawAccountExtraBalance was set.

func (OptBlockchainRawAccountExtraBalance) MarshalJSON

func (s OptBlockchainRawAccountExtraBalance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBlockchainRawAccountExtraBalance) Or

Or returns value if set, or given parameter if does not.

func (*OptBlockchainRawAccountExtraBalance) Reset

Reset unsets value.

func (*OptBlockchainRawAccountExtraBalance) SetTo

SetTo sets value to v.

func (*OptBlockchainRawAccountExtraBalance) UnmarshalJSON

func (s *OptBlockchainRawAccountExtraBalance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBouncePhaseType

type OptBouncePhaseType struct {
	Value BouncePhaseType
	Set   bool
}

OptBouncePhaseType is optional BouncePhaseType.

func NewOptBouncePhaseType

func NewOptBouncePhaseType(v BouncePhaseType) OptBouncePhaseType

NewOptBouncePhaseType returns new OptBouncePhaseType with value set to v.

func (*OptBouncePhaseType) Decode

func (o *OptBouncePhaseType) Decode(d *jx.Decoder) error

Decode decodes BouncePhaseType from json.

func (OptBouncePhaseType) Encode

func (o OptBouncePhaseType) Encode(e *jx.Encoder)

Encode encodes BouncePhaseType as json.

func (OptBouncePhaseType) Get

func (o OptBouncePhaseType) Get() (v BouncePhaseType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBouncePhaseType) IsSet

func (o OptBouncePhaseType) IsSet() bool

IsSet returns true if OptBouncePhaseType was set.

func (OptBouncePhaseType) MarshalJSON

func (s OptBouncePhaseType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBouncePhaseType) Or

Or returns value if set, or given parameter if does not.

func (*OptBouncePhaseType) Reset

func (o *OptBouncePhaseType) Reset()

Reset unsets value.

func (*OptBouncePhaseType) SetTo

func (o *OptBouncePhaseType) SetTo(v BouncePhaseType)

SetTo sets value to v.

func (*OptBouncePhaseType) UnmarshalJSON

func (s *OptBouncePhaseType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComputePhase

type OptComputePhase struct {
	Value ComputePhase
	Set   bool
}

OptComputePhase is optional ComputePhase.

func NewOptComputePhase

func NewOptComputePhase(v ComputePhase) OptComputePhase

NewOptComputePhase returns new OptComputePhase with value set to v.

func (*OptComputePhase) Decode

func (o *OptComputePhase) Decode(d *jx.Decoder) error

Decode decodes ComputePhase from json.

func (OptComputePhase) Encode

func (o OptComputePhase) Encode(e *jx.Encoder)

Encode encodes ComputePhase as json.

func (OptComputePhase) Get

func (o OptComputePhase) Get() (v ComputePhase, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptComputePhase) IsSet

func (o OptComputePhase) IsSet() bool

IsSet returns true if OptComputePhase was set.

func (OptComputePhase) MarshalJSON

func (s OptComputePhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptComputePhase) Or

Or returns value if set, or given parameter if does not.

func (*OptComputePhase) Reset

func (o *OptComputePhase) Reset()

Reset unsets value.

func (*OptComputePhase) SetTo

func (o *OptComputePhase) SetTo(v ComputePhase)

SetTo sets value to v.

func (*OptComputePhase) UnmarshalJSON

func (s *OptComputePhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComputeSkipReason

type OptComputeSkipReason struct {
	Value ComputeSkipReason
	Set   bool
}

OptComputeSkipReason is optional ComputeSkipReason.

func NewOptComputeSkipReason

func NewOptComputeSkipReason(v ComputeSkipReason) OptComputeSkipReason

NewOptComputeSkipReason returns new OptComputeSkipReason with value set to v.

func (*OptComputeSkipReason) Decode

func (o *OptComputeSkipReason) Decode(d *jx.Decoder) error

Decode decodes ComputeSkipReason from json.

func (OptComputeSkipReason) Encode

func (o OptComputeSkipReason) Encode(e *jx.Encoder)

Encode encodes ComputeSkipReason as json.

func (OptComputeSkipReason) Get

Get returns value and boolean that denotes whether value was set.

func (OptComputeSkipReason) IsSet

func (o OptComputeSkipReason) IsSet() bool

IsSet returns true if OptComputeSkipReason was set.

func (OptComputeSkipReason) MarshalJSON

func (s OptComputeSkipReason) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptComputeSkipReason) Or

Or returns value if set, or given parameter if does not.

func (*OptComputeSkipReason) Reset

func (o *OptComputeSkipReason) Reset()

Reset unsets value.

func (*OptComputeSkipReason) SetTo

SetTo sets value to v.

func (*OptComputeSkipReason) UnmarshalJSON

func (s *OptComputeSkipReason) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptContractDeployAction

type OptContractDeployAction struct {
	Value ContractDeployAction
	Set   bool
}

OptContractDeployAction is optional ContractDeployAction.

func NewOptContractDeployAction

func NewOptContractDeployAction(v ContractDeployAction) OptContractDeployAction

NewOptContractDeployAction returns new OptContractDeployAction with value set to v.

func (*OptContractDeployAction) Decode

func (o *OptContractDeployAction) Decode(d *jx.Decoder) error

Decode decodes ContractDeployAction from json.

func (OptContractDeployAction) Encode

func (o OptContractDeployAction) Encode(e *jx.Encoder)

Encode encodes ContractDeployAction as json.

func (OptContractDeployAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptContractDeployAction) IsSet

func (o OptContractDeployAction) IsSet() bool

IsSet returns true if OptContractDeployAction was set.

func (OptContractDeployAction) MarshalJSON

func (s OptContractDeployAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptContractDeployAction) Or

Or returns value if set, or given parameter if does not.

func (*OptContractDeployAction) Reset

func (o *OptContractDeployAction) Reset()

Reset unsets value.

func (*OptContractDeployAction) SetTo

SetTo sets value to v.

func (*OptContractDeployAction) UnmarshalJSON

func (s *OptContractDeployAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreditPhase

type OptCreditPhase struct {
	Value CreditPhase
	Set   bool
}

OptCreditPhase is optional CreditPhase.

func NewOptCreditPhase

func NewOptCreditPhase(v CreditPhase) OptCreditPhase

NewOptCreditPhase returns new OptCreditPhase with value set to v.

func (*OptCreditPhase) Decode

func (o *OptCreditPhase) Decode(d *jx.Decoder) error

Decode decodes CreditPhase from json.

func (OptCreditPhase) Encode

func (o OptCreditPhase) Encode(e *jx.Encoder)

Encode encodes CreditPhase as json.

func (OptCreditPhase) Get

func (o OptCreditPhase) Get() (v CreditPhase, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreditPhase) IsSet

func (o OptCreditPhase) IsSet() bool

IsSet returns true if OptCreditPhase was set.

func (OptCreditPhase) MarshalJSON

func (s OptCreditPhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreditPhase) Or

Or returns value if set, or given parameter if does not.

func (*OptCreditPhase) Reset

func (o *OptCreditPhase) Reset()

Reset unsets value.

func (*OptCreditPhase) SetTo

func (o *OptCreditPhase) SetTo(v CreditPhase)

SetTo sets value to v.

func (*OptCreditPhase) UnmarshalJSON

func (s *OptCreditPhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDepositStakeAction

type OptDepositStakeAction struct {
	Value DepositStakeAction
	Set   bool
}

OptDepositStakeAction is optional DepositStakeAction.

func NewOptDepositStakeAction

func NewOptDepositStakeAction(v DepositStakeAction) OptDepositStakeAction

NewOptDepositStakeAction returns new OptDepositStakeAction with value set to v.

func (*OptDepositStakeAction) Decode

func (o *OptDepositStakeAction) Decode(d *jx.Decoder) error

Decode decodes DepositStakeAction from json.

func (OptDepositStakeAction) Encode

func (o OptDepositStakeAction) Encode(e *jx.Encoder)

Encode encodes DepositStakeAction as json.

func (OptDepositStakeAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptDepositStakeAction) IsSet

func (o OptDepositStakeAction) IsSet() bool

IsSet returns true if OptDepositStakeAction was set.

func (OptDepositStakeAction) MarshalJSON

func (s OptDepositStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDepositStakeAction) Or

Or returns value if set, or given parameter if does not.

func (*OptDepositStakeAction) Reset

func (o *OptDepositStakeAction) Reset()

Reset unsets value.

func (*OptDepositStakeAction) SetTo

SetTo sets value to v.

func (*OptDepositStakeAction) UnmarshalJSON

func (s *OptDepositStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptElectionsDepositStakeAction

type OptElectionsDepositStakeAction struct {
	Value ElectionsDepositStakeAction
	Set   bool
}

OptElectionsDepositStakeAction is optional ElectionsDepositStakeAction.

func NewOptElectionsDepositStakeAction

func NewOptElectionsDepositStakeAction(v ElectionsDepositStakeAction) OptElectionsDepositStakeAction

NewOptElectionsDepositStakeAction returns new OptElectionsDepositStakeAction with value set to v.

func (*OptElectionsDepositStakeAction) Decode

Decode decodes ElectionsDepositStakeAction from json.

func (OptElectionsDepositStakeAction) Encode

Encode encodes ElectionsDepositStakeAction as json.

func (OptElectionsDepositStakeAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptElectionsDepositStakeAction) IsSet

IsSet returns true if OptElectionsDepositStakeAction was set.

func (OptElectionsDepositStakeAction) MarshalJSON

func (s OptElectionsDepositStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptElectionsDepositStakeAction) Or

Or returns value if set, or given parameter if does not.

func (*OptElectionsDepositStakeAction) Reset

func (o *OptElectionsDepositStakeAction) Reset()

Reset unsets value.

func (*OptElectionsDepositStakeAction) SetTo

SetTo sets value to v.

func (*OptElectionsDepositStakeAction) UnmarshalJSON

func (s *OptElectionsDepositStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptElectionsRecoverStakeAction

type OptElectionsRecoverStakeAction struct {
	Value ElectionsRecoverStakeAction
	Set   bool
}

OptElectionsRecoverStakeAction is optional ElectionsRecoverStakeAction.

func NewOptElectionsRecoverStakeAction

func NewOptElectionsRecoverStakeAction(v ElectionsRecoverStakeAction) OptElectionsRecoverStakeAction

NewOptElectionsRecoverStakeAction returns new OptElectionsRecoverStakeAction with value set to v.

func (*OptElectionsRecoverStakeAction) Decode

Decode decodes ElectionsRecoverStakeAction from json.

func (OptElectionsRecoverStakeAction) Encode

Encode encodes ElectionsRecoverStakeAction as json.

func (OptElectionsRecoverStakeAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptElectionsRecoverStakeAction) IsSet

IsSet returns true if OptElectionsRecoverStakeAction was set.

func (OptElectionsRecoverStakeAction) MarshalJSON

func (s OptElectionsRecoverStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptElectionsRecoverStakeAction) Or

Or returns value if set, or given parameter if does not.

func (*OptElectionsRecoverStakeAction) Reset

func (o *OptElectionsRecoverStakeAction) Reset()

Reset unsets value.

func (*OptElectionsRecoverStakeAction) SetTo

SetTo sets value to v.

func (*OptElectionsRecoverStakeAction) UnmarshalJSON

func (s *OptElectionsRecoverStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEncryptedComment

type OptEncryptedComment struct {
	Value EncryptedComment
	Set   bool
}

OptEncryptedComment is optional EncryptedComment.

func NewOptEncryptedComment

func NewOptEncryptedComment(v EncryptedComment) OptEncryptedComment

NewOptEncryptedComment returns new OptEncryptedComment with value set to v.

func (*OptEncryptedComment) Decode

func (o *OptEncryptedComment) Decode(d *jx.Decoder) error

Decode decodes EncryptedComment from json.

func (OptEncryptedComment) Encode

func (o OptEncryptedComment) Encode(e *jx.Encoder)

Encode encodes EncryptedComment as json.

func (OptEncryptedComment) Get

func (o OptEncryptedComment) Get() (v EncryptedComment, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEncryptedComment) IsSet

func (o OptEncryptedComment) IsSet() bool

IsSet returns true if OptEncryptedComment was set.

func (OptEncryptedComment) MarshalJSON

func (s OptEncryptedComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEncryptedComment) Or

Or returns value if set, or given parameter if does not.

func (*OptEncryptedComment) Reset

func (o *OptEncryptedComment) Reset()

Reset unsets value.

func (*OptEncryptedComment) SetTo

SetTo sets value to v.

func (*OptEncryptedComment) UnmarshalJSON

func (s *OptEncryptedComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetAccountsReq

type OptGetAccountsReq struct {
	Value GetAccountsReq
	Set   bool
}

OptGetAccountsReq is optional GetAccountsReq.

func NewOptGetAccountsReq

func NewOptGetAccountsReq(v GetAccountsReq) OptGetAccountsReq

NewOptGetAccountsReq returns new OptGetAccountsReq with value set to v.

func (*OptGetAccountsReq) Decode

func (o *OptGetAccountsReq) Decode(d *jx.Decoder) error

Decode decodes GetAccountsReq from json.

func (OptGetAccountsReq) Encode

func (o OptGetAccountsReq) Encode(e *jx.Encoder)

Encode encodes GetAccountsReq as json.

func (OptGetAccountsReq) Get

func (o OptGetAccountsReq) Get() (v GetAccountsReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptGetAccountsReq) IsSet

func (o OptGetAccountsReq) IsSet() bool

IsSet returns true if OptGetAccountsReq was set.

func (OptGetAccountsReq) MarshalJSON

func (s OptGetAccountsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetAccountsReq) Or

Or returns value if set, or given parameter if does not.

func (*OptGetAccountsReq) Reset

func (o *OptGetAccountsReq) Reset()

Reset unsets value.

func (*OptGetAccountsReq) SetTo

func (o *OptGetAccountsReq) SetTo(v GetAccountsReq)

SetTo sets value to v.

func (*OptGetAccountsReq) UnmarshalJSON

func (s *OptGetAccountsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetNftItemsByAddressesReq

type OptGetNftItemsByAddressesReq struct {
	Value GetNftItemsByAddressesReq
	Set   bool
}

OptGetNftItemsByAddressesReq is optional GetNftItemsByAddressesReq.

func NewOptGetNftItemsByAddressesReq

func NewOptGetNftItemsByAddressesReq(v GetNftItemsByAddressesReq) OptGetNftItemsByAddressesReq

NewOptGetNftItemsByAddressesReq returns new OptGetNftItemsByAddressesReq with value set to v.

func (*OptGetNftItemsByAddressesReq) Decode

Decode decodes GetNftItemsByAddressesReq from json.

func (OptGetNftItemsByAddressesReq) Encode

Encode encodes GetNftItemsByAddressesReq as json.

func (OptGetNftItemsByAddressesReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetNftItemsByAddressesReq) IsSet

IsSet returns true if OptGetNftItemsByAddressesReq was set.

func (OptGetNftItemsByAddressesReq) MarshalJSON

func (s OptGetNftItemsByAddressesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetNftItemsByAddressesReq) Or

Or returns value if set, or given parameter if does not.

func (*OptGetNftItemsByAddressesReq) Reset

func (o *OptGetNftItemsByAddressesReq) Reset()

Reset unsets value.

func (*OptGetNftItemsByAddressesReq) SetTo

SetTo sets value to v.

func (*OptGetNftItemsByAddressesReq) UnmarshalJSON

func (s *OptGetNftItemsByAddressesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptJettonBurnAction

type OptJettonBurnAction struct {
	Value JettonBurnAction
	Set   bool
}

OptJettonBurnAction is optional JettonBurnAction.

func NewOptJettonBurnAction

func NewOptJettonBurnAction(v JettonBurnAction) OptJettonBurnAction

NewOptJettonBurnAction returns new OptJettonBurnAction with value set to v.

func (*OptJettonBurnAction) Decode

func (o *OptJettonBurnAction) Decode(d *jx.Decoder) error

Decode decodes JettonBurnAction from json.

func (OptJettonBurnAction) Encode

func (o OptJettonBurnAction) Encode(e *jx.Encoder)

Encode encodes JettonBurnAction as json.

func (OptJettonBurnAction) Get

func (o OptJettonBurnAction) Get() (v JettonBurnAction, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptJettonBurnAction) IsSet

func (o OptJettonBurnAction) IsSet() bool

IsSet returns true if OptJettonBurnAction was set.

func (OptJettonBurnAction) MarshalJSON

func (s OptJettonBurnAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptJettonBurnAction) Or

Or returns value if set, or given parameter if does not.

func (*OptJettonBurnAction) Reset

func (o *OptJettonBurnAction) Reset()

Reset unsets value.

func (*OptJettonBurnAction) SetTo

SetTo sets value to v.

func (*OptJettonBurnAction) UnmarshalJSON

func (s *OptJettonBurnAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptJettonMintAction

type OptJettonMintAction struct {
	Value JettonMintAction
	Set   bool
}

OptJettonMintAction is optional JettonMintAction.

func NewOptJettonMintAction

func NewOptJettonMintAction(v JettonMintAction) OptJettonMintAction

NewOptJettonMintAction returns new OptJettonMintAction with value set to v.

func (*OptJettonMintAction) Decode

func (o *OptJettonMintAction) Decode(d *jx.Decoder) error

Decode decodes JettonMintAction from json.

func (OptJettonMintAction) Encode

func (o OptJettonMintAction) Encode(e *jx.Encoder)

Encode encodes JettonMintAction as json.

func (OptJettonMintAction) Get

func (o OptJettonMintAction) Get() (v JettonMintAction, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptJettonMintAction) IsSet

func (o OptJettonMintAction) IsSet() bool

IsSet returns true if OptJettonMintAction was set.

func (OptJettonMintAction) MarshalJSON

func (s OptJettonMintAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptJettonMintAction) Or

Or returns value if set, or given parameter if does not.

func (*OptJettonMintAction) Reset

func (o *OptJettonMintAction) Reset()

Reset unsets value.

func (*OptJettonMintAction) SetTo

SetTo sets value to v.

func (*OptJettonMintAction) UnmarshalJSON

func (s *OptJettonMintAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptJettonPreview

type OptJettonPreview struct {
	Value JettonPreview
	Set   bool
}

OptJettonPreview is optional JettonPreview.

func NewOptJettonPreview

func NewOptJettonPreview(v JettonPreview) OptJettonPreview

NewOptJettonPreview returns new OptJettonPreview with value set to v.

func (*OptJettonPreview) Decode

func (o *OptJettonPreview) Decode(d *jx.Decoder) error

Decode decodes JettonPreview from json.

func (OptJettonPreview) Encode

func (o OptJettonPreview) Encode(e *jx.Encoder)

Encode encodes JettonPreview as json.

func (OptJettonPreview) Get

func (o OptJettonPreview) Get() (v JettonPreview, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptJettonPreview) IsSet

func (o OptJettonPreview) IsSet() bool

IsSet returns true if OptJettonPreview was set.

func (OptJettonPreview) MarshalJSON

func (s OptJettonPreview) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptJettonPreview) Or

Or returns value if set, or given parameter if does not.

func (*OptJettonPreview) Reset

func (o *OptJettonPreview) Reset()

Reset unsets value.

func (*OptJettonPreview) SetTo

func (o *OptJettonPreview) SetTo(v JettonPreview)

SetTo sets value to v.

func (*OptJettonPreview) UnmarshalJSON

func (s *OptJettonPreview) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptJettonSwapAction

type OptJettonSwapAction struct {
	Value JettonSwapAction
	Set   bool
}

OptJettonSwapAction is optional JettonSwapAction.

func NewOptJettonSwapAction

func NewOptJettonSwapAction(v JettonSwapAction) OptJettonSwapAction

NewOptJettonSwapAction returns new OptJettonSwapAction with value set to v.

func (*OptJettonSwapAction) Decode

func (o *OptJettonSwapAction) Decode(d *jx.Decoder) error

Decode decodes JettonSwapAction from json.

func (OptJettonSwapAction) Encode

func (o OptJettonSwapAction) Encode(e *jx.Encoder)

Encode encodes JettonSwapAction as json.

func (OptJettonSwapAction) Get

func (o OptJettonSwapAction) Get() (v JettonSwapAction, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptJettonSwapAction) IsSet

func (o OptJettonSwapAction) IsSet() bool

IsSet returns true if OptJettonSwapAction was set.

func (OptJettonSwapAction) MarshalJSON

func (s OptJettonSwapAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptJettonSwapAction) Or

Or returns value if set, or given parameter if does not.

func (*OptJettonSwapAction) Reset

func (o *OptJettonSwapAction) Reset()

Reset unsets value.

func (*OptJettonSwapAction) SetTo

SetTo sets value to v.

func (*OptJettonSwapAction) UnmarshalJSON

func (s *OptJettonSwapAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptJettonTransferAction

type OptJettonTransferAction struct {
	Value JettonTransferAction
	Set   bool
}

OptJettonTransferAction is optional JettonTransferAction.

func NewOptJettonTransferAction

func NewOptJettonTransferAction(v JettonTransferAction) OptJettonTransferAction

NewOptJettonTransferAction returns new OptJettonTransferAction with value set to v.

func (*OptJettonTransferAction) Decode

func (o *OptJettonTransferAction) Decode(d *jx.Decoder) error

Decode decodes JettonTransferAction from json.

func (OptJettonTransferAction) Encode

func (o OptJettonTransferAction) Encode(e *jx.Encoder)

Encode encodes JettonTransferAction as json.

func (OptJettonTransferAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptJettonTransferAction) IsSet

func (o OptJettonTransferAction) IsSet() bool

IsSet returns true if OptJettonTransferAction was set.

func (OptJettonTransferAction) MarshalJSON

func (s OptJettonTransferAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptJettonTransferAction) Or

Or returns value if set, or given parameter if does not.

func (*OptJettonTransferAction) Reset

func (o *OptJettonTransferAction) Reset()

Reset unsets value.

func (*OptJettonTransferAction) SetTo

SetTo sets value to v.

func (*OptJettonTransferAction) UnmarshalJSON

func (s *OptJettonTransferAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMessage

type OptMessage struct {
	Value Message
	Set   bool
}

OptMessage is optional Message.

func NewOptMessage

func NewOptMessage(v Message) OptMessage

NewOptMessage returns new OptMessage with value set to v.

func (*OptMessage) Decode

func (o *OptMessage) Decode(d *jx.Decoder) error

Decode decodes Message from json.

func (OptMessage) Encode

func (o OptMessage) Encode(e *jx.Encoder)

Encode encodes Message as json.

func (OptMessage) Get

func (o OptMessage) Get() (v Message, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMessage) IsSet

func (o OptMessage) IsSet() bool

IsSet returns true if OptMessage was set.

func (OptMessage) MarshalJSON

func (s OptMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMessage) Or

func (o OptMessage) Or(d Message) Message

Or returns value if set, or given parameter if does not.

func (*OptMessage) Reset

func (o *OptMessage) Reset()

Reset unsets value.

func (*OptMessage) SetTo

func (o *OptMessage) SetTo(v Message)

SetTo sets value to v.

func (*OptMessage) UnmarshalJSON

func (s *OptMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNftCollectionMetadata

type OptNftCollectionMetadata struct {
	Value NftCollectionMetadata
	Set   bool
}

OptNftCollectionMetadata is optional NftCollectionMetadata.

func NewOptNftCollectionMetadata

func NewOptNftCollectionMetadata(v NftCollectionMetadata) OptNftCollectionMetadata

NewOptNftCollectionMetadata returns new OptNftCollectionMetadata with value set to v.

func (*OptNftCollectionMetadata) Decode

func (o *OptNftCollectionMetadata) Decode(d *jx.Decoder) error

Decode decodes NftCollectionMetadata from json.

func (OptNftCollectionMetadata) Encode

func (o OptNftCollectionMetadata) Encode(e *jx.Encoder)

Encode encodes NftCollectionMetadata as json.

func (OptNftCollectionMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptNftCollectionMetadata) IsSet

func (o OptNftCollectionMetadata) IsSet() bool

IsSet returns true if OptNftCollectionMetadata was set.

func (OptNftCollectionMetadata) MarshalJSON

func (s OptNftCollectionMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNftCollectionMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptNftCollectionMetadata) Reset

func (o *OptNftCollectionMetadata) Reset()

Reset unsets value.

func (*OptNftCollectionMetadata) SetTo

SetTo sets value to v.

func (*OptNftCollectionMetadata) UnmarshalJSON

func (s *OptNftCollectionMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNftItem

type OptNftItem struct {
	Value NftItem
	Set   bool
}

OptNftItem is optional NftItem.

func NewOptNftItem

func NewOptNftItem(v NftItem) OptNftItem

NewOptNftItem returns new OptNftItem with value set to v.

func (*OptNftItem) Decode

func (o *OptNftItem) Decode(d *jx.Decoder) error

Decode decodes NftItem from json.

func (OptNftItem) Encode

func (o OptNftItem) Encode(e *jx.Encoder)

Encode encodes NftItem as json.

func (OptNftItem) Get

func (o OptNftItem) Get() (v NftItem, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNftItem) IsSet

func (o OptNftItem) IsSet() bool

IsSet returns true if OptNftItem was set.

func (OptNftItem) MarshalJSON

func (s OptNftItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNftItem) Or

func (o OptNftItem) Or(d NftItem) NftItem

Or returns value if set, or given parameter if does not.

func (*OptNftItem) Reset

func (o *OptNftItem) Reset()

Reset unsets value.

func (*OptNftItem) SetTo

func (o *OptNftItem) SetTo(v NftItem)

SetTo sets value to v.

func (*OptNftItem) UnmarshalJSON

func (s *OptNftItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNftItemCollection

type OptNftItemCollection struct {
	Value NftItemCollection
	Set   bool
}

OptNftItemCollection is optional NftItemCollection.

func NewOptNftItemCollection

func NewOptNftItemCollection(v NftItemCollection) OptNftItemCollection

NewOptNftItemCollection returns new OptNftItemCollection with value set to v.

func (*OptNftItemCollection) Decode

func (o *OptNftItemCollection) Decode(d *jx.Decoder) error

Decode decodes NftItemCollection from json.

func (OptNftItemCollection) Encode

func (o OptNftItemCollection) Encode(e *jx.Encoder)

Encode encodes NftItemCollection as json.

func (OptNftItemCollection) Get

Get returns value and boolean that denotes whether value was set.

func (OptNftItemCollection) IsSet

func (o OptNftItemCollection) IsSet() bool

IsSet returns true if OptNftItemCollection was set.

func (OptNftItemCollection) MarshalJSON

func (s OptNftItemCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNftItemCollection) Or

Or returns value if set, or given parameter if does not.

func (*OptNftItemCollection) Reset

func (o *OptNftItemCollection) Reset()

Reset unsets value.

func (*OptNftItemCollection) SetTo

SetTo sets value to v.

func (*OptNftItemCollection) UnmarshalJSON

func (s *OptNftItemCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNftItemTransferAction

type OptNftItemTransferAction struct {
	Value NftItemTransferAction
	Set   bool
}

OptNftItemTransferAction is optional NftItemTransferAction.

func NewOptNftItemTransferAction

func NewOptNftItemTransferAction(v NftItemTransferAction) OptNftItemTransferAction

NewOptNftItemTransferAction returns new OptNftItemTransferAction with value set to v.

func (*OptNftItemTransferAction) Decode

func (o *OptNftItemTransferAction) Decode(d *jx.Decoder) error

Decode decodes NftItemTransferAction from json.

func (OptNftItemTransferAction) Encode

func (o OptNftItemTransferAction) Encode(e *jx.Encoder)

Encode encodes NftItemTransferAction as json.

func (OptNftItemTransferAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptNftItemTransferAction) IsSet

func (o OptNftItemTransferAction) IsSet() bool

IsSet returns true if OptNftItemTransferAction was set.

func (OptNftItemTransferAction) MarshalJSON

func (s OptNftItemTransferAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNftItemTransferAction) Or

Or returns value if set, or given parameter if does not.

func (*OptNftItemTransferAction) Reset

func (o *OptNftItemTransferAction) Reset()

Reset unsets value.

func (*OptNftItemTransferAction) SetTo

SetTo sets value to v.

func (*OptNftItemTransferAction) UnmarshalJSON

func (s *OptNftItemTransferAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNftPurchaseAction

type OptNftPurchaseAction struct {
	Value NftPurchaseAction
	Set   bool
}

OptNftPurchaseAction is optional NftPurchaseAction.

func NewOptNftPurchaseAction

func NewOptNftPurchaseAction(v NftPurchaseAction) OptNftPurchaseAction

NewOptNftPurchaseAction returns new OptNftPurchaseAction with value set to v.

func (*OptNftPurchaseAction) Decode

func (o *OptNftPurchaseAction) Decode(d *jx.Decoder) error

Decode decodes NftPurchaseAction from json.

func (OptNftPurchaseAction) Encode

func (o OptNftPurchaseAction) Encode(e *jx.Encoder)

Encode encodes NftPurchaseAction as json.

func (OptNftPurchaseAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptNftPurchaseAction) IsSet

func (o OptNftPurchaseAction) IsSet() bool

IsSet returns true if OptNftPurchaseAction was set.

func (OptNftPurchaseAction) MarshalJSON

func (s OptNftPurchaseAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNftPurchaseAction) Or

Or returns value if set, or given parameter if does not.

func (*OptNftPurchaseAction) Reset

func (o *OptNftPurchaseAction) Reset()

Reset unsets value.

func (*OptNftPurchaseAction) SetTo

SetTo sets value to v.

func (*OptNftPurchaseAction) UnmarshalJSON

func (s *OptNftPurchaseAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRefund

type OptRefund struct {
	Value Refund
	Set   bool
}

OptRefund is optional Refund.

func NewOptRefund

func NewOptRefund(v Refund) OptRefund

NewOptRefund returns new OptRefund with value set to v.

func (*OptRefund) Decode

func (o *OptRefund) Decode(d *jx.Decoder) error

Decode decodes Refund from json.

func (OptRefund) Encode

func (o OptRefund) Encode(e *jx.Encoder)

Encode encodes Refund as json.

func (OptRefund) Get

func (o OptRefund) Get() (v Refund, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRefund) IsSet

func (o OptRefund) IsSet() bool

IsSet returns true if OptRefund was set.

func (OptRefund) MarshalJSON

func (s OptRefund) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRefund) Or

func (o OptRefund) Or(d Refund) Refund

Or returns value if set, or given parameter if does not.

func (*OptRefund) Reset

func (o *OptRefund) Reset()

Reset unsets value.

func (*OptRefund) SetTo

func (o *OptRefund) SetTo(v Refund)

SetTo sets value to v.

func (*OptRefund) UnmarshalJSON

func (s *OptRefund) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSale

type OptSale struct {
	Value Sale
	Set   bool
}

OptSale is optional Sale.

func NewOptSale

func NewOptSale(v Sale) OptSale

NewOptSale returns new OptSale with value set to v.

func (*OptSale) Decode

func (o *OptSale) Decode(d *jx.Decoder) error

Decode decodes Sale from json.

func (OptSale) Encode

func (o OptSale) Encode(e *jx.Encoder)

Encode encodes Sale as json.

func (OptSale) Get

func (o OptSale) Get() (v Sale, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSale) IsSet

func (o OptSale) IsSet() bool

IsSet returns true if OptSale was set.

func (OptSale) MarshalJSON

func (s OptSale) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSale) Or

func (o OptSale) Or(d Sale) Sale

Or returns value if set, or given parameter if does not.

func (*OptSale) Reset

func (o *OptSale) Reset()

Reset unsets value.

func (*OptSale) SetTo

func (o *OptSale) SetTo(v Sale)

SetTo sets value to v.

func (*OptSale) UnmarshalJSON

func (s *OptSale) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSmartContractAction

type OptSmartContractAction struct {
	Value SmartContractAction
	Set   bool
}

OptSmartContractAction is optional SmartContractAction.

func NewOptSmartContractAction

func NewOptSmartContractAction(v SmartContractAction) OptSmartContractAction

NewOptSmartContractAction returns new OptSmartContractAction with value set to v.

func (*OptSmartContractAction) Decode

func (o *OptSmartContractAction) Decode(d *jx.Decoder) error

Decode decodes SmartContractAction from json.

func (OptSmartContractAction) Encode

func (o OptSmartContractAction) Encode(e *jx.Encoder)

Encode encodes SmartContractAction as json.

func (OptSmartContractAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptSmartContractAction) IsSet

func (o OptSmartContractAction) IsSet() bool

IsSet returns true if OptSmartContractAction was set.

func (OptSmartContractAction) MarshalJSON

func (s OptSmartContractAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSmartContractAction) Or

Or returns value if set, or given parameter if does not.

func (*OptSmartContractAction) Reset

func (o *OptSmartContractAction) Reset()

Reset unsets value.

func (*OptSmartContractAction) SetTo

SetTo sets value to v.

func (*OptSmartContractAction) UnmarshalJSON

func (s *OptSmartContractAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStateInit

type OptStateInit struct {
	Value StateInit
	Set   bool
}

OptStateInit is optional StateInit.

func NewOptStateInit

func NewOptStateInit(v StateInit) OptStateInit

NewOptStateInit returns new OptStateInit with value set to v.

func (*OptStateInit) Decode

func (o *OptStateInit) Decode(d *jx.Decoder) error

Decode decodes StateInit from json.

func (OptStateInit) Encode

func (o OptStateInit) Encode(e *jx.Encoder)

Encode encodes StateInit as json.

func (OptStateInit) Get

func (o OptStateInit) Get() (v StateInit, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStateInit) IsSet

func (o OptStateInit) IsSet() bool

IsSet returns true if OptStateInit was set.

func (OptStateInit) MarshalJSON

func (s OptStateInit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStateInit) Or

Or returns value if set, or given parameter if does not.

func (*OptStateInit) Reset

func (o *OptStateInit) Reset()

Reset unsets value.

func (*OptStateInit) SetTo

func (o *OptStateInit) SetTo(v StateInit)

SetTo sets value to v.

func (*OptStateInit) UnmarshalJSON

func (s *OptStateInit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStoragePhase

type OptStoragePhase struct {
	Value StoragePhase
	Set   bool
}

OptStoragePhase is optional StoragePhase.

func NewOptStoragePhase

func NewOptStoragePhase(v StoragePhase) OptStoragePhase

NewOptStoragePhase returns new OptStoragePhase with value set to v.

func (*OptStoragePhase) Decode

func (o *OptStoragePhase) Decode(d *jx.Decoder) error

Decode decodes StoragePhase from json.

func (OptStoragePhase) Encode

func (o OptStoragePhase) Encode(e *jx.Encoder)

Encode encodes StoragePhase as json.

func (OptStoragePhase) Get

func (o OptStoragePhase) Get() (v StoragePhase, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStoragePhase) IsSet

func (o OptStoragePhase) IsSet() bool

IsSet returns true if OptStoragePhase was set.

func (OptStoragePhase) MarshalJSON

func (s OptStoragePhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStoragePhase) Or

Or returns value if set, or given parameter if does not.

func (*OptStoragePhase) Reset

func (o *OptStoragePhase) Reset()

Reset unsets value.

func (*OptStoragePhase) SetTo

func (o *OptStoragePhase) SetTo(v StoragePhase)

SetTo sets value to v.

func (*OptStoragePhase) UnmarshalJSON

func (s *OptStoragePhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSubscriptionAction

type OptSubscriptionAction struct {
	Value SubscriptionAction
	Set   bool
}

OptSubscriptionAction is optional SubscriptionAction.

func NewOptSubscriptionAction

func NewOptSubscriptionAction(v SubscriptionAction) OptSubscriptionAction

NewOptSubscriptionAction returns new OptSubscriptionAction with value set to v.

func (*OptSubscriptionAction) Decode

func (o *OptSubscriptionAction) Decode(d *jx.Decoder) error

Decode decodes SubscriptionAction from json.

func (OptSubscriptionAction) Encode

func (o OptSubscriptionAction) Encode(e *jx.Encoder)

Encode encodes SubscriptionAction as json.

func (OptSubscriptionAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptSubscriptionAction) IsSet

func (o OptSubscriptionAction) IsSet() bool

IsSet returns true if OptSubscriptionAction was set.

func (OptSubscriptionAction) MarshalJSON

func (s OptSubscriptionAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSubscriptionAction) Or

Or returns value if set, or given parameter if does not.

func (*OptSubscriptionAction) Reset

func (o *OptSubscriptionAction) Reset()

Reset unsets value.

func (*OptSubscriptionAction) SetTo

SetTo sets value to v.

func (*OptSubscriptionAction) UnmarshalJSON

func (s *OptSubscriptionAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTonTransferAction

type OptTonTransferAction struct {
	Value TonTransferAction
	Set   bool
}

OptTonTransferAction is optional TonTransferAction.

func NewOptTonTransferAction

func NewOptTonTransferAction(v TonTransferAction) OptTonTransferAction

NewOptTonTransferAction returns new OptTonTransferAction with value set to v.

func (*OptTonTransferAction) Decode

func (o *OptTonTransferAction) Decode(d *jx.Decoder) error

Decode decodes TonTransferAction from json.

func (OptTonTransferAction) Encode

func (o OptTonTransferAction) Encode(e *jx.Encoder)

Encode encodes TonTransferAction as json.

func (OptTonTransferAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptTonTransferAction) IsSet

func (o OptTonTransferAction) IsSet() bool

IsSet returns true if OptTonTransferAction was set.

func (OptTonTransferAction) MarshalJSON

func (s OptTonTransferAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTonTransferAction) Or

Or returns value if set, or given parameter if does not.

func (*OptTonTransferAction) Reset

func (o *OptTonTransferAction) Reset()

Reset unsets value.

func (*OptTonTransferAction) SetTo

SetTo sets value to v.

func (*OptTonTransferAction) UnmarshalJSON

func (s *OptTonTransferAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUint32

type OptUint32 struct {
	Value uint32
	Set   bool
}

OptUint32 is optional uint32.

func NewOptUint32

func NewOptUint32(v uint32) OptUint32

NewOptUint32 returns new OptUint32 with value set to v.

func (*OptUint32) Decode

func (o *OptUint32) Decode(d *jx.Decoder) error

Decode decodes uint32 from json.

func (OptUint32) Encode

func (o OptUint32) Encode(e *jx.Encoder)

Encode encodes uint32 as json.

func (OptUint32) Get

func (o OptUint32) Get() (v uint32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUint32) IsSet

func (o OptUint32) IsSet() bool

IsSet returns true if OptUint32 was set.

func (OptUint32) MarshalJSON

func (s OptUint32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUint32) Or

func (o OptUint32) Or(d uint32) uint32

Or returns value if set, or given parameter if does not.

func (*OptUint32) Reset

func (o *OptUint32) Reset()

Reset unsets value.

func (*OptUint32) SetTo

func (o *OptUint32) SetTo(v uint32)

SetTo sets value to v.

func (*OptUint32) UnmarshalJSON

func (s *OptUint32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUint64

type OptUint64 struct {
	Value uint64
	Set   bool
}

OptUint64 is optional uint64.

func NewOptUint64

func NewOptUint64(v uint64) OptUint64

NewOptUint64 returns new OptUint64 with value set to v.

func (*OptUint64) Decode

func (o *OptUint64) Decode(d *jx.Decoder) error

Decode decodes uint64 from json.

func (OptUint64) Encode

func (o OptUint64) Encode(e *jx.Encoder)

Encode encodes uint64 as json.

func (OptUint64) Get

func (o OptUint64) Get() (v uint64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUint64) IsSet

func (o OptUint64) IsSet() bool

IsSet returns true if OptUint64 was set.

func (OptUint64) MarshalJSON

func (s OptUint64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUint64) Or

func (o OptUint64) Or(d uint64) uint64

Or returns value if set, or given parameter if does not.

func (*OptUint64) Reset

func (o *OptUint64) Reset()

Reset unsets value.

func (*OptUint64) SetTo

func (o *OptUint64) SetTo(v uint64)

SetTo sets value to v.

func (*OptUint64) UnmarshalJSON

func (s *OptUint64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUnSubscriptionAction

type OptUnSubscriptionAction struct {
	Value UnSubscriptionAction
	Set   bool
}

OptUnSubscriptionAction is optional UnSubscriptionAction.

func NewOptUnSubscriptionAction

func NewOptUnSubscriptionAction(v UnSubscriptionAction) OptUnSubscriptionAction

NewOptUnSubscriptionAction returns new OptUnSubscriptionAction with value set to v.

func (*OptUnSubscriptionAction) Decode

func (o *OptUnSubscriptionAction) Decode(d *jx.Decoder) error

Decode decodes UnSubscriptionAction from json.

func (OptUnSubscriptionAction) Encode

func (o OptUnSubscriptionAction) Encode(e *jx.Encoder)

Encode encodes UnSubscriptionAction as json.

func (OptUnSubscriptionAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptUnSubscriptionAction) IsSet

func (o OptUnSubscriptionAction) IsSet() bool

IsSet returns true if OptUnSubscriptionAction was set.

func (OptUnSubscriptionAction) MarshalJSON

func (s OptUnSubscriptionAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUnSubscriptionAction) Or

Or returns value if set, or given parameter if does not.

func (*OptUnSubscriptionAction) Reset

func (o *OptUnSubscriptionAction) Reset()

Reset unsets value.

func (*OptUnSubscriptionAction) SetTo

SetTo sets value to v.

func (*OptUnSubscriptionAction) UnmarshalJSON

func (s *OptUnSubscriptionAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptValidatorsSet

type OptValidatorsSet struct {
	Value ValidatorsSet
	Set   bool
}

OptValidatorsSet is optional ValidatorsSet.

func NewOptValidatorsSet

func NewOptValidatorsSet(v ValidatorsSet) OptValidatorsSet

NewOptValidatorsSet returns new OptValidatorsSet with value set to v.

func (*OptValidatorsSet) Decode

func (o *OptValidatorsSet) Decode(d *jx.Decoder) error

Decode decodes ValidatorsSet from json.

func (OptValidatorsSet) Encode

func (o OptValidatorsSet) Encode(e *jx.Encoder)

Encode encodes ValidatorsSet as json.

func (OptValidatorsSet) Get

func (o OptValidatorsSet) Get() (v ValidatorsSet, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptValidatorsSet) IsSet

func (o OptValidatorsSet) IsSet() bool

IsSet returns true if OptValidatorsSet was set.

func (OptValidatorsSet) MarshalJSON

func (s OptValidatorsSet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptValidatorsSet) Or

Or returns value if set, or given parameter if does not.

func (*OptValidatorsSet) Reset

func (o *OptValidatorsSet) Reset()

Reset unsets value.

func (*OptValidatorsSet) SetTo

func (o *OptValidatorsSet) SetTo(v ValidatorsSet)

SetTo sets value to v.

func (*OptValidatorsSet) UnmarshalJSON

func (s *OptValidatorsSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWalletDNS

type OptWalletDNS struct {
	Value WalletDNS
	Set   bool
}

OptWalletDNS is optional WalletDNS.

func NewOptWalletDNS

func NewOptWalletDNS(v WalletDNS) OptWalletDNS

NewOptWalletDNS returns new OptWalletDNS with value set to v.

func (*OptWalletDNS) Decode

func (o *OptWalletDNS) Decode(d *jx.Decoder) error

Decode decodes WalletDNS from json.

func (OptWalletDNS) Encode

func (o OptWalletDNS) Encode(e *jx.Encoder)

Encode encodes WalletDNS as json.

func (OptWalletDNS) Get

func (o OptWalletDNS) Get() (v WalletDNS, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptWalletDNS) IsSet

func (o OptWalletDNS) IsSet() bool

IsSet returns true if OptWalletDNS was set.

func (OptWalletDNS) MarshalJSON

func (s OptWalletDNS) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWalletDNS) Or

Or returns value if set, or given parameter if does not.

func (*OptWalletDNS) Reset

func (o *OptWalletDNS) Reset()

Reset unsets value.

func (*OptWalletDNS) SetTo

func (o *OptWalletDNS) SetTo(v WalletDNS)

SetTo sets value to v.

func (*OptWalletDNS) UnmarshalJSON

func (s *OptWalletDNS) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWithdrawStakeAction

type OptWithdrawStakeAction struct {
	Value WithdrawStakeAction
	Set   bool
}

OptWithdrawStakeAction is optional WithdrawStakeAction.

func NewOptWithdrawStakeAction

func NewOptWithdrawStakeAction(v WithdrawStakeAction) OptWithdrawStakeAction

NewOptWithdrawStakeAction returns new OptWithdrawStakeAction with value set to v.

func (*OptWithdrawStakeAction) Decode

func (o *OptWithdrawStakeAction) Decode(d *jx.Decoder) error

Decode decodes WithdrawStakeAction from json.

func (OptWithdrawStakeAction) Encode

func (o OptWithdrawStakeAction) Encode(e *jx.Encoder)

Encode encodes WithdrawStakeAction as json.

func (OptWithdrawStakeAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptWithdrawStakeAction) IsSet

func (o OptWithdrawStakeAction) IsSet() bool

IsSet returns true if OptWithdrawStakeAction was set.

func (OptWithdrawStakeAction) MarshalJSON

func (s OptWithdrawStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWithdrawStakeAction) Or

Or returns value if set, or given parameter if does not.

func (*OptWithdrawStakeAction) Reset

func (o *OptWithdrawStakeAction) Reset()

Reset unsets value.

func (*OptWithdrawStakeAction) SetTo

SetTo sets value to v.

func (*OptWithdrawStakeAction) UnmarshalJSON

func (s *OptWithdrawStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWithdrawStakeRequestAction

type OptWithdrawStakeRequestAction struct {
	Value WithdrawStakeRequestAction
	Set   bool
}

OptWithdrawStakeRequestAction is optional WithdrawStakeRequestAction.

func NewOptWithdrawStakeRequestAction

func NewOptWithdrawStakeRequestAction(v WithdrawStakeRequestAction) OptWithdrawStakeRequestAction

NewOptWithdrawStakeRequestAction returns new OptWithdrawStakeRequestAction with value set to v.

func (*OptWithdrawStakeRequestAction) Decode

Decode decodes WithdrawStakeRequestAction from json.

func (OptWithdrawStakeRequestAction) Encode

Encode encodes WithdrawStakeRequestAction as json.

func (OptWithdrawStakeRequestAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptWithdrawStakeRequestAction) IsSet

IsSet returns true if OptWithdrawStakeRequestAction was set.

func (OptWithdrawStakeRequestAction) MarshalJSON

func (s OptWithdrawStakeRequestAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWithdrawStakeRequestAction) Or

Or returns value if set, or given parameter if does not.

func (*OptWithdrawStakeRequestAction) Reset

func (o *OptWithdrawStakeRequestAction) Reset()

Reset unsets value.

func (*OptWithdrawStakeRequestAction) SetTo

SetTo sets value to v.

func (*OptWithdrawStakeRequestAction) UnmarshalJSON

func (s *OptWithdrawStakeRequestAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PoolImplementation

type PoolImplementation struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	URL         string   `json:"url"`
	Socials     []string `json:"socials"`
}

Ref: #/components/schemas/PoolImplementation

func (*PoolImplementation) Decode

func (s *PoolImplementation) Decode(d *jx.Decoder) error

Decode decodes PoolImplementation from json.

func (*PoolImplementation) Encode

func (s *PoolImplementation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PoolImplementation) GetDescription

func (s *PoolImplementation) GetDescription() string

GetDescription returns the value of Description.

func (*PoolImplementation) GetName

func (s *PoolImplementation) GetName() string

GetName returns the value of Name.

func (*PoolImplementation) GetSocials

func (s *PoolImplementation) GetSocials() []string

GetSocials returns the value of Socials.

func (*PoolImplementation) GetURL

func (s *PoolImplementation) GetURL() string

GetURL returns the value of URL.

func (*PoolImplementation) MarshalJSON

func (s *PoolImplementation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PoolImplementation) SetDescription

func (s *PoolImplementation) SetDescription(val string)

SetDescription sets the value of Description.

func (*PoolImplementation) SetName

func (s *PoolImplementation) SetName(val string)

SetName sets the value of Name.

func (*PoolImplementation) SetSocials

func (s *PoolImplementation) SetSocials(val []string)

SetSocials sets the value of Socials.

func (*PoolImplementation) SetURL

func (s *PoolImplementation) SetURL(val string)

SetURL sets the value of URL.

func (*PoolImplementation) UnmarshalJSON

func (s *PoolImplementation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PoolImplementation) Validate

func (s *PoolImplementation) Validate() error

type PoolImplementationType

type PoolImplementationType string

Ref: #/components/schemas/PoolImplementationType

const (
	PoolImplementationTypeWhales   PoolImplementationType = "whales"
	PoolImplementationTypeTf       PoolImplementationType = "tf"
	PoolImplementationTypeLiquidTF PoolImplementationType = "liquidTF"
)

func (*PoolImplementationType) Decode

func (s *PoolImplementationType) Decode(d *jx.Decoder) error

Decode decodes PoolImplementationType from json.

func (PoolImplementationType) Encode

func (s PoolImplementationType) Encode(e *jx.Encoder)

Encode encodes PoolImplementationType as json.

func (PoolImplementationType) MarshalJSON

func (s PoolImplementationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PoolImplementationType) MarshalText

func (s PoolImplementationType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PoolImplementationType) UnmarshalJSON

func (s *PoolImplementationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PoolImplementationType) UnmarshalText

func (s *PoolImplementationType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PoolImplementationType) Validate

func (s PoolImplementationType) Validate() error

type PoolInfo

type PoolInfo struct {
	Address        string                 `json:"address"`
	Name           string                 `json:"name"`
	TotalAmount    int64                  `json:"total_amount"`
	Implementation PoolImplementationType `json:"implementation"`
	// APY in percent.
	Apy      float64 `json:"apy"`
	MinStake int64   `json:"min_stake"`
	// Current nomination cycle beginning timestamp.
	CycleStart int64 `json:"cycle_start"`
	// Current nomination cycle ending timestamp.
	CycleEnd int64 `json:"cycle_end"`
	// This pool has verified source code or managed by trusted company.
	Verified bool `json:"verified"`
	// Current number of nominators.
	CurrentNominators int `json:"current_nominators"`
	// Maximum number of nominators.
	MaxNominators int `json:"max_nominators"`
	// For liquid staking master account of jetton.
	LiquidJettonMaster OptString `json:"liquid_jetton_master"`
	// Total stake of all nominators.
	NominatorsStake int64 `json:"nominators_stake"`
	// Stake of validator.
	ValidatorStake int64    `json:"validator_stake"`
	CycleLength    OptInt64 `json:"cycle_length"`
}

Ref: #/components/schemas/PoolInfo

func (*PoolInfo) Decode

func (s *PoolInfo) Decode(d *jx.Decoder) error

Decode decodes PoolInfo from json.

func (*PoolInfo) Encode

func (s *PoolInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PoolInfo) GetAddress

func (s *PoolInfo) GetAddress() string

GetAddress returns the value of Address.

func (*PoolInfo) GetApy

func (s *PoolInfo) GetApy() float64

GetApy returns the value of Apy.

func (*PoolInfo) GetCurrentNominators

func (s *PoolInfo) GetCurrentNominators() int

GetCurrentNominators returns the value of CurrentNominators.

func (*PoolInfo) GetCycleEnd

func (s *PoolInfo) GetCycleEnd() int64

GetCycleEnd returns the value of CycleEnd.

func (*PoolInfo) GetCycleLength added in v1.1.2

func (s *PoolInfo) GetCycleLength() OptInt64

GetCycleLength returns the value of CycleLength.

func (*PoolInfo) GetCycleStart

func (s *PoolInfo) GetCycleStart() int64

GetCycleStart returns the value of CycleStart.

func (*PoolInfo) GetImplementation

func (s *PoolInfo) GetImplementation() PoolImplementationType

GetImplementation returns the value of Implementation.

func (*PoolInfo) GetLiquidJettonMaster

func (s *PoolInfo) GetLiquidJettonMaster() OptString

GetLiquidJettonMaster returns the value of LiquidJettonMaster.

func (*PoolInfo) GetMaxNominators

func (s *PoolInfo) GetMaxNominators() int

GetMaxNominators returns the value of MaxNominators.

func (*PoolInfo) GetMinStake

func (s *PoolInfo) GetMinStake() int64

GetMinStake returns the value of MinStake.

func (*PoolInfo) GetName

func (s *PoolInfo) GetName() string

GetName returns the value of Name.

func (*PoolInfo) GetNominatorsStake

func (s *PoolInfo) GetNominatorsStake() int64

GetNominatorsStake returns the value of NominatorsStake.

func (*PoolInfo) GetTotalAmount

func (s *PoolInfo) GetTotalAmount() int64

GetTotalAmount returns the value of TotalAmount.

func (*PoolInfo) GetValidatorStake

func (s *PoolInfo) GetValidatorStake() int64

GetValidatorStake returns the value of ValidatorStake.

func (*PoolInfo) GetVerified

func (s *PoolInfo) GetVerified() bool

GetVerified returns the value of Verified.

func (*PoolInfo) MarshalJSON

func (s *PoolInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PoolInfo) SetAddress

func (s *PoolInfo) SetAddress(val string)

SetAddress sets the value of Address.

func (*PoolInfo) SetApy

func (s *PoolInfo) SetApy(val float64)

SetApy sets the value of Apy.

func (*PoolInfo) SetCurrentNominators

func (s *PoolInfo) SetCurrentNominators(val int)

SetCurrentNominators sets the value of CurrentNominators.

func (*PoolInfo) SetCycleEnd

func (s *PoolInfo) SetCycleEnd(val int64)

SetCycleEnd sets the value of CycleEnd.

func (*PoolInfo) SetCycleLength added in v1.1.2

func (s *PoolInfo) SetCycleLength(val OptInt64)

SetCycleLength sets the value of CycleLength.

func (*PoolInfo) SetCycleStart

func (s *PoolInfo) SetCycleStart(val int64)

SetCycleStart sets the value of CycleStart.

func (*PoolInfo) SetImplementation

func (s *PoolInfo) SetImplementation(val PoolImplementationType)

SetImplementation sets the value of Implementation.

func (*PoolInfo) SetLiquidJettonMaster

func (s *PoolInfo) SetLiquidJettonMaster(val OptString)

SetLiquidJettonMaster sets the value of LiquidJettonMaster.

func (*PoolInfo) SetMaxNominators

func (s *PoolInfo) SetMaxNominators(val int)

SetMaxNominators sets the value of MaxNominators.

func (*PoolInfo) SetMinStake

func (s *PoolInfo) SetMinStake(val int64)

SetMinStake sets the value of MinStake.

func (*PoolInfo) SetName

func (s *PoolInfo) SetName(val string)

SetName sets the value of Name.

func (*PoolInfo) SetNominatorsStake

func (s *PoolInfo) SetNominatorsStake(val int64)

SetNominatorsStake sets the value of NominatorsStake.

func (*PoolInfo) SetTotalAmount

func (s *PoolInfo) SetTotalAmount(val int64)

SetTotalAmount sets the value of TotalAmount.

func (*PoolInfo) SetValidatorStake

func (s *PoolInfo) SetValidatorStake(val int64)

SetValidatorStake sets the value of ValidatorStake.

func (*PoolInfo) SetVerified

func (s *PoolInfo) SetVerified(val bool)

SetVerified sets the value of Verified.

func (*PoolInfo) UnmarshalJSON

func (s *PoolInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PoolInfo) Validate

func (s *PoolInfo) Validate() error

type Price

type Price struct {
	Value     string `json:"value"`
	TokenName string `json:"token_name"`
}

Ref: #/components/schemas/Price

func (*Price) Decode

func (s *Price) Decode(d *jx.Decoder) error

Decode decodes Price from json.

func (*Price) Encode

func (s *Price) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Price) GetTokenName

func (s *Price) GetTokenName() string

GetTokenName returns the value of TokenName.

func (*Price) GetValue

func (s *Price) GetValue() string

GetValue returns the value of Value.

func (*Price) MarshalJSON

func (s *Price) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Price) SetTokenName

func (s *Price) SetTokenName(val string)

SetTokenName sets the value of TokenName.

func (*Price) SetValue

func (s *Price) SetValue(val string)

SetValue sets the value of Value.

func (*Price) UnmarshalJSON

func (s *Price) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Refund

type Refund struct {
	Type   RefundType `json:"type"`
	Origin string     `json:"origin"`
}

Ref: #/components/schemas/Refund

func (*Refund) Decode

func (s *Refund) Decode(d *jx.Decoder) error

Decode decodes Refund from json.

func (*Refund) Encode

func (s *Refund) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Refund) GetOrigin

func (s *Refund) GetOrigin() string

GetOrigin returns the value of Origin.

func (*Refund) GetType

func (s *Refund) GetType() RefundType

GetType returns the value of Type.

func (*Refund) MarshalJSON

func (s *Refund) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Refund) SetOrigin

func (s *Refund) SetOrigin(val string)

SetOrigin sets the value of Origin.

func (*Refund) SetType

func (s *Refund) SetType(val RefundType)

SetType sets the value of Type.

func (*Refund) UnmarshalJSON

func (s *Refund) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Refund) Validate

func (s *Refund) Validate() error

type RefundType

type RefundType string
const (
	RefundTypeDNSTon  RefundType = "DNS.ton"
	RefundTypeDNSTg   RefundType = "DNS.tg"
	RefundTypeGetGems RefundType = "GetGems"
)

func (*RefundType) Decode

func (s *RefundType) Decode(d *jx.Decoder) error

Decode decodes RefundType from json.

func (RefundType) Encode

func (s RefundType) Encode(e *jx.Encoder)

Encode encodes RefundType as json.

func (RefundType) MarshalJSON

func (s RefundType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RefundType) MarshalText

func (s RefundType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RefundType) UnmarshalJSON

func (s *RefundType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RefundType) UnmarshalText

func (s *RefundType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RefundType) Validate

func (s RefundType) Validate() error

type ReindexAccountOK

type ReindexAccountOK struct{}

ReindexAccountOK is response for ReindexAccount operation.

type ReindexAccountParams

type ReindexAccountParams struct {
	// Account ID.
	AccountID string
}

ReindexAccountParams is parameters of reindexAccount operation.

type Risk

type Risk struct {
	// Transfer all the remaining balance of the wallet.
	TransferAllRemainingBalance bool             `json:"transfer_all_remaining_balance"`
	Ton                         int64            `json:"ton"`
	Jettons                     []JettonQuantity `json:"jettons"`
	Nfts                        []NftItem        `json:"nfts"`
}

Risk specifies assets that could be lost if a message would be sent to a malicious smart contract. It makes sense to understand the risk BEFORE sending a message to the blockchain. Ref: #/components/schemas/Risk

func (*Risk) Decode

func (s *Risk) Decode(d *jx.Decoder) error

Decode decodes Risk from json.

func (*Risk) Encode

func (s *Risk) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Risk) GetJettons

func (s *Risk) GetJettons() []JettonQuantity

GetJettons returns the value of Jettons.

func (*Risk) GetNfts

func (s *Risk) GetNfts() []NftItem

GetNfts returns the value of Nfts.

func (*Risk) GetTon

func (s *Risk) GetTon() int64

GetTon returns the value of Ton.

func (*Risk) GetTransferAllRemainingBalance

func (s *Risk) GetTransferAllRemainingBalance() bool

GetTransferAllRemainingBalance returns the value of TransferAllRemainingBalance.

func (*Risk) MarshalJSON

func (s *Risk) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Risk) SetJettons

func (s *Risk) SetJettons(val []JettonQuantity)

SetJettons sets the value of Jettons.

func (*Risk) SetNfts

func (s *Risk) SetNfts(val []NftItem)

SetNfts sets the value of Nfts.

func (*Risk) SetTon

func (s *Risk) SetTon(val int64)

SetTon sets the value of Ton.

func (*Risk) SetTransferAllRemainingBalance

func (s *Risk) SetTransferAllRemainingBalance(val bool)

SetTransferAllRemainingBalance sets the value of TransferAllRemainingBalance.

func (*Risk) UnmarshalJSON

func (s *Risk) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Risk) Validate

func (s *Risk) Validate() error

type Sale

type Sale struct {
	Address string            `json:"address"`
	Market  AccountAddress    `json:"market"`
	Owner   OptAccountAddress `json:"owner"`
	Price   Price             `json:"price"`
}

Ref: #/components/schemas/Sale

func (*Sale) Decode

func (s *Sale) Decode(d *jx.Decoder) error

Decode decodes Sale from json.

func (*Sale) Encode

func (s *Sale) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Sale) GetAddress

func (s *Sale) GetAddress() string

GetAddress returns the value of Address.

func (*Sale) GetMarket

func (s *Sale) GetMarket() AccountAddress

GetMarket returns the value of Market.

func (*Sale) GetOwner

func (s *Sale) GetOwner() OptAccountAddress

GetOwner returns the value of Owner.

func (*Sale) GetPrice

func (s *Sale) GetPrice() Price

GetPrice returns the value of Price.

func (*Sale) MarshalJSON

func (s *Sale) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Sale) SetAddress

func (s *Sale) SetAddress(val string)

SetAddress sets the value of Address.

func (*Sale) SetMarket

func (s *Sale) SetMarket(val AccountAddress)

SetMarket sets the value of Market.

func (*Sale) SetOwner

func (s *Sale) SetOwner(val OptAccountAddress)

SetOwner sets the value of Owner.

func (*Sale) SetPrice

func (s *Sale) SetPrice(val Price)

SetPrice sets the value of Price.

func (*Sale) UnmarshalJSON

func (s *Sale) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchAccountsParams

type SearchAccountsParams struct {
	Name string
}

SearchAccountsParams is parameters of searchAccounts operation.

type SendBlockchainMessageOK

type SendBlockchainMessageOK struct{}

SendBlockchainMessageOK is response for SendBlockchainMessage operation.

type SendBlockchainMessageReq

type SendBlockchainMessageReq struct {
	Boc   OptString `json:"boc"`
	Batch []string  `json:"batch"`
}

func (*SendBlockchainMessageReq) Decode

func (s *SendBlockchainMessageReq) Decode(d *jx.Decoder) error

Decode decodes SendBlockchainMessageReq from json.

func (*SendBlockchainMessageReq) Encode

func (s *SendBlockchainMessageReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendBlockchainMessageReq) GetBatch

func (s *SendBlockchainMessageReq) GetBatch() []string

GetBatch returns the value of Batch.

func (*SendBlockchainMessageReq) GetBoc

func (s *SendBlockchainMessageReq) GetBoc() OptString

GetBoc returns the value of Boc.

func (*SendBlockchainMessageReq) MarshalJSON

func (s *SendBlockchainMessageReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendBlockchainMessageReq) SetBatch

func (s *SendBlockchainMessageReq) SetBatch(val []string)

SetBatch sets the value of Batch.

func (*SendBlockchainMessageReq) SetBoc

func (s *SendBlockchainMessageReq) SetBoc(val OptString)

SetBoc sets the value of Boc.

func (*SendBlockchainMessageReq) UnmarshalJSON

func (s *SendBlockchainMessageReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendBlockchainMessageReq) Validate

func (s *SendBlockchainMessageReq) Validate() error

type SendRawMessageOK

type SendRawMessageOK struct {
	Code uint32 `json:"code"`
}

func (*SendRawMessageOK) Decode

func (s *SendRawMessageOK) Decode(d *jx.Decoder) error

Decode decodes SendRawMessageOK from json.

func (*SendRawMessageOK) Encode

func (s *SendRawMessageOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendRawMessageOK) GetCode

func (s *SendRawMessageOK) GetCode() uint32

GetCode returns the value of Code.

func (*SendRawMessageOK) MarshalJSON

func (s *SendRawMessageOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendRawMessageOK) SetCode

func (s *SendRawMessageOK) SetCode(val uint32)

SetCode sets the value of Code.

func (*SendRawMessageOK) UnmarshalJSON

func (s *SendRawMessageOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SendRawMessageReq

type SendRawMessageReq struct {
	Body string `json:"body"`
}

func (*SendRawMessageReq) Decode

func (s *SendRawMessageReq) Decode(d *jx.Decoder) error

Decode decodes SendRawMessageReq from json.

func (*SendRawMessageReq) Encode

func (s *SendRawMessageReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendRawMessageReq) GetBody

func (s *SendRawMessageReq) GetBody() string

GetBody returns the value of Body.

func (*SendRawMessageReq) MarshalJSON

func (s *SendRawMessageReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendRawMessageReq) SetBody

func (s *SendRawMessageReq) SetBody(val string)

SetBody sets the value of Body.

func (*SendRawMessageReq) UnmarshalJSON

func (s *SendRawMessageReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Seqno

type Seqno struct {
	Seqno uint32 `json:"seqno"`
}

Ref: #/components/schemas/Seqno

func (*Seqno) Decode

func (s *Seqno) Decode(d *jx.Decoder) error

Decode decodes Seqno from json.

func (*Seqno) Encode

func (s *Seqno) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Seqno) GetSeqno

func (s *Seqno) GetSeqno() uint32

GetSeqno returns the value of Seqno.

func (*Seqno) MarshalJSON

func (s *Seqno) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Seqno) SetSeqno

func (s *Seqno) SetSeqno(val uint32)

SetSeqno sets the value of Seqno.

func (*Seqno) UnmarshalJSON

func (s *Seqno) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SetWalletBackupOK

type SetWalletBackupOK struct{}

SetWalletBackupOK is response for SetWalletBackup operation.

type SetWalletBackupParams

type SetWalletBackupParams struct {
	XTonConnectAuth string
}

SetWalletBackupParams is parameters of setWalletBackup operation.

type SetWalletBackupReq

type SetWalletBackupReq struct {
	Data io.Reader
}

func (SetWalletBackupReq) Read

func (s SetWalletBackupReq) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type SmartContractAction

type SmartContractAction struct {
	Executor AccountAddress `json:"executor"`
	Contract AccountAddress `json:"contract"`
	// Amount in nanotons.
	TonAttached int64     `json:"ton_attached"`
	Operation   string    `json:"operation"`
	Payload     OptString `json:"payload"`
	Refund      OptRefund `json:"refund"`
}

Ref: #/components/schemas/SmartContractAction

func (*SmartContractAction) Decode

func (s *SmartContractAction) Decode(d *jx.Decoder) error

Decode decodes SmartContractAction from json.

func (*SmartContractAction) Encode

func (s *SmartContractAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SmartContractAction) GetContract

func (s *SmartContractAction) GetContract() AccountAddress

GetContract returns the value of Contract.

func (*SmartContractAction) GetExecutor

func (s *SmartContractAction) GetExecutor() AccountAddress

GetExecutor returns the value of Executor.

func (*SmartContractAction) GetOperation

func (s *SmartContractAction) GetOperation() string

GetOperation returns the value of Operation.

func (*SmartContractAction) GetPayload

func (s *SmartContractAction) GetPayload() OptString

GetPayload returns the value of Payload.

func (*SmartContractAction) GetRefund

func (s *SmartContractAction) GetRefund() OptRefund

GetRefund returns the value of Refund.

func (*SmartContractAction) GetTonAttached

func (s *SmartContractAction) GetTonAttached() int64

GetTonAttached returns the value of TonAttached.

func (*SmartContractAction) MarshalJSON

func (s *SmartContractAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SmartContractAction) SetContract

func (s *SmartContractAction) SetContract(val AccountAddress)

SetContract sets the value of Contract.

func (*SmartContractAction) SetExecutor

func (s *SmartContractAction) SetExecutor(val AccountAddress)

SetExecutor sets the value of Executor.

func (*SmartContractAction) SetOperation

func (s *SmartContractAction) SetOperation(val string)

SetOperation sets the value of Operation.

func (*SmartContractAction) SetPayload

func (s *SmartContractAction) SetPayload(val OptString)

SetPayload sets the value of Payload.

func (*SmartContractAction) SetRefund

func (s *SmartContractAction) SetRefund(val OptRefund)

SetRefund sets the value of Refund.

func (*SmartContractAction) SetTonAttached

func (s *SmartContractAction) SetTonAttached(val int64)

SetTonAttached sets the value of TonAttached.

func (*SmartContractAction) UnmarshalJSON

func (s *SmartContractAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SmartContractAction) Validate

func (s *SmartContractAction) Validate() error

type StateInit

type StateInit struct {
	Boc string `json:"boc"`
}

Ref: #/components/schemas/StateInit

func (*StateInit) Decode

func (s *StateInit) Decode(d *jx.Decoder) error

Decode decodes StateInit from json.

func (*StateInit) Encode

func (s *StateInit) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StateInit) GetBoc

func (s *StateInit) GetBoc() string

GetBoc returns the value of Boc.

func (*StateInit) MarshalJSON

func (s *StateInit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StateInit) SetBoc

func (s *StateInit) SetBoc(val string)

SetBoc sets the value of Boc.

func (*StateInit) UnmarshalJSON

func (s *StateInit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StoragePhase

type StoragePhase struct {
	FeesCollected int64           `json:"fees_collected"`
	FeesDue       OptInt64        `json:"fees_due"`
	StatusChange  AccStatusChange `json:"status_change"`
}

Ref: #/components/schemas/StoragePhase

func (*StoragePhase) Decode

func (s *StoragePhase) Decode(d *jx.Decoder) error

Decode decodes StoragePhase from json.

func (*StoragePhase) Encode

func (s *StoragePhase) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StoragePhase) GetFeesCollected

func (s *StoragePhase) GetFeesCollected() int64

GetFeesCollected returns the value of FeesCollected.

func (*StoragePhase) GetFeesDue

func (s *StoragePhase) GetFeesDue() OptInt64

GetFeesDue returns the value of FeesDue.

func (*StoragePhase) GetStatusChange

func (s *StoragePhase) GetStatusChange() AccStatusChange

GetStatusChange returns the value of StatusChange.

func (*StoragePhase) MarshalJSON

func (s *StoragePhase) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StoragePhase) SetFeesCollected

func (s *StoragePhase) SetFeesCollected(val int64)

SetFeesCollected sets the value of FeesCollected.

func (*StoragePhase) SetFeesDue

func (s *StoragePhase) SetFeesDue(val OptInt64)

SetFeesDue sets the value of FeesDue.

func (*StoragePhase) SetStatusChange

func (s *StoragePhase) SetStatusChange(val AccStatusChange)

SetStatusChange sets the value of StatusChange.

func (*StoragePhase) UnmarshalJSON

func (s *StoragePhase) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StoragePhase) Validate

func (s *StoragePhase) Validate() error

type StorageProvider

type StorageProvider struct {
	Address            string `json:"address"`
	AcceptNewContracts bool   `json:"accept_new_contracts"`
	RatePerMBDay       int64  `json:"rate_per_mb_day"`
	MaxSpan            int64  `json:"max_span"`
	MinimalFileSize    int64  `json:"minimal_file_size"`
	MaximalFileSize    int64  `json:"maximal_file_size"`
}

Ref: #/components/schemas/StorageProvider

func (*StorageProvider) Decode

func (s *StorageProvider) Decode(d *jx.Decoder) error

Decode decodes StorageProvider from json.

func (*StorageProvider) Encode

func (s *StorageProvider) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StorageProvider) GetAcceptNewContracts

func (s *StorageProvider) GetAcceptNewContracts() bool

GetAcceptNewContracts returns the value of AcceptNewContracts.

func (*StorageProvider) GetAddress

func (s *StorageProvider) GetAddress() string

GetAddress returns the value of Address.

func (*StorageProvider) GetMaxSpan

func (s *StorageProvider) GetMaxSpan() int64

GetMaxSpan returns the value of MaxSpan.

func (*StorageProvider) GetMaximalFileSize

func (s *StorageProvider) GetMaximalFileSize() int64

GetMaximalFileSize returns the value of MaximalFileSize.

func (*StorageProvider) GetMinimalFileSize

func (s *StorageProvider) GetMinimalFileSize() int64

GetMinimalFileSize returns the value of MinimalFileSize.

func (*StorageProvider) GetRatePerMBDay

func (s *StorageProvider) GetRatePerMBDay() int64

GetRatePerMBDay returns the value of RatePerMBDay.

func (*StorageProvider) MarshalJSON

func (s *StorageProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StorageProvider) SetAcceptNewContracts

func (s *StorageProvider) SetAcceptNewContracts(val bool)

SetAcceptNewContracts sets the value of AcceptNewContracts.

func (*StorageProvider) SetAddress

func (s *StorageProvider) SetAddress(val string)

SetAddress sets the value of Address.

func (*StorageProvider) SetMaxSpan

func (s *StorageProvider) SetMaxSpan(val int64)

SetMaxSpan sets the value of MaxSpan.

func (*StorageProvider) SetMaximalFileSize

func (s *StorageProvider) SetMaximalFileSize(val int64)

SetMaximalFileSize sets the value of MaximalFileSize.

func (*StorageProvider) SetMinimalFileSize

func (s *StorageProvider) SetMinimalFileSize(val int64)

SetMinimalFileSize sets the value of MinimalFileSize.

func (*StorageProvider) SetRatePerMBDay

func (s *StorageProvider) SetRatePerMBDay(val int64)

SetRatePerMBDay sets the value of RatePerMBDay.

func (*StorageProvider) UnmarshalJSON

func (s *StorageProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Subscription

type Subscription struct {
	Address            string `json:"address"`
	WalletAddress      string `json:"wallet_address"`
	BeneficiaryAddress string `json:"beneficiary_address"`
	Amount             int64  `json:"amount"`
	Period             int64  `json:"period"`
	StartTime          int64  `json:"start_time"`
	Timeout            int64  `json:"timeout"`
	LastPaymentTime    int64  `json:"last_payment_time"`
	LastRequestTime    int64  `json:"last_request_time"`
	SubscriptionID     int64  `json:"subscription_id"`
	FailedAttempts     int32  `json:"failed_attempts"`
}

Ref: #/components/schemas/Subscription

func (*Subscription) Decode

func (s *Subscription) Decode(d *jx.Decoder) error

Decode decodes Subscription from json.

func (*Subscription) Encode

func (s *Subscription) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Subscription) GetAddress

func (s *Subscription) GetAddress() string

GetAddress returns the value of Address.

func (*Subscription) GetAmount

func (s *Subscription) GetAmount() int64

GetAmount returns the value of Amount.

func (*Subscription) GetBeneficiaryAddress

func (s *Subscription) GetBeneficiaryAddress() string

GetBeneficiaryAddress returns the value of BeneficiaryAddress.

func (*Subscription) GetFailedAttempts

func (s *Subscription) GetFailedAttempts() int32

GetFailedAttempts returns the value of FailedAttempts.

func (*Subscription) GetLastPaymentTime

func (s *Subscription) GetLastPaymentTime() int64

GetLastPaymentTime returns the value of LastPaymentTime.

func (*Subscription) GetLastRequestTime

func (s *Subscription) GetLastRequestTime() int64

GetLastRequestTime returns the value of LastRequestTime.

func (*Subscription) GetPeriod

func (s *Subscription) GetPeriod() int64

GetPeriod returns the value of Period.

func (*Subscription) GetStartTime

func (s *Subscription) GetStartTime() int64

GetStartTime returns the value of StartTime.

func (*Subscription) GetSubscriptionID

func (s *Subscription) GetSubscriptionID() int64

GetSubscriptionID returns the value of SubscriptionID.

func (*Subscription) GetTimeout

func (s *Subscription) GetTimeout() int64

GetTimeout returns the value of Timeout.

func (*Subscription) GetWalletAddress

func (s *Subscription) GetWalletAddress() string

GetWalletAddress returns the value of WalletAddress.

func (*Subscription) MarshalJSON

func (s *Subscription) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Subscription) SetAddress

func (s *Subscription) SetAddress(val string)

SetAddress sets the value of Address.

func (*Subscription) SetAmount

func (s *Subscription) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*Subscription) SetBeneficiaryAddress

func (s *Subscription) SetBeneficiaryAddress(val string)

SetBeneficiaryAddress sets the value of BeneficiaryAddress.

func (*Subscription) SetFailedAttempts

func (s *Subscription) SetFailedAttempts(val int32)

SetFailedAttempts sets the value of FailedAttempts.

func (*Subscription) SetLastPaymentTime

func (s *Subscription) SetLastPaymentTime(val int64)

SetLastPaymentTime sets the value of LastPaymentTime.

func (*Subscription) SetLastRequestTime

func (s *Subscription) SetLastRequestTime(val int64)

SetLastRequestTime sets the value of LastRequestTime.

func (*Subscription) SetPeriod

func (s *Subscription) SetPeriod(val int64)

SetPeriod sets the value of Period.

func (*Subscription) SetStartTime

func (s *Subscription) SetStartTime(val int64)

SetStartTime sets the value of StartTime.

func (*Subscription) SetSubscriptionID

func (s *Subscription) SetSubscriptionID(val int64)

SetSubscriptionID sets the value of SubscriptionID.

func (*Subscription) SetTimeout

func (s *Subscription) SetTimeout(val int64)

SetTimeout sets the value of Timeout.

func (*Subscription) SetWalletAddress

func (s *Subscription) SetWalletAddress(val string)

SetWalletAddress sets the value of WalletAddress.

func (*Subscription) UnmarshalJSON

func (s *Subscription) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SubscriptionAction

type SubscriptionAction struct {
	Subscriber   AccountAddress `json:"subscriber"`
	Subscription string         `json:"subscription"`
	Beneficiary  AccountAddress `json:"beneficiary"`
	Amount       int64          `json:"amount"`
	Initial      bool           `json:"initial"`
}

Ref: #/components/schemas/SubscriptionAction

func (*SubscriptionAction) Decode

func (s *SubscriptionAction) Decode(d *jx.Decoder) error

Decode decodes SubscriptionAction from json.

func (*SubscriptionAction) Encode

func (s *SubscriptionAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SubscriptionAction) GetAmount

func (s *SubscriptionAction) GetAmount() int64

GetAmount returns the value of Amount.

func (*SubscriptionAction) GetBeneficiary

func (s *SubscriptionAction) GetBeneficiary() AccountAddress

GetBeneficiary returns the value of Beneficiary.

func (*SubscriptionAction) GetInitial

func (s *SubscriptionAction) GetInitial() bool

GetInitial returns the value of Initial.

func (*SubscriptionAction) GetSubscriber

func (s *SubscriptionAction) GetSubscriber() AccountAddress

GetSubscriber returns the value of Subscriber.

func (*SubscriptionAction) GetSubscription

func (s *SubscriptionAction) GetSubscription() string

GetSubscription returns the value of Subscription.

func (*SubscriptionAction) MarshalJSON

func (s *SubscriptionAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SubscriptionAction) SetAmount

func (s *SubscriptionAction) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*SubscriptionAction) SetBeneficiary

func (s *SubscriptionAction) SetBeneficiary(val AccountAddress)

SetBeneficiary sets the value of Beneficiary.

func (*SubscriptionAction) SetInitial

func (s *SubscriptionAction) SetInitial(val bool)

SetInitial sets the value of Initial.

func (*SubscriptionAction) SetSubscriber

func (s *SubscriptionAction) SetSubscriber(val AccountAddress)

SetSubscriber sets the value of Subscriber.

func (*SubscriptionAction) SetSubscription

func (s *SubscriptionAction) SetSubscription(val string)

SetSubscription sets the value of Subscription.

func (*SubscriptionAction) UnmarshalJSON

func (s *SubscriptionAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Subscriptions

type Subscriptions struct {
	Subscriptions []Subscription `json:"subscriptions"`
}

Ref: #/components/schemas/Subscriptions

func (*Subscriptions) Decode

func (s *Subscriptions) Decode(d *jx.Decoder) error

Decode decodes Subscriptions from json.

func (*Subscriptions) Encode

func (s *Subscriptions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Subscriptions) GetSubscriptions

func (s *Subscriptions) GetSubscriptions() []Subscription

GetSubscriptions returns the value of Subscriptions.

func (*Subscriptions) MarshalJSON

func (s *Subscriptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Subscriptions) SetSubscriptions

func (s *Subscriptions) SetSubscriptions(val []Subscription)

SetSubscriptions sets the value of Subscriptions.

func (*Subscriptions) UnmarshalJSON

func (s *Subscriptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Subscriptions) Validate

func (s *Subscriptions) Validate() error

type TonConnectProofOK

type TonConnectProofOK struct {
	Token string `json:"token"`
}

func (*TonConnectProofOK) Decode

func (s *TonConnectProofOK) Decode(d *jx.Decoder) error

Decode decodes TonConnectProofOK from json.

func (*TonConnectProofOK) Encode

func (s *TonConnectProofOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TonConnectProofOK) GetToken

func (s *TonConnectProofOK) GetToken() string

GetToken returns the value of Token.

func (*TonConnectProofOK) MarshalJSON

func (s *TonConnectProofOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TonConnectProofOK) SetToken

func (s *TonConnectProofOK) SetToken(val string)

SetToken sets the value of Token.

func (*TonConnectProofOK) UnmarshalJSON

func (s *TonConnectProofOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TonConnectProofReq

type TonConnectProofReq struct {
	Address string                  `json:"address"`
	Proof   TonConnectProofReqProof `json:"proof"`
}

func (*TonConnectProofReq) Decode

func (s *TonConnectProofReq) Decode(d *jx.Decoder) error

Decode decodes TonConnectProofReq from json.

func (*TonConnectProofReq) Encode

func (s *TonConnectProofReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TonConnectProofReq) GetAddress

func (s *TonConnectProofReq) GetAddress() string

GetAddress returns the value of Address.

func (*TonConnectProofReq) GetProof

GetProof returns the value of Proof.

func (*TonConnectProofReq) MarshalJSON

func (s *TonConnectProofReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TonConnectProofReq) SetAddress

func (s *TonConnectProofReq) SetAddress(val string)

SetAddress sets the value of Address.

func (*TonConnectProofReq) SetProof

SetProof sets the value of Proof.

func (*TonConnectProofReq) UnmarshalJSON

func (s *TonConnectProofReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TonConnectProofReqProof

type TonConnectProofReqProof struct {
	Timestamp int64                         `json:"timestamp"`
	Domain    TonConnectProofReqProofDomain `json:"domain"`
	Signature string                        `json:"signature"`
	Payload   string                        `json:"payload"`
	StateInit OptString                     `json:"state_init"`
}

func (*TonConnectProofReqProof) Decode

func (s *TonConnectProofReqProof) Decode(d *jx.Decoder) error

Decode decodes TonConnectProofReqProof from json.

func (*TonConnectProofReqProof) Encode

func (s *TonConnectProofReqProof) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TonConnectProofReqProof) GetDomain

GetDomain returns the value of Domain.

func (*TonConnectProofReqProof) GetPayload

func (s *TonConnectProofReqProof) GetPayload() string

GetPayload returns the value of Payload.

func (*TonConnectProofReqProof) GetSignature

func (s *TonConnectProofReqProof) GetSignature() string

GetSignature returns the value of Signature.

func (*TonConnectProofReqProof) GetStateInit

func (s *TonConnectProofReqProof) GetStateInit() OptString

GetStateInit returns the value of StateInit.

func (*TonConnectProofReqProof) GetTimestamp

func (s *TonConnectProofReqProof) GetTimestamp() int64

GetTimestamp returns the value of Timestamp.

func (*TonConnectProofReqProof) MarshalJSON

func (s *TonConnectProofReqProof) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TonConnectProofReqProof) SetDomain

SetDomain sets the value of Domain.

func (*TonConnectProofReqProof) SetPayload

func (s *TonConnectProofReqProof) SetPayload(val string)

SetPayload sets the value of Payload.

func (*TonConnectProofReqProof) SetSignature

func (s *TonConnectProofReqProof) SetSignature(val string)

SetSignature sets the value of Signature.

func (*TonConnectProofReqProof) SetStateInit

func (s *TonConnectProofReqProof) SetStateInit(val OptString)

SetStateInit sets the value of StateInit.

func (*TonConnectProofReqProof) SetTimestamp

func (s *TonConnectProofReqProof) SetTimestamp(val int64)

SetTimestamp sets the value of Timestamp.

func (*TonConnectProofReqProof) UnmarshalJSON

func (s *TonConnectProofReqProof) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TonConnectProofReqProofDomain

type TonConnectProofReqProofDomain struct {
	LengthBytes OptUint32 `json:"length_bytes"`
	Value       string    `json:"value"`
}

func (*TonConnectProofReqProofDomain) Decode

Decode decodes TonConnectProofReqProofDomain from json.

func (*TonConnectProofReqProofDomain) Encode

Encode implements json.Marshaler.

func (*TonConnectProofReqProofDomain) GetLengthBytes

func (s *TonConnectProofReqProofDomain) GetLengthBytes() OptUint32

GetLengthBytes returns the value of LengthBytes.

func (*TonConnectProofReqProofDomain) GetValue

func (s *TonConnectProofReqProofDomain) GetValue() string

GetValue returns the value of Value.

func (*TonConnectProofReqProofDomain) MarshalJSON

func (s *TonConnectProofReqProofDomain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TonConnectProofReqProofDomain) SetLengthBytes

func (s *TonConnectProofReqProofDomain) SetLengthBytes(val OptUint32)

SetLengthBytes sets the value of LengthBytes.

func (*TonConnectProofReqProofDomain) SetValue

func (s *TonConnectProofReqProofDomain) SetValue(val string)

SetValue sets the value of Value.

func (*TonConnectProofReqProofDomain) UnmarshalJSON

func (s *TonConnectProofReqProofDomain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TonTransferAction

type TonTransferAction struct {
	Sender    AccountAddress `json:"sender"`
	Recipient AccountAddress `json:"recipient"`
	// Amount in nanotons.
	Amount           int64               `json:"amount"`
	Comment          OptString           `json:"comment"`
	EncryptedComment OptEncryptedComment `json:"encrypted_comment"`
	Refund           OptRefund           `json:"refund"`
}

Ref: #/components/schemas/TonTransferAction

func (*TonTransferAction) Decode

func (s *TonTransferAction) Decode(d *jx.Decoder) error

Decode decodes TonTransferAction from json.

func (*TonTransferAction) Encode

func (s *TonTransferAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TonTransferAction) GetAmount

func (s *TonTransferAction) GetAmount() int64

GetAmount returns the value of Amount.

func (*TonTransferAction) GetComment

func (s *TonTransferAction) GetComment() OptString

GetComment returns the value of Comment.

func (*TonTransferAction) GetEncryptedComment

func (s *TonTransferAction) GetEncryptedComment() OptEncryptedComment

GetEncryptedComment returns the value of EncryptedComment.

func (*TonTransferAction) GetRecipient

func (s *TonTransferAction) GetRecipient() AccountAddress

GetRecipient returns the value of Recipient.

func (*TonTransferAction) GetRefund

func (s *TonTransferAction) GetRefund() OptRefund

GetRefund returns the value of Refund.

func (*TonTransferAction) GetSender

func (s *TonTransferAction) GetSender() AccountAddress

GetSender returns the value of Sender.

func (*TonTransferAction) MarshalJSON

func (s *TonTransferAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TonTransferAction) SetAmount

func (s *TonTransferAction) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*TonTransferAction) SetComment

func (s *TonTransferAction) SetComment(val OptString)

SetComment sets the value of Comment.

func (*TonTransferAction) SetEncryptedComment

func (s *TonTransferAction) SetEncryptedComment(val OptEncryptedComment)

SetEncryptedComment sets the value of EncryptedComment.

func (*TonTransferAction) SetRecipient

func (s *TonTransferAction) SetRecipient(val AccountAddress)

SetRecipient sets the value of Recipient.

func (*TonTransferAction) SetRefund

func (s *TonTransferAction) SetRefund(val OptRefund)

SetRefund sets the value of Refund.

func (*TonTransferAction) SetSender

func (s *TonTransferAction) SetSender(val AccountAddress)

SetSender sets the value of Sender.

func (*TonTransferAction) UnmarshalJSON

func (s *TonTransferAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TonTransferAction) Validate

func (s *TonTransferAction) Validate() error

type Trace

type Trace struct {
	Transaction Transaction `json:"transaction"`
	Interfaces  []string    `json:"interfaces"`
	Children    []Trace     `json:"children"`
}

Ref: #/components/schemas/Trace

func (*Trace) Decode

func (s *Trace) Decode(d *jx.Decoder) error

Decode decodes Trace from json.

func (*Trace) Encode

func (s *Trace) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Trace) GetChildren

func (s *Trace) GetChildren() []Trace

GetChildren returns the value of Children.

func (*Trace) GetInterfaces

func (s *Trace) GetInterfaces() []string

GetInterfaces returns the value of Interfaces.

func (*Trace) GetTransaction

func (s *Trace) GetTransaction() Transaction

GetTransaction returns the value of Transaction.

func (*Trace) MarshalJSON

func (s *Trace) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Trace) SetChildren

func (s *Trace) SetChildren(val []Trace)

SetChildren sets the value of Children.

func (*Trace) SetInterfaces

func (s *Trace) SetInterfaces(val []string)

SetInterfaces sets the value of Interfaces.

func (*Trace) SetTransaction

func (s *Trace) SetTransaction(val Transaction)

SetTransaction sets the value of Transaction.

func (*Trace) UnmarshalJSON

func (s *Trace) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Trace) Validate

func (s *Trace) Validate() error

type TraceID

type TraceID struct {
	ID    string `json:"id"`
	Utime uint64 `json:"utime"`
}

Ref: #/components/schemas/TraceID

func (*TraceID) Decode

func (s *TraceID) Decode(d *jx.Decoder) error

Decode decodes TraceID from json.

func (*TraceID) Encode

func (s *TraceID) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TraceID) GetID

func (s *TraceID) GetID() string

GetID returns the value of ID.

func (*TraceID) GetUtime

func (s *TraceID) GetUtime() uint64

GetUtime returns the value of Utime.

func (*TraceID) MarshalJSON

func (s *TraceID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceID) SetID

func (s *TraceID) SetID(val string)

SetID sets the value of ID.

func (*TraceID) SetUtime

func (s *TraceID) SetUtime(val uint64)

SetUtime sets the value of Utime.

func (*TraceID) UnmarshalJSON

func (s *TraceID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TraceIDs

type TraceIDs struct {
	Traces []TraceID `json:"traces"`
}

Ref: #/components/schemas/TraceIDs

func (*TraceIDs) Decode

func (s *TraceIDs) Decode(d *jx.Decoder) error

Decode decodes TraceIDs from json.

func (*TraceIDs) Encode

func (s *TraceIDs) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TraceIDs) GetTraces

func (s *TraceIDs) GetTraces() []TraceID

GetTraces returns the value of Traces.

func (*TraceIDs) MarshalJSON

func (s *TraceIDs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TraceIDs) SetTraces

func (s *TraceIDs) SetTraces(val []TraceID)

SetTraces sets the value of Traces.

func (*TraceIDs) UnmarshalJSON

func (s *TraceIDs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TraceIDs) Validate

func (s *TraceIDs) Validate() error

type Transaction

type Transaction struct {
	Hash            string             `json:"hash"`
	Lt              int64              `json:"lt"`
	Account         AccountAddress     `json:"account"`
	Success         bool               `json:"success"`
	Utime           int64              `json:"utime"`
	OrigStatus      AccountStatus      `json:"orig_status"`
	EndStatus       AccountStatus      `json:"end_status"`
	TotalFees       int64              `json:"total_fees"`
	TransactionType TransactionType    `json:"transaction_type"`
	StateUpdateOld  string             `json:"state_update_old"`
	StateUpdateNew  string             `json:"state_update_new"`
	InMsg           OptMessage         `json:"in_msg"`
	OutMsgs         []Message          `json:"out_msgs"`
	Block           string             `json:"block"`
	PrevTransHash   OptString          `json:"prev_trans_hash"`
	PrevTransLt     OptInt64           `json:"prev_trans_lt"`
	ComputePhase    OptComputePhase    `json:"compute_phase"`
	StoragePhase    OptStoragePhase    `json:"storage_phase"`
	CreditPhase     OptCreditPhase     `json:"credit_phase"`
	ActionPhase     OptActionPhase     `json:"action_phase"`
	BouncePhase     OptBouncePhaseType `json:"bounce_phase"`
	Aborted         bool               `json:"aborted"`
	Destroyed       bool               `json:"destroyed"`
}

Ref: #/components/schemas/Transaction

func (*Transaction) Decode

func (s *Transaction) Decode(d *jx.Decoder) error

Decode decodes Transaction from json.

func (*Transaction) Encode

func (s *Transaction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Transaction) GetAborted

func (s *Transaction) GetAborted() bool

GetAborted returns the value of Aborted.

func (*Transaction) GetAccount

func (s *Transaction) GetAccount() AccountAddress

GetAccount returns the value of Account.

func (*Transaction) GetActionPhase

func (s *Transaction) GetActionPhase() OptActionPhase

GetActionPhase returns the value of ActionPhase.

func (*Transaction) GetBlock

func (s *Transaction) GetBlock() string

GetBlock returns the value of Block.

func (*Transaction) GetBouncePhase

func (s *Transaction) GetBouncePhase() OptBouncePhaseType

GetBouncePhase returns the value of BouncePhase.

func (*Transaction) GetComputePhase

func (s *Transaction) GetComputePhase() OptComputePhase

GetComputePhase returns the value of ComputePhase.

func (*Transaction) GetCreditPhase

func (s *Transaction) GetCreditPhase() OptCreditPhase

GetCreditPhase returns the value of CreditPhase.

func (*Transaction) GetDestroyed

func (s *Transaction) GetDestroyed() bool

GetDestroyed returns the value of Destroyed.

func (*Transaction) GetEndStatus

func (s *Transaction) GetEndStatus() AccountStatus

GetEndStatus returns the value of EndStatus.

func (*Transaction) GetHash

func (s *Transaction) GetHash() string

GetHash returns the value of Hash.

func (*Transaction) GetInMsg

func (s *Transaction) GetInMsg() OptMessage

GetInMsg returns the value of InMsg.

func (*Transaction) GetLt

func (s *Transaction) GetLt() int64

GetLt returns the value of Lt.

func (*Transaction) GetOrigStatus

func (s *Transaction) GetOrigStatus() AccountStatus

GetOrigStatus returns the value of OrigStatus.

func (*Transaction) GetOutMsgs

func (s *Transaction) GetOutMsgs() []Message

GetOutMsgs returns the value of OutMsgs.

func (*Transaction) GetPrevTransHash

func (s *Transaction) GetPrevTransHash() OptString

GetPrevTransHash returns the value of PrevTransHash.

func (*Transaction) GetPrevTransLt

func (s *Transaction) GetPrevTransLt() OptInt64

GetPrevTransLt returns the value of PrevTransLt.

func (*Transaction) GetStateUpdateNew

func (s *Transaction) GetStateUpdateNew() string

GetStateUpdateNew returns the value of StateUpdateNew.

func (*Transaction) GetStateUpdateOld

func (s *Transaction) GetStateUpdateOld() string

GetStateUpdateOld returns the value of StateUpdateOld.

func (*Transaction) GetStoragePhase

func (s *Transaction) GetStoragePhase() OptStoragePhase

GetStoragePhase returns the value of StoragePhase.

func (*Transaction) GetSuccess

func (s *Transaction) GetSuccess() bool

GetSuccess returns the value of Success.

func (*Transaction) GetTotalFees

func (s *Transaction) GetTotalFees() int64

GetTotalFees returns the value of TotalFees.

func (*Transaction) GetTransactionType

func (s *Transaction) GetTransactionType() TransactionType

GetTransactionType returns the value of TransactionType.

func (*Transaction) GetUtime

func (s *Transaction) GetUtime() int64

GetUtime returns the value of Utime.

func (*Transaction) MarshalJSON

func (s *Transaction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Transaction) SetAborted

func (s *Transaction) SetAborted(val bool)

SetAborted sets the value of Aborted.

func (*Transaction) SetAccount

func (s *Transaction) SetAccount(val AccountAddress)

SetAccount sets the value of Account.

func (*Transaction) SetActionPhase

func (s *Transaction) SetActionPhase(val OptActionPhase)

SetActionPhase sets the value of ActionPhase.

func (*Transaction) SetBlock

func (s *Transaction) SetBlock(val string)

SetBlock sets the value of Block.

func (*Transaction) SetBouncePhase

func (s *Transaction) SetBouncePhase(val OptBouncePhaseType)

SetBouncePhase sets the value of BouncePhase.

func (*Transaction) SetComputePhase

func (s *Transaction) SetComputePhase(val OptComputePhase)

SetComputePhase sets the value of ComputePhase.

func (*Transaction) SetCreditPhase

func (s *Transaction) SetCreditPhase(val OptCreditPhase)

SetCreditPhase sets the value of CreditPhase.

func (*Transaction) SetDestroyed

func (s *Transaction) SetDestroyed(val bool)

SetDestroyed sets the value of Destroyed.

func (*Transaction) SetEndStatus

func (s *Transaction) SetEndStatus(val AccountStatus)

SetEndStatus sets the value of EndStatus.

func (*Transaction) SetHash

func (s *Transaction) SetHash(val string)

SetHash sets the value of Hash.

func (*Transaction) SetInMsg

func (s *Transaction) SetInMsg(val OptMessage)

SetInMsg sets the value of InMsg.

func (*Transaction) SetLt

func (s *Transaction) SetLt(val int64)

SetLt sets the value of Lt.

func (*Transaction) SetOrigStatus

func (s *Transaction) SetOrigStatus(val AccountStatus)

SetOrigStatus sets the value of OrigStatus.

func (*Transaction) SetOutMsgs

func (s *Transaction) SetOutMsgs(val []Message)

SetOutMsgs sets the value of OutMsgs.

func (*Transaction) SetPrevTransHash

func (s *Transaction) SetPrevTransHash(val OptString)

SetPrevTransHash sets the value of PrevTransHash.

func (*Transaction) SetPrevTransLt

func (s *Transaction) SetPrevTransLt(val OptInt64)

SetPrevTransLt sets the value of PrevTransLt.

func (*Transaction) SetStateUpdateNew

func (s *Transaction) SetStateUpdateNew(val string)

SetStateUpdateNew sets the value of StateUpdateNew.

func (*Transaction) SetStateUpdateOld

func (s *Transaction) SetStateUpdateOld(val string)

SetStateUpdateOld sets the value of StateUpdateOld.

func (*Transaction) SetStoragePhase

func (s *Transaction) SetStoragePhase(val OptStoragePhase)

SetStoragePhase sets the value of StoragePhase.

func (*Transaction) SetSuccess

func (s *Transaction) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*Transaction) SetTotalFees

func (s *Transaction) SetTotalFees(val int64)

SetTotalFees sets the value of TotalFees.

func (*Transaction) SetTransactionType

func (s *Transaction) SetTransactionType(val TransactionType)

SetTransactionType sets the value of TransactionType.

func (*Transaction) SetUtime

func (s *Transaction) SetUtime(val int64)

SetUtime sets the value of Utime.

func (*Transaction) UnmarshalJSON

func (s *Transaction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Transaction) Validate

func (s *Transaction) Validate() error

type TransactionType

type TransactionType string

Ref: #/components/schemas/TransactionType

const (
	TransactionTypeTransOrd          TransactionType = "TransOrd"
	TransactionTypeTransTickTock     TransactionType = "TransTickTock"
	TransactionTypeTransSplitPrepare TransactionType = "TransSplitPrepare"
	TransactionTypeTransSplitInstall TransactionType = "TransSplitInstall"
	TransactionTypeTransMergePrepare TransactionType = "TransMergePrepare"
	TransactionTypeTransMergeInstall TransactionType = "TransMergeInstall"
	TransactionTypeTransStorage      TransactionType = "TransStorage"
)

func (*TransactionType) Decode

func (s *TransactionType) Decode(d *jx.Decoder) error

Decode decodes TransactionType from json.

func (TransactionType) Encode

func (s TransactionType) Encode(e *jx.Encoder)

Encode encodes TransactionType as json.

func (TransactionType) MarshalJSON

func (s TransactionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TransactionType) MarshalText

func (s TransactionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TransactionType) UnmarshalJSON

func (s *TransactionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TransactionType) UnmarshalText

func (s *TransactionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TransactionType) Validate

func (s TransactionType) Validate() error

type Transactions

type Transactions struct {
	Transactions []Transaction `json:"transactions"`
}

Ref: #/components/schemas/Transactions

func (*Transactions) Decode

func (s *Transactions) Decode(d *jx.Decoder) error

Decode decodes Transactions from json.

func (*Transactions) Encode

func (s *Transactions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Transactions) GetTransactions

func (s *Transactions) GetTransactions() []Transaction

GetTransactions returns the value of Transactions.

func (*Transactions) MarshalJSON

func (s *Transactions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Transactions) SetTransactions

func (s *Transactions) SetTransactions(val []Transaction)

SetTransactions sets the value of Transactions.

func (*Transactions) UnmarshalJSON

func (s *Transactions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Transactions) Validate

func (s *Transactions) Validate() error

type TvmStackRecord

type TvmStackRecord struct {
	Type  TvmStackRecordType `json:"type"`
	Cell  OptString          `json:"cell"`
	Slice OptString          `json:"slice"`
	Num   OptString          `json:"num"`
	Tuple []TvmStackRecord   `json:"tuple"`
}

Ref: #/components/schemas/TvmStackRecord

func (*TvmStackRecord) Decode

func (s *TvmStackRecord) Decode(d *jx.Decoder) error

Decode decodes TvmStackRecord from json.

func (*TvmStackRecord) Encode

func (s *TvmStackRecord) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TvmStackRecord) GetCell

func (s *TvmStackRecord) GetCell() OptString

GetCell returns the value of Cell.

func (*TvmStackRecord) GetNum

func (s *TvmStackRecord) GetNum() OptString

GetNum returns the value of Num.

func (*TvmStackRecord) GetSlice

func (s *TvmStackRecord) GetSlice() OptString

GetSlice returns the value of Slice.

func (*TvmStackRecord) GetTuple

func (s *TvmStackRecord) GetTuple() []TvmStackRecord

GetTuple returns the value of Tuple.

func (*TvmStackRecord) GetType

func (s *TvmStackRecord) GetType() TvmStackRecordType

GetType returns the value of Type.

func (*TvmStackRecord) MarshalJSON

func (s *TvmStackRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TvmStackRecord) SetCell

func (s *TvmStackRecord) SetCell(val OptString)

SetCell sets the value of Cell.

func (*TvmStackRecord) SetNum

func (s *TvmStackRecord) SetNum(val OptString)

SetNum sets the value of Num.

func (*TvmStackRecord) SetSlice

func (s *TvmStackRecord) SetSlice(val OptString)

SetSlice sets the value of Slice.

func (*TvmStackRecord) SetTuple

func (s *TvmStackRecord) SetTuple(val []TvmStackRecord)

SetTuple sets the value of Tuple.

func (*TvmStackRecord) SetType

func (s *TvmStackRecord) SetType(val TvmStackRecordType)

SetType sets the value of Type.

func (*TvmStackRecord) UnmarshalJSON

func (s *TvmStackRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TvmStackRecord) Validate

func (s *TvmStackRecord) Validate() error

type TvmStackRecordType

type TvmStackRecordType string
const (
	TvmStackRecordTypeCell  TvmStackRecordType = "cell"
	TvmStackRecordTypeNum   TvmStackRecordType = "num"
	TvmStackRecordTypeNan   TvmStackRecordType = "nan"
	TvmStackRecordTypeNull  TvmStackRecordType = "null"
	TvmStackRecordTypeTuple TvmStackRecordType = "tuple"
)

func (*TvmStackRecordType) Decode

func (s *TvmStackRecordType) Decode(d *jx.Decoder) error

Decode decodes TvmStackRecordType from json.

func (TvmStackRecordType) Encode

func (s TvmStackRecordType) Encode(e *jx.Encoder)

Encode encodes TvmStackRecordType as json.

func (TvmStackRecordType) MarshalJSON

func (s TvmStackRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TvmStackRecordType) MarshalText

func (s TvmStackRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TvmStackRecordType) UnmarshalJSON

func (s *TvmStackRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TvmStackRecordType) UnmarshalText

func (s *TvmStackRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TvmStackRecordType) Validate

func (s TvmStackRecordType) Validate() error

type UnSubscriptionAction

type UnSubscriptionAction struct {
	Subscriber   AccountAddress `json:"subscriber"`
	Subscription string         `json:"subscription"`
	Beneficiary  AccountAddress `json:"beneficiary"`
}

Ref: #/components/schemas/UnSubscriptionAction

func (*UnSubscriptionAction) Decode

func (s *UnSubscriptionAction) Decode(d *jx.Decoder) error

Decode decodes UnSubscriptionAction from json.

func (*UnSubscriptionAction) Encode

func (s *UnSubscriptionAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnSubscriptionAction) GetBeneficiary

func (s *UnSubscriptionAction) GetBeneficiary() AccountAddress

GetBeneficiary returns the value of Beneficiary.

func (*UnSubscriptionAction) GetSubscriber

func (s *UnSubscriptionAction) GetSubscriber() AccountAddress

GetSubscriber returns the value of Subscriber.

func (*UnSubscriptionAction) GetSubscription

func (s *UnSubscriptionAction) GetSubscription() string

GetSubscription returns the value of Subscription.

func (*UnSubscriptionAction) MarshalJSON

func (s *UnSubscriptionAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnSubscriptionAction) SetBeneficiary

func (s *UnSubscriptionAction) SetBeneficiary(val AccountAddress)

SetBeneficiary sets the value of Beneficiary.

func (*UnSubscriptionAction) SetSubscriber

func (s *UnSubscriptionAction) SetSubscriber(val AccountAddress)

SetSubscriber sets the value of Subscriber.

func (*UnSubscriptionAction) SetSubscription

func (s *UnSubscriptionAction) SetSubscription(val string)

SetSubscription sets the value of Subscription.

func (*UnSubscriptionAction) UnmarshalJSON

func (s *UnSubscriptionAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Validator

type Validator struct {
	Address string `json:"address"`
}

Ref: #/components/schemas/Validator

func (*Validator) Decode

func (s *Validator) Decode(d *jx.Decoder) error

Decode decodes Validator from json.

func (*Validator) Encode

func (s *Validator) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Validator) GetAddress

func (s *Validator) GetAddress() string

GetAddress returns the value of Address.

func (*Validator) MarshalJSON

func (s *Validator) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Validator) SetAddress

func (s *Validator) SetAddress(val string)

SetAddress sets the value of Address.

func (*Validator) UnmarshalJSON

func (s *Validator) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Validators

type Validators struct {
	Validators []Validator `json:"validators"`
}

Ref: #/components/schemas/Validators

func (*Validators) Decode

func (s *Validators) Decode(d *jx.Decoder) error

Decode decodes Validators from json.

func (*Validators) Encode

func (s *Validators) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Validators) GetValidators

func (s *Validators) GetValidators() []Validator

GetValidators returns the value of Validators.

func (*Validators) MarshalJSON

func (s *Validators) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Validators) SetValidators

func (s *Validators) SetValidators(val []Validator)

SetValidators sets the value of Validators.

func (*Validators) UnmarshalJSON

func (s *Validators) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Validators) Validate

func (s *Validators) Validate() error

type ValidatorsSet

type ValidatorsSet struct {
	UtimeSince  int                     `json:"utime_since"`
	UtimeUntil  int                     `json:"utime_until"`
	Total       int                     `json:"total"`
	Main        int                     `json:"main"`
	TotalWeight OptInt                  `json:"total_weight"`
	List        []ValidatorsSetListItem `json:"list"`
}

Ref: #/components/schemas/ValidatorsSet

func (*ValidatorsSet) Decode

func (s *ValidatorsSet) Decode(d *jx.Decoder) error

Decode decodes ValidatorsSet from json.

func (*ValidatorsSet) Encode

func (s *ValidatorsSet) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValidatorsSet) GetList

func (s *ValidatorsSet) GetList() []ValidatorsSetListItem

GetList returns the value of List.

func (*ValidatorsSet) GetMain

func (s *ValidatorsSet) GetMain() int

GetMain returns the value of Main.

func (*ValidatorsSet) GetTotal

func (s *ValidatorsSet) GetTotal() int

GetTotal returns the value of Total.

func (*ValidatorsSet) GetTotalWeight

func (s *ValidatorsSet) GetTotalWeight() OptInt

GetTotalWeight returns the value of TotalWeight.

func (*ValidatorsSet) GetUtimeSince

func (s *ValidatorsSet) GetUtimeSince() int

GetUtimeSince returns the value of UtimeSince.

func (*ValidatorsSet) GetUtimeUntil

func (s *ValidatorsSet) GetUtimeUntil() int

GetUtimeUntil returns the value of UtimeUntil.

func (*ValidatorsSet) MarshalJSON

func (s *ValidatorsSet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidatorsSet) SetList

func (s *ValidatorsSet) SetList(val []ValidatorsSetListItem)

SetList sets the value of List.

func (*ValidatorsSet) SetMain

func (s *ValidatorsSet) SetMain(val int)

SetMain sets the value of Main.

func (*ValidatorsSet) SetTotal

func (s *ValidatorsSet) SetTotal(val int)

SetTotal sets the value of Total.

func (*ValidatorsSet) SetTotalWeight

func (s *ValidatorsSet) SetTotalWeight(val OptInt)

SetTotalWeight sets the value of TotalWeight.

func (*ValidatorsSet) SetUtimeSince

func (s *ValidatorsSet) SetUtimeSince(val int)

SetUtimeSince sets the value of UtimeSince.

func (*ValidatorsSet) SetUtimeUntil

func (s *ValidatorsSet) SetUtimeUntil(val int)

SetUtimeUntil sets the value of UtimeUntil.

func (*ValidatorsSet) UnmarshalJSON

func (s *ValidatorsSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ValidatorsSet) Validate

func (s *ValidatorsSet) Validate() error

type ValidatorsSetListItem

type ValidatorsSetListItem struct {
	PublicKey string `json:"public_key"`
}

func (*ValidatorsSetListItem) Decode

func (s *ValidatorsSetListItem) Decode(d *jx.Decoder) error

Decode decodes ValidatorsSetListItem from json.

func (*ValidatorsSetListItem) Encode

func (s *ValidatorsSetListItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValidatorsSetListItem) GetPublicKey

func (s *ValidatorsSetListItem) GetPublicKey() string

GetPublicKey returns the value of PublicKey.

func (*ValidatorsSetListItem) MarshalJSON

func (s *ValidatorsSetListItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidatorsSetListItem) SetPublicKey

func (s *ValidatorsSetListItem) SetPublicKey(val string)

SetPublicKey sets the value of PublicKey.

func (*ValidatorsSetListItem) UnmarshalJSON

func (s *ValidatorsSetListItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ValueFlow

type ValueFlow struct {
	Account AccountAddress         `json:"account"`
	Ton     int64                  `json:"ton"`
	Fees    int64                  `json:"fees"`
	Jettons []ValueFlowJettonsItem `json:"jettons"`
}

Ref: #/components/schemas/ValueFlow

func (*ValueFlow) Decode

func (s *ValueFlow) Decode(d *jx.Decoder) error

Decode decodes ValueFlow from json.

func (*ValueFlow) Encode

func (s *ValueFlow) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValueFlow) GetAccount

func (s *ValueFlow) GetAccount() AccountAddress

GetAccount returns the value of Account.

func (*ValueFlow) GetFees

func (s *ValueFlow) GetFees() int64

GetFees returns the value of Fees.

func (*ValueFlow) GetJettons

func (s *ValueFlow) GetJettons() []ValueFlowJettonsItem

GetJettons returns the value of Jettons.

func (*ValueFlow) GetTon

func (s *ValueFlow) GetTon() int64

GetTon returns the value of Ton.

func (*ValueFlow) MarshalJSON

func (s *ValueFlow) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValueFlow) SetAccount

func (s *ValueFlow) SetAccount(val AccountAddress)

SetAccount sets the value of Account.

func (*ValueFlow) SetFees

func (s *ValueFlow) SetFees(val int64)

SetFees sets the value of Fees.

func (*ValueFlow) SetJettons

func (s *ValueFlow) SetJettons(val []ValueFlowJettonsItem)

SetJettons sets the value of Jettons.

func (*ValueFlow) SetTon

func (s *ValueFlow) SetTon(val int64)

SetTon sets the value of Ton.

func (*ValueFlow) UnmarshalJSON

func (s *ValueFlow) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ValueFlow) Validate

func (s *ValueFlow) Validate() error

type ValueFlowJettonsItem

type ValueFlowJettonsItem struct {
	Account  AccountAddress `json:"account"`
	Jetton   JettonPreview  `json:"jetton"`
	Quantity int64          `json:"quantity"`
}

func (*ValueFlowJettonsItem) Decode

func (s *ValueFlowJettonsItem) Decode(d *jx.Decoder) error

Decode decodes ValueFlowJettonsItem from json.

func (*ValueFlowJettonsItem) Encode

func (s *ValueFlowJettonsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValueFlowJettonsItem) GetAccount

func (s *ValueFlowJettonsItem) GetAccount() AccountAddress

GetAccount returns the value of Account.

func (*ValueFlowJettonsItem) GetJetton

func (s *ValueFlowJettonsItem) GetJetton() JettonPreview

GetJetton returns the value of Jetton.

func (*ValueFlowJettonsItem) GetQuantity

func (s *ValueFlowJettonsItem) GetQuantity() int64

GetQuantity returns the value of Quantity.

func (*ValueFlowJettonsItem) MarshalJSON

func (s *ValueFlowJettonsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValueFlowJettonsItem) SetAccount

func (s *ValueFlowJettonsItem) SetAccount(val AccountAddress)

SetAccount sets the value of Account.

func (*ValueFlowJettonsItem) SetJetton

func (s *ValueFlowJettonsItem) SetJetton(val JettonPreview)

SetJetton sets the value of Jetton.

func (*ValueFlowJettonsItem) SetQuantity

func (s *ValueFlowJettonsItem) SetQuantity(val int64)

SetQuantity sets the value of Quantity.

func (*ValueFlowJettonsItem) UnmarshalJSON

func (s *ValueFlowJettonsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ValueFlowJettonsItem) Validate

func (s *ValueFlowJettonsItem) Validate() error

type WalletDNS

type WalletDNS struct {
	Address         string   `json:"address"`
	IsWallet        bool     `json:"is_wallet"`
	HasMethodPubkey bool     `json:"has_method_pubkey"`
	HasMethodSeqno  bool     `json:"has_method_seqno"`
	Names           []string `json:"names"`
}

Ref: #/components/schemas/WalletDNS

func (*WalletDNS) Decode

func (s *WalletDNS) Decode(d *jx.Decoder) error

Decode decodes WalletDNS from json.

func (*WalletDNS) Encode

func (s *WalletDNS) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*WalletDNS) GetAddress

func (s *WalletDNS) GetAddress() string

GetAddress returns the value of Address.

func (*WalletDNS) GetHasMethodPubkey

func (s *WalletDNS) GetHasMethodPubkey() bool

GetHasMethodPubkey returns the value of HasMethodPubkey.

func (*WalletDNS) GetHasMethodSeqno

func (s *WalletDNS) GetHasMethodSeqno() bool

GetHasMethodSeqno returns the value of HasMethodSeqno.

func (*WalletDNS) GetIsWallet

func (s *WalletDNS) GetIsWallet() bool

GetIsWallet returns the value of IsWallet.

func (*WalletDNS) GetNames

func (s *WalletDNS) GetNames() []string

GetNames returns the value of Names.

func (*WalletDNS) MarshalJSON

func (s *WalletDNS) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WalletDNS) SetAddress

func (s *WalletDNS) SetAddress(val string)

SetAddress sets the value of Address.

func (*WalletDNS) SetHasMethodPubkey

func (s *WalletDNS) SetHasMethodPubkey(val bool)

SetHasMethodPubkey sets the value of HasMethodPubkey.

func (*WalletDNS) SetHasMethodSeqno

func (s *WalletDNS) SetHasMethodSeqno(val bool)

SetHasMethodSeqno sets the value of HasMethodSeqno.

func (*WalletDNS) SetIsWallet

func (s *WalletDNS) SetIsWallet(val bool)

SetIsWallet sets the value of IsWallet.

func (*WalletDNS) SetNames

func (s *WalletDNS) SetNames(val []string)

SetNames sets the value of Names.

func (*WalletDNS) UnmarshalJSON

func (s *WalletDNS) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WalletDNS) Validate

func (s *WalletDNS) Validate() error

type WithdrawStakeAction

type WithdrawStakeAction struct {
	Amount         int64                  `json:"amount"`
	Staker         AccountAddress         `json:"staker"`
	Pool           AccountAddress         `json:"pool"`
	Implementation PoolImplementationType `json:"implementation"`
}

Validator's participation in elections. Ref: #/components/schemas/WithdrawStakeAction

func (*WithdrawStakeAction) Decode

func (s *WithdrawStakeAction) Decode(d *jx.Decoder) error

Decode decodes WithdrawStakeAction from json.

func (*WithdrawStakeAction) Encode

func (s *WithdrawStakeAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*WithdrawStakeAction) GetAmount

func (s *WithdrawStakeAction) GetAmount() int64

GetAmount returns the value of Amount.

func (*WithdrawStakeAction) GetImplementation

func (s *WithdrawStakeAction) GetImplementation() PoolImplementationType

GetImplementation returns the value of Implementation.

func (*WithdrawStakeAction) GetPool

func (s *WithdrawStakeAction) GetPool() AccountAddress

GetPool returns the value of Pool.

func (*WithdrawStakeAction) GetStaker

func (s *WithdrawStakeAction) GetStaker() AccountAddress

GetStaker returns the value of Staker.

func (*WithdrawStakeAction) MarshalJSON

func (s *WithdrawStakeAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WithdrawStakeAction) SetAmount

func (s *WithdrawStakeAction) SetAmount(val int64)

SetAmount sets the value of Amount.

func (*WithdrawStakeAction) SetImplementation

func (s *WithdrawStakeAction) SetImplementation(val PoolImplementationType)

SetImplementation sets the value of Implementation.

func (*WithdrawStakeAction) SetPool

func (s *WithdrawStakeAction) SetPool(val AccountAddress)

SetPool sets the value of Pool.

func (*WithdrawStakeAction) SetStaker

func (s *WithdrawStakeAction) SetStaker(val AccountAddress)

SetStaker sets the value of Staker.

func (*WithdrawStakeAction) UnmarshalJSON

func (s *WithdrawStakeAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WithdrawStakeAction) Validate

func (s *WithdrawStakeAction) Validate() error

type WithdrawStakeRequestAction

type WithdrawStakeRequestAction struct {
	Amount         OptInt64               `json:"amount"`
	Staker         AccountAddress         `json:"staker"`
	Pool           AccountAddress         `json:"pool"`
	Implementation PoolImplementationType `json:"implementation"`
}

Validator's participation in elections. Ref: #/components/schemas/WithdrawStakeRequestAction

func (*WithdrawStakeRequestAction) Decode

Decode decodes WithdrawStakeRequestAction from json.

func (*WithdrawStakeRequestAction) Encode

func (s *WithdrawStakeRequestAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*WithdrawStakeRequestAction) GetAmount

func (s *WithdrawStakeRequestAction) GetAmount() OptInt64

GetAmount returns the value of Amount.

func (*WithdrawStakeRequestAction) GetImplementation

func (s *WithdrawStakeRequestAction) GetImplementation() PoolImplementationType

GetImplementation returns the value of Implementation.

func (*WithdrawStakeRequestAction) GetPool

GetPool returns the value of Pool.

func (*WithdrawStakeRequestAction) GetStaker

GetStaker returns the value of Staker.

func (*WithdrawStakeRequestAction) MarshalJSON

func (s *WithdrawStakeRequestAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WithdrawStakeRequestAction) SetAmount

func (s *WithdrawStakeRequestAction) SetAmount(val OptInt64)

SetAmount sets the value of Amount.

func (*WithdrawStakeRequestAction) SetImplementation

func (s *WithdrawStakeRequestAction) SetImplementation(val PoolImplementationType)

SetImplementation sets the value of Implementation.

func (*WithdrawStakeRequestAction) SetPool

SetPool sets the value of Pool.

func (*WithdrawStakeRequestAction) SetStaker

func (s *WithdrawStakeRequestAction) SetStaker(val AccountAddress)

SetStaker sets the value of Staker.

func (*WithdrawStakeRequestAction) UnmarshalJSON

func (s *WithdrawStakeRequestAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WithdrawStakeRequestAction) Validate

func (s *WithdrawStakeRequestAction) Validate() error

Jump to

Keyboard shortcuts

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