Documentation ¶
Index ¶
- Variables
- type APIClient
- func (c *APIClient) GetAccount(ctx context.Context, block *tlb.BlockInfo, addr *address.Address) (*Account, error)
- func (c *APIClient) GetBlockData(ctx context.Context, block *tlb.BlockInfo) (*tlb.Block, error)
- func (c *APIClient) GetBlockInfo(ctx context.Context) (*tlb.BlockInfo, error)
- func (c *APIClient) GetBlockShardsInfo(ctx context.Context, block *tlb.BlockInfo) ([]*tlb.BlockInfo, error)
- func (c *APIClient) GetBlockTransactions(ctx context.Context, block *tlb.BlockInfo, count uint32, ...) ([]*tlb.TransactionID, bool, error)
- func (c *APIClient) GetMasterchainInfo(ctx context.Context) (*tlb.BlockInfo, error)
- func (c *APIClient) GetTransaction(ctx context.Context, block *tlb.BlockInfo, addr *address.Address, lt uint64) (*tlb.Transaction, error)
- func (c *APIClient) ListTransactions(ctx context.Context, addr *address.Address, num uint32, lt uint64, ...) ([]*tlb.Transaction, error)
- func (c *APIClient) LookupBlock(ctx context.Context, workchain int32, shard uint64, seqno uint32) (*tlb.BlockInfo, error)
- func (c *APIClient) RunGetMethod(ctx context.Context, blockInfo *tlb.BlockInfo, addr *address.Address, ...) ([]interface{}, error)
- func (c *APIClient) SendExternalInitMessage(ctx context.Context, addr *address.Address, msg *cell.Cell, ...) error
- func (c *APIClient) SendExternalMessage(ctx context.Context, addr *address.Address, msg *cell.Cell) error
- type Account
- type ContractExecError
- type LSError
- type LiteClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBlockNotFound = errors.New("block not found")
View Source
var ErrMessageNotAccepted = errors.New("message was not accepted by the contract")
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPIClient ¶
func NewAPIClient(client LiteClient) *APIClient
func (*APIClient) GetAccount ¶
func (*APIClient) GetBlockData ¶
func (*APIClient) GetBlockInfo ¶
GetBlockInfo DEPRECATED and will be removed soon, please use GetMasterchainInfo
func (*APIClient) GetBlockShardsInfo ¶
func (*APIClient) GetBlockTransactions ¶
func (*APIClient) GetMasterchainInfo ¶
func (*APIClient) GetTransaction ¶
func (*APIClient) ListTransactions ¶
func (*APIClient) LookupBlock ¶
func (*APIClient) RunGetMethod ¶
func (*APIClient) SendExternalInitMessage ¶
type ContractExecError ¶
type ContractExecError struct {
Code uint32
}
func (ContractExecError) Error ¶
func (e ContractExecError) Error() string
func (ContractExecError) Is ¶
func (e ContractExecError) Is(err error) bool
type LiteClient ¶
type LiteClient interface {
Do(ctx context.Context, typeID int32, payload []byte) (*liteclient.LiteResponse, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.