MultiversX Golang SDK by Staking Agency
This kit makes building on the MultiversX blockchain a walk in the park.
-
GetAccountKeys
- retrieves all the keys associated with an account. Useful for reading a SC's storage.DNSResolve
- pass a herotag a get the associated addressGetEgldBalance
- easily retrieve an account's eGLD balanceGetTokensBalances
- same as above, but for an account's ESDTsGetTokenDecimals
- get an ESDT's number of decimals
Callbacks:
EgldBalanceChanged
TokenBalanceChanged
-
-
GetDexPairs
- reads all trading pairs listed on xExchangeGetPairByTickers
- specify the pair's tickers and get all the pair detailsGetPairByContractAddress
- get a pair's details by its contract address
Callbacks:
NewPair
PairStateChanged
DexStateChanged
-
GetLiquidityPools
- get all liquidity poolsGetFarms
- get all farms (simple and dual)GetStakes
- get all coins stakesGetLaunchpads
- get all launchpads
Callbacks:
NewPair
PairStateChanged
NewStake
NewFarm
NewDualFarm
NewLaunchpad
LaunchpadEnded
AnnualRewardChanged
StakeAprChanged
-
-
SearchIndexer
- a powerful function to retrieve data from an ES indexed with MultiversX data (retrieves more than 10,000 records)GetTxInfo
- gets a transaction's details from ESGetTxLogs
- gets a transaction's logs from ESGetTxOperations
- gets a transaction's operations from ESGetTxResult
- after sending a tx, call this function to wait for the tx's result and get a detailed error if it failsGetNetworkConfig
- retrieves the network configuration from the proxySendTransaction
- sends a tx with customizable gas limit, data field, nonceSendEsdtTransaction
- generates and sends an ESDT transfer
-
GetAllProvidersAddresses
- returns all the staking providers contracts addressesGetMetaData
- get the name, website and identity for a specific providerGetUserStakeInfo
- gets a user staking details for a specific providerGetProviderConfig
- gets a provider configuration detailsGetProvidesConfigs
- gets all providers configurations
Callbacks:
ProviderOwnerChanged
ProviderNameChanged
ProviderFeeChanged
ProviderCapChanged
ProviderSpaceAvailable
NewProvider
ProviderClosed
-
GetTokens
- retrieves all issued tokens (takes a while ...)IsTokenPaused
- returns true if the specified ESDT is pausedGetTokenProperties
- retrieves an ESDT's properties, including all mint info
Callbacks:
NewTokenIssued
TokenStateChanged
TokenSupplyChanged
-
SendMessage
- sends a message to the specified user ID (can be a chat ID as well)SendFormattedMessage
- same as above, but you can specify the text format (markdown or html)
Callbacks:
PrivateCommandReceived
PublicCommandReceived
PrivateMessageReceived
PublicMessageReceived
PrivateReplyReceived
CallbackReceived
ABI2GO This is a very useful tool (still beta though) that generates Go language bindings to a MultiversX SC.
Examples Here you will find examples for each of the packages presented above.