Documentation ¶
Index ¶
- func BuildTokenRequest(name, description, image, symbol string, supply int) *relysia.IssueRequest
- type SDK
- func (sdk *SDK) AcceptSwapOffer(walletID, swapHex string) (*relysia.SwapResponse, error)
- func (sdk *SDK) CreateSwapOffer(walletID, tokenID, receiveType string, amount float64) (*relysia.OfferResponse, error)
- func (sdk *SDK) CreateWallet(title string) (string, error)
- func (sdk *SDK) GetHTTP(url string, dst interface{}) error
- func (sdk *SDK) GetWalletByTitle(title string) (string, error)
- func (sdk *SDK) HashSHA1(b []byte) []byte
- func (self *SDK) Insecure()
- func (sdk *SDK) MintToken(walletID string, issueRequest *relysia.IssueRequest) (*relysia.IssueResponse, error)
- func (sdk *SDK) UploadToChain(walletID, bucketName, filename string, objectBytes []byte) (*relysia.UploadResponse, error)
- func (sdk *SDK) WalletBalanceBSV(walletID, symbol string) (*relysia.BalanceResponse, error)
- func (sdk *SDK) WalletBalanceSTAS(walletID, symbol string) ([]*relysia.BalanceCoin, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTokenRequest ¶
BuildTokenRequest is a helper constructor for valid input to the Issue endpoint
Types ¶
type SDK ¶
type SDK struct { Relysia *relysia.Client Storage *storage.Client // contains filtered or unexported fields }
func (*SDK) AcceptSwapOffer ¶
func (*SDK) CreateSwapOffer ¶
func (*SDK) CreateWallet ¶
CreateWallet makes a wallet for the user that has the given title
func (*SDK) UploadToChain ¶
func (sdk *SDK) UploadToChain(walletID, bucketName, filename string, objectBytes []byte) (*relysia.UploadResponse, error)
UploadToChain makes the given file available on the blockchain via the cloud storage
func (*SDK) WalletBalanceBSV ¶
WalletBalanceBSV gives you the BSV balance
func (*SDK) WalletBalanceSTAS ¶
WalletBalanceSTAS gives you the stas tokens in a slice
Source Files ¶
Click to show internal directories.
Click to hide internal directories.