Versions in this module Expand all Collapse all v0 v0.0.2 Jan 30, 2023 v0.0.1 Jan 28, 2023 Changes in this version + const DevNetFaucetUrl + var ErrNoResult = errors.New("no result in JSON-RPC response") + func FaucetFundAccount(address string, faucetUrl string) (string, error) + type BatchElem struct + Args []interface{} + Error error + Method string + Result interface{} + type Client struct + func Dial(rpcUrl string) (client *Client, err error) + func DialWithClient(rpcUrl string, c *http.Client) (client *Client, err error) + func (c *Client) BatchCall(b []BatchElem) error + func (c *Client) BatchCallContext(ctx context.Context, b []BatchElem) error + func (c *Client) BatchGetFilteredObjectsOwnedByAddress(ctx context.Context, address types.Address, filter func(types.ObjectInfo) bool) ([]types.ObjectRead, error) + func (c *Client) BatchGetObject(objects []types.ObjectId) (map[string]*types.ObjectRead, error) + func (c *Client) BatchGetObjectsOwnedByAddress(ctx context.Context, address types.Address, filterType string) ([]types.ObjectRead, error) + func (c *Client) BatchGetTransaction(digests []string) (map[string]*types.TransactionResponse, error) + func (c *Client) BatchTransaction(ctx context.Context, signer types.Address, txnParams []map[string]interface{}, ...) (*types.TransactionBytes, error) + func (c *Client) Call(result interface{}, method string, args ...interface{}) error + func (c *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error + func (c *Client) DevInspectMoveCall(ctx context.Context, signer types.Address, packageId types.ObjectId, ...) (*types.DevInspectResults, error) + func (c *Client) DevInspectTransaction(ctx context.Context, txByte types.Base64Data) (*types.DevInspectResults, error) + func (c *Client) DryRunTransaction(ctx context.Context, tx *types.TransactionBytes) (*types.TransactionEffects, error) + func (c *Client) ExecuteTransaction(ctx context.Context, txn types.SignedTransaction, ...) (*types.ExecuteTransactionResponse, error) + func (c *Client) ExecuteTransactionSerializedSig(ctx context.Context, txn types.SignedTransactionSerializedSig, ...) (*types.ExecuteTransactionResponse, error) + func (c *Client) GetAllBalances(ctx context.Context, address types.Address) ([]types.SuiCoinBalance, error) + func (c *Client) GetAllCoins(ctx context.Context, address types.Address, cursor *types.ObjectId, limit uint) (*types.CoinPage, error) + func (c *Client) GetBalance(ctx context.Context, address types.Address, coinType *string) (*types.SuiCoinBalance, error) + func (c *Client) GetCoinMetadata(ctx context.Context, coinType string) (*types.SuiCoinMetadata, error) + func (c *Client) GetCoins(ctx context.Context, address types.Address, coinType *string, ...) (*types.CoinPage, error) + func (c *Client) GetCoinsOwnedByAddress(ctx context.Context, address types.Address, coinType string) (coins types.Coins, err error) + func (c *Client) GetNFTsOwnedByAddress(ctx context.Context, address types.Address) ([]types.ObjectRead, error) + func (c *Client) GetObject(ctx context.Context, objID types.ObjectId) (*types.ObjectRead, error) + func (c *Client) GetObjectsOwnedByAddress(ctx context.Context, address types.Address) ([]types.ObjectInfo, error) + func (c *Client) GetObjectsOwnedByObject(ctx context.Context, objID types.ObjectId) ([]types.ObjectInfo, error) + func (c *Client) GetRawObject(ctx context.Context, objID types.ObjectId) (*types.ObjectRead, error) + func (c *Client) GetSuiCoinsOwnedByAddress(ctx context.Context, address types.Address) (types.Coins, error) + func (c *Client) GetTotalSupply(ctx context.Context, coinType string) (*types.Supply, error) + func (c *Client) GetTotalTransactionNumber(ctx context.Context) (uint64, error) + func (c *Client) GetTransaction(ctx context.Context, digest string) (*types.TransactionResponse, error) + func (c *Client) GetTransactionsInRange(ctx context.Context, start, end uint64) ([]string, error) + func (c *Client) MergeCoins(ctx context.Context, signer types.Address, ...) (*types.TransactionBytes, error) + func (c *Client) MintNFT(ctx context.Context, signer types.Address, ...) (*types.TransactionBytes, error) + func (c *Client) MoveCall(ctx context.Context, signer types.Address, packageId types.ObjectId, ...) (*types.TransactionBytes, error) + func (c *Client) Pay(ctx context.Context, signer types.Address, inputCoins []types.ObjectId, ...) (*types.TransactionBytes, error) + func (c *Client) PayAllSui(ctx context.Context, signer, recipient types.Address, ...) (*types.TransactionBytes, error) + func (c *Client) PaySui(ctx context.Context, signer types.Address, inputCoins []types.ObjectId, ...) (*types.TransactionBytes, error) + func (c *Client) Publish(ctx context.Context, address types.Address, ...) (*types.TransactionBytes, error) + func (c *Client) SplitCoin(ctx context.Context, signer types.Address, Coin types.ObjectId, ...) (*types.TransactionBytes, error) + func (c *Client) SplitCoinEqual(ctx context.Context, signer types.Address, Coin types.ObjectId, ...) (*types.TransactionBytes, error) + func (c *Client) TransferObject(ctx context.Context, signer, recipient types.Address, objID types.ObjectId, ...) (*types.TransactionBytes, error) + func (c *Client) TransferSui(ctx context.Context, signer, recipient types.Address, suiObjID types.ObjectId, ...) (*types.TransactionBytes, error) + type HTTPError struct + Body []byte + Status string + StatusCode int + func (err HTTPError) Error() string