#❓︲dev-questions

1 messages · Page 3 of 1

real ermine
#

Please help me anyone

broken jacinth
#

@tardy night

real ermine
#

Could you please help me?

#

I am using React.js with Typescript

real ermine
#

Could you let me know these consts define example?

tardy night
# real ermine
  • CHAIN_ID = Injective's chainid
  • ETHEREUM_CHAIN_ID = corresponding ethereum chainId
  • alchemyRpcEndpoint/alchemyWsRpcEndpoint alchemy RPC for Ethereum if you are using ethereum native wallets
umbral finch
#

Hey fam i would like to ask a question here
Does token automatically verified on injective explorer once pull request has been accepted?

real ermine
#

Could you let me know how can I use injective modules in create-react-app project?

umbral finch
#

I think create-react-app is dead already?

real ermine
#

what do you mean?

#

Excuse me, could you explain more?

frail fractal
#

It pretty slow compared to vite

real ermine
#

you mean I can't use injective on react.js?

#

only possible on vite?

frail fractal
# real ermine you mean I can't use injective on react.js?

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.

real ermine
#

Thanks

summer loom
#

Hey all, can I get some help trouble shooting an issue?

summer loom
#

Hello?

frail fractal
summer loom
#

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

umbral finch
summer loom
#

?

tight apex
#

@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

forest flint
tight apex
broken jacinth
fathom sluice
#

How do i do that ?

grand knot
#

guys how come when I create a token on test net, I can't see the metadata anywhere?

spice veldt
#

i want to be dev is it hard?

frail fractal
pale dune
#

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'
}

pale dune
twilit wadi
#

how much cost an injective node plz ?

red lava
twilit wadi
#

how much rewards for running a node

lean parcel
west lynx
lean parcel
# west lynx 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)

pale dune
pale dune
rustic quarry
#

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?

dull rivet
stoic pawn
#

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?

slim maple
#

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.

fast ember
#

Please advise. Is there a guide on how to create your nft collections on Inj?

regal kayak
#

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

broken jacinth
broken jacinth
broken jacinth
broken jacinth
# rustic quarry i am smartcontract dev, i want to deploy my custom nft contract on inj. can i u...

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/

This document describes how to build a dApp using CosmWasm. If you are interested in building an order book exchange application, please refer to the "Building Order Book Exchanges" section.

broken jacinth
broken jacinth
regal kayak
#

no txid yet. looks like It is cancelled by injectived clients

regal kayak
# broken jacinth Do you have an example TX ID or the error log when the command fails?

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: []

cancelled transaction

urban acorn
#

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?

broken jacinth
supple ivy
#

Suggesting to add black theme in INJ explorer
Thanks

grand helm
#

can anyone assist with injectived setup

misty rain
grand helm
white plaza
#

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?

grand helm
#

get help on injective discord challenge (impossible)

#

im having problems with deserializing state, specifically hashmap types if anyone can help

spare vale
#

If i try injectived-version on linux i get this error:
Bash: /bin/injectived: cannot execute binary file: Exec format error

grand knot
#

I've managed to deploy my token but it isn't in my wallet address. Any idea why this may be?

grand knot
#

Does it take time to reflect on the address?

grand knot
#

@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?

grand knot
#

nevermind i got it!

dapper locust
#

Hello, how the auction work? It's a smart contract?

fleet compass
#

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?

hollow flume
#

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

hollow flume
broken jacinth
broken jacinth
summer cape
#

where can I get a rpc endpoint for deploying to inEVM?

summer cape
#

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?

lean parcel
grand helm
#

```called Result::unwrap() on an Err value: ExecuteError { msg: "failed to execute message; message index: 0: dispatch: submessages: : invalid coins" }

broken jacinth
grand helm
#
        let protocol_fee_result = BankMsg::Send {
            to_address: state.protocol_fee_destination.to_string(),
            amount: coins(protocol_fee.into(), "inj"),
        };
broken jacinth
grand helm
#

hmm

#

parameters seem pretty straightforward (u128, Into<string>)

dull rivet
#

Illuminate hackathon has ended. Please wait for #🔔︲announcement we will announce winners list soon
If you have any dev-related question please use #1189372652561895475

rough moon
#

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?

frosty current
#

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 ?

jaunty iron
#

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. ❤️

hexed coral
#

fams
I am a blockchain/frontend developer.
Is there any chance to work with you?

tawny locust
austere niche
#

How does one get access to the dev chat

frail fractal