18.5 General
- What signature algorithm do I use?
Signatures are secp256k1 format and this is a hex string with concatenated r, s, v values (no DER format). To learn more about how to use private keys to sign dtos, please visit the GalaSwap API docs.
- What are available GalaChain Explorers?
There are various GalaChain explorers available:
https://gytrace.com
https://galachainexplorer.com/
https://explorer.galachain.com/
- Where can I find the GalaChain SDK?
https://github.com/GalaChain/sdk
- What resources do I need to integrate GalaChain on an exchange?
There are two ways to approach it:
- Use the Get Balances and Transfer Tokens endpoints to execute trades directly.
- Use our GalaSwap infrastructure to request and accept token swaps.
Get Balances and Transfer Tokens endpoints:
This involves registering a new user and their public key. You can create a key pair like you would do for a typical Ethereum address and then send a request to our GalaSwap endpoint at https://galaswap.gala.com/info/api.html#tag/API:-GalaSwap-Operations/paths/~1v1~1CreateHeadlessWallet/post. The registered identity of the user will be the address generated prefixed by ’eth|’ (e.g. publicKey: ‘0x027ed86907eb94b3c8bbc5b596cd15944fd4251967153d164475dcc8629952d74b’ -> ’eth|B08B8d22FE5c821f21D786b9A7783f84Cf787900’).
Once you have a registered user you can use https://galaswap.gala.com/info/api.html#tag/API:-GalaChain-Operations/paths/~1galachain~1api~1asset~1token-contract~1FetchBalances/post to check an account’s balance of specified tokens and https://galaswap.gala.com/info/api.html#tag/API:-GalaChain-Operations/paths/~1galachain~1api~1asset~1token-contract~1TransferToken/post to transfer tokens from one account to another.
GalaSwap Infrastructure:
You can take advantage of the GalaSwap interface to Request and Accept on-chain swaps via the endpoints here: https://galaswap.gala.com/info/api.html#tag/API:-GalaSwap-Operations
- What’s the rate limit for GalaSwap API?
Globally, we have a 20 request per 10 second rate limit and wallet creation is extra limited (4 requests/min).
- What is Gala Swap and how is it integrated with GalaChain?
GalaSwap is a dApp on GalaChain similar to Uniswap but is order book based.
- Is there an API available for a GalaChain explorer?
Refer to https://explorer-api.galachain.com/docs/ for our current explorer API capabilities.
- How many blocks in GalaChain can determine a transaction.
Each block may have multiple transactions and although we have some methods that use multiple blocks to help with concurrency, the individual steps those methods take are separate transactions. If a transaction is committed to a block it has been validated by the authority consensus of the network.
- Is GalaChain mainnet live?
Each block may have multiple transactions and although we have some methods that use multiple blocks to help with concurrency, the individual steps those methods take are separate transactions. If a transaction is committed to a block it has been validated by the authority consensus of the network.
- How do I get Blockchain data through the API to find a user transfer transaction?
You can visit https://explorer-api.galachain.com/docs/ to check blocks and scan their transactions.
- How do I query GalaChain Data?
You can use the following APIs to query blockchain data:
- How do I generate a uniqueKey?
You can generate this however you want. It simply must be a string value and unique for each transaction you submit.