Documentation ¶
Index ¶
- type ApotsClient
- func (ap *ApotsClient) AccountModuleByID(address, moduleName, version string) (*types.AccountModules, error)
- func (ap *ApotsClient) AccountModules(address, version string) ([]types.AccountModules, error)
- func (ap *ApotsClient) AccountResource(address string, options ...Value) ([]types.AccountResource, error)
- func (ap *ApotsClient) AccountResourceByResType(address, resType, version string) (*types.AccountResource, error)
- func (ap *ApotsClient) AccountTransactions(address string, start, limit int64) ([]types.Transaction, error)
- func (ap *ApotsClient) ApotsBalance(address string) (*big.Int, error)
- func (ap *ApotsClient) CreateTxSignMessage(...) (*types.SignMessage, error)
- func (ap *ApotsClient) EventsByEventHandle(address, handle, fieldName string, start, limit int) ([]types.Event, error)
- func (ap *ApotsClient) EventsByKey(eventKey string) ([]types.Event, error)
- func (ap *ApotsClient) FaucetFundAccount(address string, amount uint64) (string, error)
- func (ap *ApotsClient) GetAccount(address string) (*types.Account, error)
- func (ap *ApotsClient) LedgerInformation() (*types.LedgerInformation, error)
- func (ap *ApotsClient) SetFaucetEndpoint(url string)
- func (ap *ApotsClient) SimulateTransaction(seed []byte, sender, recipient, amount, maxGasAmount, gasUnitPrice string, ...) (*types.Transaction, error)
- func (ap *ApotsClient) SubmitTransaction(...) (*types.SubmitTransactionResp, error)
- func (ap *ApotsClient) TableItemByHandleAndKey(tableHandle, keyType, valueType, key string) error
- func (ap *ApotsClient) Transaction(txHash string) (*types.Transaction, error)
- func (ap *ApotsClient) Transactions(start, limit int64) ([]types.Transaction, error)
- func (ap *ApotsClient) Transfer(seed []byte, sender, recipient, amount, maxGasAmount, gasUnitPrice string, ...) (*types.SubmitTransactionResp, error)
- type Params
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApotsClient ¶
type ApotsClient struct {
// contains filtered or unexported fields
}
func NewApotsClient ¶
func NewApotsClient(endpoint string) (*ApotsClient, error)
func (*ApotsClient) AccountModuleByID ¶
func (ap *ApotsClient) AccountModuleByID(address, moduleName, version string) (*types.AccountModules, error)
func (*ApotsClient) AccountModules ¶
func (ap *ApotsClient) AccountModules(address, version string) ([]types.AccountModules, error)
func (*ApotsClient) AccountResource ¶
func (ap *ApotsClient) AccountResource(address string, options ...Value) ([]types.AccountResource, error)
func (*ApotsClient) AccountResourceByResType ¶
func (ap *ApotsClient) AccountResourceByResType(address, resType, version string) (*types.AccountResource, error)
func (*ApotsClient) AccountTransactions ¶
func (ap *ApotsClient) AccountTransactions(address string, start, limit int64) ([]types.Transaction, error)
func (*ApotsClient) ApotsBalance ¶
func (ap *ApotsClient) ApotsBalance(address string) (*big.Int, error)
func (*ApotsClient) CreateTxSignMessage ¶
func (ap *ApotsClient) CreateTxSignMessage(sender, sequenceNumber, maxGasAmount, gasUnitPrice, expirationTimestampSec string, payload form.Payload, options ...Value) (*types.SignMessage, error)
func (*ApotsClient) EventsByEventHandle ¶
func (*ApotsClient) EventsByKey ¶
func (ap *ApotsClient) EventsByKey(eventKey string) ([]types.Event, error)
func (*ApotsClient) FaucetFundAccount ¶
func (ap *ApotsClient) FaucetFundAccount(address string, amount uint64) (string, error)
func (*ApotsClient) GetAccount ¶
func (ap *ApotsClient) GetAccount(address string) (*types.Account, error)
func (*ApotsClient) LedgerInformation ¶
func (ap *ApotsClient) LedgerInformation() (*types.LedgerInformation, error)
func (*ApotsClient) SetFaucetEndpoint ¶
func (ap *ApotsClient) SetFaucetEndpoint(url string)
func (*ApotsClient) SimulateTransaction ¶
func (ap *ApotsClient) SimulateTransaction(seed []byte, sender, recipient, amount, maxGasAmount, gasUnitPrice string, options ...Value) (*types.Transaction, error)
func (*ApotsClient) SubmitTransaction ¶
func (ap *ApotsClient) SubmitTransaction(sender, sequenceNumber, maxGasAmount, gasUnitPrice, expirationTimestampSec string, payload form.Payload, signature form.Signature, options ...Value) (*types.SubmitTransactionResp, error)
func (*ApotsClient) TableItemByHandleAndKey ¶
func (ap *ApotsClient) TableItemByHandleAndKey(tableHandle, keyType, valueType, key string) error
func (*ApotsClient) Transaction ¶
func (ap *ApotsClient) Transaction(txHash string) (*types.Transaction, error)
func (*ApotsClient) Transactions ¶
func (ap *ApotsClient) Transactions(start, limit int64) ([]types.Transaction, error)
func (*ApotsClient) Transfer ¶
func (ap *ApotsClient) Transfer(seed []byte, sender, recipient, amount, maxGasAmount, gasUnitPrice string, options ...Value) (*types.SubmitTransactionResp, error)
Click to show internal directories.
Click to hide internal directories.