Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid chain identifier for osmosis-5. Did you mean osmosis-6? #264

Open
Olanetsoft opened this issue May 11, 2023 · 0 comments
Open

Comments

@Olanetsoft
Copy link

Running the following query to retrieve the fee the relayer charges for a transfer on the docs returns Error: Invalid chain identifier for osmosis-5. Did you mean osmosis-6?

import {
  AxelarQueryAPI,
  CHAINS,
  Environment,
} from "@axelar-network/axelarjs-sdk";
 
async function main() {
  const axelarQuery = new AxelarQueryAPI({
    environment: Environment.TESTNET,
  });
 
  const fee = await axelarQuery.getTransferFee(
    CHAINS.TESTNET.OSMOSIS,
    CHAINS.TESTNET.AVALANCHE,
    "uausdc",
    1000000
  );
  // returns  { fee: { denom: 'uausdc', amount: '150000' } }
}
 
main();
Screenshot 2023-05-11 at 14 01 36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant