#❓︲dev-questions
1 messages · Page 3 of 1
@tardy night
- CHAIN_ID = Injective's chainid
- ETHEREUM_CHAIN_ID = corresponding ethereum chainId
- alchemyRpcEndpoint/alchemyWsRpcEndpoint alchemy RPC for Ethereum if you are using ethereum native wallets
Hey fam i would like to ask a question here
Does token automatically verified on injective explorer once pull request has been accepted?
Could you let me know how can I use injective modules in create-react-app project?
I think create-react-app is dead already?
It's not used that much anymore I guess
It pretty slow compared to vite
create-react-app and vite are just tools to create a minimal react project, I am not sure if it's not possible to use typescript sdk in a react project made with create-react-app but I recall encountering a similar import issue and this was in create-react-app, you can try and see if it works with vite but I haven't tested myself.
Thanks
Hey all, can I get some help trouble shooting an issue?
Hello?
You can directly post your issue here, once an Admin sees it, they might look into it.
I have screen shots but would prefer to share in DM
The issue is that ledger is aborting the approval process half way through transaction confirmation , then giving a “invalid data” error
I would like to know if someone can respond on this?
?
@forest flint I tried to set token denom metadata using SDK-ts but got this error.
What am I doing wrong? Token denom was created successfully using the injectived CLI
You don't need to submit a proposal to hange the metadata, if you're the admin of the denom you can simply use MsgSetDenomMetadata
Yes, I called the API for setting the metadata. I wasn't trying to submit proposal. Those errors (shown in the screenshot) were pointing to the codes of the SDK.
I am the admin of the denom
The error in the screenshot is already showing you the problem. You just need to apply the fix the error message is describing
How do i do that ?
guys how come when I create a token on test net, I can't see the metadata anywhere?
i want to be dev is it hard?
Here's a good resource to get started: https://www.freecodecamp.org/
whoah thanks
Im getting this error when trying to interact with a contract to perform a native swap. Weird thing is that it works some times and then times out other times. Not too sure why, unable to find a way to replicate it 100% of the time. Anyone know a fix for this?
Error: timeout of 15000ms exceeded
{
type: 'http-request',
code: 413,
originalMessage: 'timeout of 15000ms exceeded',
name: 'HttpRequestException',
errorClass: 'HttpRequestException',
contextModule: undefined,
method: 'GET'
}
Seems like a normal HTTP error, make sure you're using official endpoints: https://docs.injective.network/develop/public-endpoints
Im using the ones available when importing like const { Network } = require('@injectivelabs/networks');
then using Network.MainNet.
how much cost an injective node plz ?
Read here https://docs.injective.network/nodes/
how much rewards for running a node
The APR for staking is at 15.8% at the moment, while validators can also a custom commission rate where they get a % from the staking rewards of the users that stake through their node
The reward will decrease over time or not?
The inflation will be reduced over the long term but the APR is - The APR parameter shown takes into consideration the inflation rate, bonded token ratio, community tax and the annual provisions.
A simple way to describe how APR is being calculated (approximately) is (bondedTokens / totalOnChain) * inflation. The formula is not entirely accurate tho, there are some other parameters when calculating the APR but you get the point.
The coming chain update won’t change the inflation min/max, it reduces the bonded goal ratio. It’ll cause a small decrease of inflation over time to reach the new bonded ratio (was 87% now it’ll be 60%). We’ve also updated the blocks per year parameter to reflect the current block time of 800ms instead of 1.1s (causing more block reward to be issued, apart from the staking rewards -> more emissions)
Ok, thanks
I am trying to run my own Injective Node. I have followed all the steps here https://docs.injective.network/nodes/RunNode/mainnet/?ref=blockmeadow.com . BUT i keep getting an error saying: bash[6434]: panic: minimum commission rate cannot be nil: <nil> . Idk where do set the commission rate it wasnt specified in the docs. Anyone able to help?
check #📚・node-resources and see if that helps
ye ive followed the full docs on the link posted in #📚・node-resources . I need this for a project so can anyone just launch their own node? Cause the public ones are extremely unreliable
i am smartcontract dev, i want to deploy my custom nft contract on inj.
can i use comand line interface to do that?
i dont understand how to deploy a simple contract on INJ,
especially since i cant use remix and metamask
HOW TO DEPLOY NFT CONTRACT ON INJ?
i cant use remix and metamask?
you can refer to https://docs.injective.network/
Hey, how can convert a cosmos address to injective address?
def generate_address(cosmos_address, target_chain_prefix):
hrp, data = bech32.bech32_decode(cosmos_address)
# Replace the HRP with the target chain's prefix
encoded_address = bech32.bech32_encode(target_chain_prefix, data)
return encoded_address
works for most chains but not injective?
Hi Team, how to construct an injective.wasmx.v1.MsgExecuteContractCompat message within a contract? I am unable to find the Rust library for injective.wasmx. Thank you for your assistance.
Please advise. Is there a guide on how to create your nft collections on Inj?
Hi, team. When I try to submit submit-proposal, I got a error "cancelled transaction". Please tell me what should I do to create a contract in mainnet?
My cli is listed below:
injectived tx wasm submit-proposal wasm-store inj_contract-aarch64.wasm \
--title "title"
--summary "summary"
--instantiate-everybody false
--instantiate-anyof-addresses "injxxxxxxxxx"
--deposit=100000000000000000inj
--gas=100000000
--chain-id=injective-1
--broadcast-mode=sync
--from=$(echo $OWNER_ADDR)
--fees=5000000000000000inj
--node=https://sentry.tm.injective.network:443
Are you using the public nodes? If that is the case, then the reason for this is nodes experiencing a heavy work load.
That is not the correct network. Please check the documentation suggested by Lahn #❓︲dev-questions message
You should post node related questions in #🔩・node-operators
You should at least read the documentation page before posting a general question like that. There is a full section of the docs dedicated to explain how to work with contracts in Injective https://docs.injective.network/develop/guides/cosmwasm-dapps/
You should check the NFT project dapps running on Injective. The chain does not provide native NFT support, only through dapps
Do you have an example TX ID or the error log when the command fails?
no txid yet. looks like It is cancelled by injectived clients
auth_info:
fee:
amount:
- amount: "5000000000000000"
denom: inj
gas_limit: "100000000"
granter: ""
payer: ""
signer_infos: []
tip: null
body:
extension_options: []
memo: ""
messages:
- '@type': /cosmos.gov.v1.MsgSubmitProposal
initial_deposit:- amount: "100000000000000000"
denom: inj
messages: - '@type': /cosmwasm.wasm.v1.MsgStoreCode
instantiate_permission:
address: ""
addresses:- injxxxxxxxxxxx
permission: AnyOfAddresses
sender: inj10d07y265gmmuvt4z0w9aw880jnsr700jstypyt
wasm_byte_code: H4sIAAAAAAAA/+z9DZwdR3UgitdXf9zb3TM9H7JGH+Dq9sS+s5HiIVFmhBBhajZjWX9DMPy9b50X/54lbCX2HWFbY9kx+4znYoQ9BJGIWICIxaIEEQuwQRAnlh2zTIh2oxAnUXYN1r44iUi8D+WFJEpigrKY8H7nnKruvnfuSKMPSH6/feKH53Z31amqU6dOnXPq1Dls691v54wx/jxftUXMzvJZ+C/bImfxN/xhWzj8VLP2N9vizbrf/IEtweysfaTXfHYLY1vC2eK1734wPluUtrD5A1TrAUbw+SwUf+CBBx7ALsB/H6jA4LNbotnyH5/d0jPb9g/APjBL3QUgYl70yW133Jvc+rab79h2386b7926/Z5tTMG7yL2b3vYOeuNtfdudMzuZD7+DW99288y2rbfSl/DWt938szO379zGODzW8OPb77x3W1n47lu23sGEewLAVDXZeuutM9Du7bdu3Wmb7sN3t2y94847br9l6/bb/8M2xsqyt93z9q13FO/Su7fdctcP/+jY9GtuvnfbzO0//Q5qZKh8PbPtljvv3TZz8133vA2GksLnnm23/vCP/uhrXttWZ9C9fNvWnbfc1vbJu3Xb2+75GRpNtOOebTPvuPmW27befgdT8gnxaZFwCf/6vCCRgeSe53HJJecevPfpwZOMMebTP8aY4MILqBj9XwrBJOtn3f5x7vtQdoAzzpiUAVWSDOor3wtkrV6rSS4jz5NxLY6lxxQSrmRc+hy6AlU8Kf1B+O2FjHMWhj3QFcV93uPzCIoETNE/LM/sE3ZCSA/KAFAphYTxCObJOg6MBWIZuwzeMMnqgWBK9S4fEkoJxlivXIEAVgqpPH4Xf+c7PclZn79CznLTas2zaJaZI+/6Lfw7D3+DfSL1377t7XfOvEOw6PY77t659Y6dtwOF/Ptg233bbrln5zZ2o4czwX4y3Lp...........
metadata: ""
proposer: inj1xxxxx
summary: summary
title: 'title'
non_critical_extension_options: []
timeout_height: "0"
signatures: []
- injxxxxxxxxxxx
- amount: "100000000000000000"
cancelled transaction
bleh do you really have to submit a governance proposal just to deploy a contract? how long does that process usually take? is it just a formality?
the timeout_height seems wrong. You should configure a block in the future
Suggesting to add black theme in INJ explorer
Thanks
can anyone assist with injectived setup
What kind of problem are you stuck in?
got it. Thanks a lot
failed to execute message; message index: 0: invalid coin denomination: got inj, expected stake: invalid request when trying to run injectived start using the latest docker img
I'm using the pyinjective api and finding that today, when I call get_spot_orderbookV2 I am getting results with timestamps from 21 hours ago, about 20% I will be getting that. Anyone else seeing this?
get help on injective discord challenge (impossible)
im having problems with deserializing state, specifically hashmap types if anyone can help
If i try injectived-version on linux i get this error:
Bash: /bin/injectived: cannot execute binary file: Exec format error
I've managed to deploy my token but it isn't in my wallet address. Any idea why this may be?
Does it take time to reflect on the address?
@broken jacinth Quick question. I've managed to min tokens and set metadata and have confirmed the transactions. The balance won't show on injective explorer though?
nevermind i got it!
Hello, how the auction work? It's a smart contract?
just wondering, what is the process of getting a token to come up as verified on Injective Explorer instead of saying internally verified? Do i need to submit a PR on github?
Good morning, can anyone confirm the version of injective wallet sdk that work. a fresh installation and trying to used the service is falling. it seems to me that one of the library it dependency is having an issue here is a screenshot of the error
this is happening on version 1.14.4
it a bit filthy though, had to install the missing peer dependency manually.
What is the token denom?
Check the Typescript SDK documentation, the explanation is there
where can I get a rpc endpoint for deploying to inEVM?
thank you
so with that I should be able to deploy solidity code to injective mainnet am I right?
or is there even a way to do that?
I recommend reading the docs first - https://calderaxyz.gitbook.io/injective-documentation/getting-started/deploy-on-inevm
```called Result::unwrap() on an Err value: ExecuteError { msg: "failed to execute message; message index: 0: dispatch: submessages: : invalid coins" }
@old grove
Please provide more info on what you are executing and the network configuration you are using
trying to execute BankMsg::Send, i get this error on both test-tube and testnet
let protocol_fee_result = BankMsg::Send {
to_address: state.protocol_fee_destination.to_string(),
amount: coins(protocol_fee.into(), "inj"),
};
Seems as something is wrong with the parameters you are passing to create the coin instance.
cc: @obsidian moth
thanks bro, got it working
Illuminate hackathon has ended. Please wait for #🔔︲announcement we will announce winners list soon
If you have any dev-related question please use #1189372652561895475
I have a general question about projects on the Injective chain. What do projects/dapps do when they need to send an airdrop to their community, but they can't send the tokens to each person manually? The project has their ERC-20 tokens bridged (transferred) onto the Injective chain.
The project is on injective chain and have 1000 injective addresses and they need code to send them all does python SDK allow them?
You can try use https://www.tokenstation.app/distribution
i’m currently trying to create a etf-like index token on injective using cosmwasm. I tried to get eth/usd price feed using pyth but i guess i need to update it every block with fee and it’ll be costy maybe at future. Does anyone know any idea to get price feed of a pair on cosmwasm ?
Try asking on #🚀・dev-support
Injective team, I have a question about this error "Orderbook liquidity cannot satisfy current worst price". It occurs when I send a CreateDerivativeMarketOrder message to Injective testnet (Injective-888) via an execute function of my CW contract.
I use mark price (let mark_price = querier.query_derivative_market(&market_id)?.market.unwrap().mark_price;) to fill the price field of OrderInfo in DerivativeOrder.
Where did that error come from? If it's not because I coded wrongly, maybe it's because there is no trading liquidity on the injective testnet for that perpetual market? Additionally, the market I tested is INJ-USDT PERP.
Thank you so much for clarifying my question. ❤️
fams
I am a blockchain/frontend developer.
Is there any chance to work with you?
You can check if there is any position you can fit in https://jobs.lever.co/injectivelabs
How does one get access to the dev chat
Check the pinned messages in dev chat.